-
-
Notifications
You must be signed in to change notification settings - Fork 689
Demote brial (= polybori) from standard to optional, add distribution sagemath-brial, enlarge sagemath-objects, sagemath-categories #36380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mkoeppe
wants to merge
105
commits into
sagemath:develop
Choose a base branch
from
mkoeppe:brial_experimental
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
168742e
Merge branch 'sage_schemes_imports' into brial_experimental
mkoeppe 6167f32
build/pkgs/brial/type: Change to experimental
mkoeppe 665d402
src/setup.py: Add brial to optional packages excluded in monolithic i…
mkoeppe 1041e9c
build/pkgs/sagelib/dependencies*: Reduce brial to optional
mkoeppe 4a17cbe
src/sage/features/sagemath.py: Change type of sage.rings.polynomial.p…
mkoeppe ceaf4b0
build/make/Makefile.in (PYPI_WHEEL_PACKAGES): Add sagemath_brial
mkoeppe 4261f0b
build/pkgs/sagemath_brial, pkgs/sagemath-brial: New (from #35095)
mkoeppe ac5f7e5
src/sage_setup/{__init__.py,find.py,command}: Update from #35095
mkoeppe baefb9a
build/pkgs/{brial,sagemath_brial}: Change to optional
mkoeppe 4c8b66e
Add all__sagemath_brial.py files
mkoeppe 6a8d03b
pkgs/sagemath-brial/tox.ini: Fix references to package name
mkoeppe de1aa5d
src/sage/features/sagemath.py: Make sagemath-brial optional, not expe…
mkoeppe ac7523e
build/pkgs/sagemath_brial/dependencies: Move PYTHON to end
mkoeppe 10ad2a9
src/sage_setup/find.py: Restore
mkoeppe 82ad499
pkgs/sagemath-brial/pyproject.toml.m4: Remove runtime dependencies on…
mkoeppe 84d6e67
build/pkgs/sagemath_brial: Depend on sagelib instead of sagemath_cate…
mkoeppe 21a55d4
pkgs/sagemath-brial/tox.ini: Update from sagemath-categories
mkoeppe 71c0204
pkgs/sagemath-brial/pyproject.toml.m4: Declare test requirements
mkoeppe fe739a4
.gitignore: Handle pkgs/sagemath-brial
mkoeppe 8550f3b
src/setup.cfg.m4: Define extra 'brial'
mkoeppe 4884112
pkgs/sagemath-{objects,categories,repl,environment}/MANIFEST.in: Upda…
mkoeppe 0c5ea52
pkgs/sagemath-{objects,categories,repl,environment}/pyproject.toml: U…
mkoeppe b4919e8
pkgs/sagemath-categories/MANIFEST.in.m4: exclude sage/rings/function_…
mkoeppe ef95af5
sage -fixdistributions --set all: Handle sagemath-brial
mkoeppe 60ea218
Update all__sagemath_{objects,categories,repl,environment}.py from #3…
mkoeppe 3cc461f
Update 'all' files
mkoeppe 415fd5b
src/sage/misc/dev_tools.py (find_objects_from_name): Ignore objects f…
mkoeppe 1a416ab
src/sage/rings/rational.pyx: Update from #35095
mkoeppe 6c46b0d
src/sage/rings/rational.pyx: Revert
mkoeppe 94fe9d3
src/sage/schemes/elliptic_curves/ell_curve_isogeny.py: Fix # needs
mkoeppe 93f3dd6
src/sage/schemes/elliptic_curves/ell_curve_isogeny.py: Remove unneces…
mkoeppe 1319ec7
src/sage/schemes/elliptic_curves/ell_curve_isogeny.py: Revert add of …
mkoeppe 35d0c71
Revert "src/sage/rings/rational.pyx: Revert"
mkoeppe 77e6637
src/sage/rings/rational.pyx: Do not use RealDouble_classes for now
mkoeppe 69c5c8a
./sage -fixdoctests --distribution sagemath-categories --update-known…
mkoeppe b99fdf0
./sage -fixdoctests --distribution sagemath-repl --update-known-test-…
mkoeppe efbee8c
.github/workflows/dist.yml: Build sagemath-brial wheel
mkoeppe 2f3ac96
pkgs/sagemath-brial/setup.py: Set up sys.path for now
mkoeppe 7a7c795
pkgs/sagemath-objects/pyproject.toml.m4: Add to package-data
mkoeppe 0590be2
pkgs/sagemath-{categories,environment}/README.rst: Update from #35095
mkoeppe d3851cd
sage.categories: Update # needs
mkoeppe 6cb3e71
sage -fixdoctests --distribution sagemath-categories --update-known-t…
mkoeppe 046dbcf
src/sage/all__sagemath_categories.py: Update from #35095
mkoeppe 04dd503
src/sage/categories/semigroups.py: Fix # needs
mkoeppe 9bd9f18
src/sage/combinat/permutation.py: Use lazy_import for SJT
mkoeppe 1d29e4b
sage -fixdoctests --distribution sagemath-categories --update-known-t…
mkoeppe 5d2efe1
src/sage/misc/dev_tools.py: Update doctest output
mkoeppe 736dfdb
Merge remote-tracking branch 'upstream/develop' into brial_experimental
mkoeppe dbdb740
src/sage/categories/triangular_kac_moody_algebras.py: Add # needs
mkoeppe 9cd16e3
src/sage/tests/cmdline.py: Add # needs
mkoeppe 4fa314c
Merge remote-tracking branch 'upstream/develop' into brial_experimental
mkoeppe 9c04670
Merge branch 'develop' into brial_experimental
mkoeppe 1a9c4c5
./sage --fixdistributions --set sagemath-brial --from-egg-info
mkoeppe 679d582
Merge branch 'develop' into brial_experimental
mkoeppe 54b9aa0
src/sage/sat/converters/polybori.py: Use lazy_import
mkoeppe 6588560
src/sage_docbuild/builders.py: Actually test feature presence in '.. …
mkoeppe c5f1ad1
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe e875b25
Merge branch 'develop' into brial_experimental
mkoeppe 5e71f53
src/sage/functions/hypergeometric.py: Update # needs
mkoeppe ff660fc
src/sage/rings/function_field/element.pyx: Update # needs
mkoeppe f90093f
src/sage/rings/polynomial/pbori: Add # sage.doctest file directives
mkoeppe 2afb99c
src/sage/structure/sequence.py: Use more lazy_import
mkoeppe 8f00816
src/sage/crypto/mq/sr.py: Add # needs
mkoeppe e06bcf3
src/sage/rings/polynomial/multi_polynomial_libsingular.pyx: Add # needs
mkoeppe 581bd47
src/doc/en/reference/sat/index.rst: Add # needs
mkoeppe 0a400bf
src/sage/misc/citation.pyx: Recognize pbori use from a compiled module
mkoeppe b52f037
Merge branch 'develop' into brial_experimental
mkoeppe 876fa67
src/sage/sets/disjoint_set.pyx: Use LazyImport
mkoeppe c937d3b
Merge remote-tracking branch 'upstream/develop' into brial_experimental
mkoeppe 462d20d
src/sage/rings/power_series_ring.py: Use lazy_import
mkoeppe ac4af7c
src/sage/schemes/generic/scheme.py: Use lazy_import
mkoeppe cbd4705
src/sage/structure/parent.pyx: Add # needs
mkoeppe 76a1137
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe 4a230cd
src/sage/arith/misc.py: Add # needs
mkoeppe 7ff4d21
sage.categories: Add # needs
mkoeppe 93edb68
sage.combinat: Add # needs
mkoeppe d1c0adf
src/sage/doctest/util.py: Add # needs
mkoeppe 6c3067d
src/sage/groups/generic.py: Add # needs
mkoeppe 84e3252
src/sage/rings/function_field/jacobian_*.py: Add # needs
mkoeppe 697ac5b
sage.rings: Modularization fixes (imports)
mkoeppe 9641879
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe f562919
sage.groups: Add # needs
mkoeppe 75f7fc7
sage.modules: Add # needs
mkoeppe 52203c2
sage.rings.function_field: Add # needs
mkoeppe d0eed98
src/sage/rings/generic.py: Add # needs
mkoeppe ff5e5b0
sage.rings: Add # needs
mkoeppe 2140e49
PowerSeries_poly.reverse: Recognize ImportError as pari failure
mkoeppe c7fbf22
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe 3c9c49b
src/sage/schemes/generic/homset.py: Add # needs
mkoeppe 41c0d10
src/sage/schemes/projective/projective_subscheme.py: Use lazy_import
mkoeppe d500775
sage.categories: Add # needs
mkoeppe 695c1d1
sage.groups: Add # needs
mkoeppe 44f78ed
sage.rings: Add # needs
mkoeppe 4056a24
sage.sets: Add # needs
mkoeppe 25cd8f4
sage.structure: Add # needs
mkoeppe 2153574
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe 0a508b4
sage.rings: Add # needs
mkoeppe dbadb36
sage.schemes: Add # needs
mkoeppe 099f97b
sage.rings: Add # needs
mkoeppe 98f2702
sage.schemes: Add # needs
mkoeppe 8aa4580
sage.structure: Add # needs
mkoeppe 9cba2e8
./sage --fixdoctests --distribution sagemath-categories --update-know…
mkoeppe 4db215b
Merge remote-tracking branch 'upstream/develop' into brial_experimental
mkoeppe f5ee6a4
src/sage_setup/__init__.py: Fix for breaking change in sage_setup.aut…
mkoeppe aed5ba0
Make brial standard again for now
mkoeppe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| brial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| src/README.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagelib/bootstrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| cypari memory_allocator brial sagelib | $(PYTHON_TOOLCHAIN) sage_setup cython pkgconfig $(PYTHON) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_categories/dependencies_check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| src/VERSION.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_objects/spkg-check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_tdlib/spkg-install.in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Script to prepare an sdist tarball for sagemath-brial | ||
| # This script is not used during build. | ||
| # | ||
| # HOW TO MAKE THE TARBALL: | ||
| # ./sage --sh build/pkgs/sagemath_brial/spkg-src | ||
|
|
||
| if [ -z "$SAGE_ROOT" ] ; then | ||
| echo >&2 "Error - SAGE_ROOT undefined ... exiting" | ||
| echo >&2 "Maybe run 'sage -sh'?" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Exit on failure | ||
| set -e | ||
|
|
||
| cd build/pkgs/sagemath_brial | ||
|
|
||
| cd src | ||
| # Get rid of old *.egg-info/SOURCES.txt | ||
| rm -Rf *.egg-info | ||
|
|
||
| python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../../pkgs/sagemath-brial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| standard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # This file is updated on every release by the sage-update-version script | ||
| sagemath-brial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| prune sage | ||
|
|
||
| include VERSION.txt | ||
|
|
||
| graft sage/libs/polybori | ||
| graft sage/rings/polynomial/pbori | ||
|
|
||
| global-exclude *.c | ||
| global-exclude *.cpp | ||
|
|
||
| global-exclude all__sagemath_*.py | ||
| global-include all__sagemath_brial.py | ||
|
|
||
| global-exclude __pycache__ | ||
| global-exclude *.py[co] | ||
| global-exclude *.bak | ||
| global-exclude *.so | ||
| global-exclude *~ | ||
| prune .tox | ||
| prune build | ||
| prune dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| ========================================================================= | ||
| Sage: Open Source Mathematics Software: Boolean Ring Algebra with BRiAl | ||
| ========================================================================= | ||
|
|
||
| About SageMath | ||
| -------------- | ||
|
|
||
| "Creating a Viable Open Source Alternative to | ||
| Magma, Maple, Mathematica, and MATLAB" | ||
|
|
||
| Copyright (C) 2005-2023 The Sage Development Team | ||
|
|
||
| https://www.sagemath.org | ||
|
|
||
| SageMath fully supports all major Linux distributions, recent versions of | ||
| macOS, and Windows (using Cygwin or Windows Subsystem for Linux). | ||
|
|
||
| The traditional and recommended way to install SageMath is from source via | ||
| Sage-the-distribution (https://www.sagemath.org/download-source.html). | ||
| Sage-the-distribution first builds a large number of open source packages from | ||
| source (unless it finds suitable versions installed in the system) and then | ||
| installs the Sage Library (sagelib, implemented in Python and Cython). | ||
|
|
||
|
|
||
| About this pip-installable source distribution | ||
| ---------------------------------------------- | ||
|
|
||
| This pip-installable source distribution ``sagemath-brial`` provides | ||
| a Boolean Ring Algebra implementation using binary decision diagrams, | ||
| implemented by the BRiAl library, the successor to PolyBoRi. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../src/VERSION.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- | ||
| [build-system] | ||
| # Minimum requirements for the build system to execute. | ||
| requires = [ | ||
| SPKG_INSTALL_REQUIRES_setuptools | ||
| SPKG_INSTALL_REQUIRES_pkgconfig | ||
| SPKG_INSTALL_REQUIRES_sage_setup | ||
| SPKG_INSTALL_REQUIRES_sagemath_categories | ||
| SPKG_INSTALL_REQUIRES_sagemath_environment | ||
| SPKG_INSTALL_REQUIRES_sagemath_objects | ||
| SPKG_INSTALL_REQUIRES_cython | ||
| SPKG_INSTALL_REQUIRES_cysignals | ||
| ] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "sagemath-brial" | ||
| description = "Sage: Open Source Mathematics Software: Boolean Ring Algebra with BRiAl" | ||
| dependencies = [ | ||
| SPKG_INSTALL_REQUIRES_cysignals | ||
| ] | ||
| dynamic = ["version"] | ||
| include(`pyproject_toml_metadata.m4')dnl' | ||
|
|
||
| [project.readme] | ||
| file = "README.rst" | ||
| content-type = "text/x-rst" | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| SPKG_INSTALL_REQUIRES_sagemath_categories | ||
| SPKG_INSTALL_REQUIRES_sagemath_repl | ||
| ] | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = false | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {file = ["VERSION.txt"]} | ||
|
|
||
| [external] | ||
| # External dependencies in the format proposed by https://peps.python.org/pep-0725 | ||
| build-requires = [ | ||
| "virtual:compiler/c", | ||
| "virtual:compiler/cpp", | ||
| "pkg:generic/pkg-config", | ||
| ] | ||
|
|
||
| host-requires = [ | ||
| "pkg:generic/brial", | ||
| "pkg:generic/gmp", | ||
| "pkg:generic/mpc", | ||
| "pkg:generic/mpfr", | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| include(`sage_spkg_versions.m4')dnl | ||
| dnl Same as setup.cfg.m4 install_requires; FIXME: should pin to built wheels. | ||
| SPKG_INSTALL_REQUIRES_gmpy2 | ||
| SPKG_INSTALL_REQUIRES_cysignals | ||
| -e ../sagemath-objects | ||
| -e ../sagemath-categories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Cython==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)') | ||
| sagemath-standard==esyscmd(`printf $(sed "s/[.]p.*//;" ../sagelib/package-version.txt)') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../src/sage | ||
mkoeppe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/usr/bin/env python | ||
|
|
||
| # PEP 517 builds do not have . in sys.path | ||
| import os | ||
| import sys | ||
| sys.path.insert(0, os.path.dirname(__file__)) | ||
|
|
||
| from sage_setup import sage_setup | ||
|
|
||
| sage_setup(['sagemath-brial'], | ||
| required_modules=('m4ri', 'libpng')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| # To build and test in the tox environment: | ||
| # | ||
| # ./sage -sh -c '(cd pkgs/sagemath-brial && tox -v -v -v -e sagepython)' | ||
| # | ||
| # To test interactively: | ||
mkoeppe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # | ||
| # pkgs/sagemath-brial/.tox/sagepython/bin/python | ||
| # | ||
| [tox] | ||
| envlist = | ||
| sagepython-sagewheels-nopypi-norequirements | ||
|
|
||
| requires = | ||
| # Auto-provision a modern tox. | ||
| # [pkgenv] added in 4.2 - https://tox.wiki/en/latest/upgrading.html#packaging-configuration-and-inheritance | ||
| # Because of https://github.com/tox-dev/tox/issues/3238, need <4.14.1 | ||
| tox>=4.2 | ||
| tox<4.14.1 | ||
|
|
||
| [pkgenv] | ||
| # Environment in which to build the sdist. | ||
| # https://tox.wiki/en/latest/upgrading.html#packaging-environments | ||
| passenv = | ||
| # Variables set by .homebrew-build-env | ||
| CPATH | ||
| LIBRARY_PATH | ||
| PKG_CONFIG_PATH | ||
| # Parallel build | ||
| SAGE_NUM_THREADS | ||
| SAGE_NUM_THREADS_PARALLEL | ||
| MAKEFLAGS | ||
| # SAGE_VENV only for referring to the basepython or finding the wheels | ||
| sagepython, sagewheels: SAGE_VENV | ||
| # Location of the wheels | ||
| sagewheels: SAGE_SPKG_WHEELS | ||
|
|
||
| setenv = | ||
| # We supply pip options by environment variables so that they | ||
| # apply both to the installation of the dependencies and of the package | ||
| sagewheels: PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} | ||
| nopypi: PIP_NO_INDEX=true | ||
|
|
||
| [testenv] | ||
| deps = | ||
| !norequirements: -rrequirements.txt | ||
|
|
||
| extras = test | ||
|
|
||
| passenv = {[pkgenv]passenv} | ||
|
|
||
| setenv = {[pkgenv]setenv} | ||
| # Sage scripts such as sage-runtests like to use $HOME/.sage | ||
| HOME={envdir} | ||
| # Stop 'sage -t --installed' from picking up doc installed in SAGE_LOCAL | ||
| SAGE_DOC=/doesnotexist | ||
| KNOWN_TEST_FAILURES={toxinidir}/known-test-failures.json | ||
| # See src/bin/sage-env | ||
| PYDEVD_DISABLE_FILE_VALIDATION=1 | ||
|
|
||
| allowlist_externals = | ||
| bash | ||
|
|
||
| commands = | ||
| # Beware of the treacherous non-src layout. "./sage/" shadows the installed sage package. | ||
| {envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.all__sagemath_brial; import sage.rings.polynomial.pbori' | ||
|
|
||
| [testenv:.tox] | ||
| # Allow access to PyPI for auto-provisioning a suitable tox version | ||
| passenv = | ||
| setenv = PIP_NO_INDEX=false | ||
|
|
||
| [testenv:.pkg-sagepython] | ||
| # Environment in which to build the sdist. | ||
| # inherits from [pkgenv] - https://tox.wiki/en/latest/upgrading.html#packaging-environments | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
|
|
||
| [testenv:.pkg-sagepython-sagewheels-nopypi] | ||
| passenv = {[pkgenv]passenv} | ||
| SAGE_VENV | ||
| SAGE_SPKG_WHEELS | ||
|
|
||
| setenv = {[pkgenv]setenv} | ||
| PIP_FIND_LINKS=file://{env:SAGE_SPKG_WHEELS:{env:SAGE_VENV:{toxinidir}/../../../../venv}/var/lib/sage/wheels} | ||
| PIP_NO_INDEX=true | ||
|
|
||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
|
|
||
| [testenv:.pkg-sagepython-sagewheels-nopypi-editable] | ||
| config_settings_build_editable = | ||
| editable_mode = strict | ||
|
|
||
|
|
||
| [testenv:sagepython] | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
| package_env = .pkg-sagepython | ||
|
|
||
| [testenv:sagepython-sagewheels-nopypi] | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
| package_env = .pkg-sagepython-sagewheels-nopypi | ||
|
|
||
| [testenv:sagepython-sagewheels] | ||
| basepython = {env:SAGE_VENV}/bin/python | ||
| package_env = .pkg-sagepython | ||
|
|
||
| [testenv:sagepython-norequirements] | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
| package_env = .pkg-sagepython | ||
|
|
||
|
|
||
| [testenv:sagepython-sagewheels-nopypi-norequirements] | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
| package_env = .pkg-sagepython-sagewheels-nopypi | ||
|
|
||
| [testenv:sagepython-sagewheels-nopypi-editable] | ||
| basepython = {env:SAGE_VENV}/bin/python3 | ||
| package_env = .pkg-sagepython-sagewheels-nopypi-editable | ||
| package = editable | ||
| deps = -r requirements-editable.txt | ||
| config_settings_build_editable = | ||
| editable_mode = strict | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.