## We use this file both as .gitignore and .dockerignore,
## which have different semantics.

/dist
/local
/logs
/upstream

# Autotools generated files
/aclocal.m4
/autom4te.cache/
/config/
/config.log
/config.status
/configure
/conftest*

/m4/sage_spkg_configures.m4

# no longer generated, but may still be in user worktrees
/src/lib/pkgconfig

/environment.yml
/environment-optional.yml
/src/environment.yml
/src/environment-optional.yml

/src/setup.cfg
/src/requirements.txt
/src/pyproject.toml
/src/Pipfile
/src/Pipfile.lock
/Pipfile
/Pipfile.lock

# Various editors
*~
**/*~

# Emacs
\#*\#
**/\#*\#
.\#*
**/.\#*

# Vim
*.swp
**/*.swp
*.swo
**/*.swo
*.swn
**/*.swn
*.un~
.netrwhist

# PyCharm
.idea
.iml

# VSCode
**/.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
**/*.code-workspace
**/.history

# XCode
xcuserdata/

# Eclipse
*.pydevproject
.project
.metadata
*.tmp
*.bak
**/*.bak
*.swp
*~.nib
.classpath
.settings/
.loadpath
.externalToolBuilders/
.cproject
.buildpath

# OSX specific temporary files
.DS_Store
**/.DS_Store
._*
.AppleDouble
.LSOverride
.Spotlight-V100
.Trashes

# Windows
$RECYCLE.BIN/

# SublimeText
*.sublime-workspace

# SageMathCloud
*.sage-chat
*.sage-history
*.syncdoc*

# Jupyter
.ipynb_checkpoints
Untitled*.ipynb

# GitLab CI generated files
gitlab-build-docker.log

# Byte-compiled / optimized / DLL files
__pycache__/
**/__pycache__
*.py[cod]
**/*.py[cod]
*$py.class

# Generated by sage_setup.autogen
/src/sage/ext/interpreters

# Generated Cython files
*.so
**/*.so
/src/sage/**/*.c
/src/sage/**/*.cpp
/src/sage/modular/arithgroup/farey_symbol.h
!/src/sage/cpython/debugimpl.c
!/src/sage/graphs/base/boost_interface.cpp
!/src/sage/graphs/cliquer/cl.c
!/src/sage/graphs/graph_decompositions/sage_tdlib.cpp
!/src/sage/libs/eclib/wrap.cpp
!/src/sage/libs/linkages/padics/relaxed/flint_helper.c
!/src/sage/misc/inherit_comparison_impl.c
!/src/sage/modular/arithgroup/farey.cpp
!/src/sage/modular/arithgroup/sl2z.cpp
!/src/sage/rings/bernmm/bern_modp.cpp
!/src/sage/rings/bernmm/bern_modp_util.cpp
!/src/sage/rings/bernmm/bern_rat.cpp
!/src/sage/rings/bernmm/bernmm-test.cpp
!/src/sage/rings/padics/transcendantal.c
!/src/sage/rings/polynomial/weil/power_sums.c
!/src/sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.cpp
!/src/sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.cpp
!/src/sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_zn_poly.cpp
!/src/sage/stats/distributions/dgs_bern.c
!/src/sage/stats/distributions/dgs_gauss_dp.c
!/src/sage/stats/distributions/dgs_gauss_mp.c
!/src/sage/symbolic/ginac/*.cpp
/src/cython_debug

# Temporary build files
build/temp.*/
build/bin/sage-build-env-config

# Generated files in the top-level source trees
/pkgs/*/build
/pkgs/*/dist
/pkgs/*/MANIFEST
/pkgs/*/*.egg-info
/pkgs/*/.tox

# same for old locations - before Trac #31577
/build/pkgs/*/src/build
/build/pkgs/*/src/dist
/build/pkgs/*/src/MANIFEST
/build/pkgs/*/src/*.egg-info
/build/pkgs/*/src/.tox

# Generated by docbuild
/src/doc/en/reference/*/sage
/src/doc/en/reference/sage
/src/doc/en/reference/spkg/*.rst
/src/doc/output
/src/doc/en/installation/*.txt
/src/doc/en/reference/repl/*.txt

# Distribution / packaging
src/*.egg-info/
/src/.cython_version
/src/build
/src/Makefile
/src/bin/sage-env-config
/src/bin/sage-src-env-config

# Virtual environments
/venv
src/.env
src/.venv
src/env/
src/venv/
src/ENV/
src/env.bak/
src/venv.bak/

# mypy
**/.mypy_cache/

# tox generated files
/.tox
/build/.tox
**/.tox
/prefix

# git worktree
worktree*
**/worktree*
