Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge tag '9.8.beta3' into t/34346/document_new_conda_packages_sagema…
Browse files Browse the repository at this point in the history
…th_sirocco_and_sagemath_bliss

SageMath version 9.8.beta3, Release Date: 2022-10-30
  • Loading branch information
Matthias Koeppe committed Nov 16, 2022
2 parents da9770d + c3028e7 commit fda314b
Show file tree
Hide file tree
Showing 527 changed files with 25,128 additions and 8,997 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
targets: build doc-html
targets_optional: ptest
tox_packages_factors: >-
["minimal]
["minimal"]
docker_push_repository: ghcr.io/${{ github.repository }}/

maximal-pre:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ on:
default: >-
["ubuntu-trusty-toolchain-gcc_9",
"ubuntu-xenial-toolchain-gcc_9",
"ubuntu-bionic-gcc_8",
"ubuntu-bionic-gcc_8-python3.8",
"ubuntu-focal",
"ubuntu-jammy",
"ubuntu-kinetic",
"debian-buster",
"debian-bullseye",
"debian-bookworm",
"debian-sid",
"linuxmint-19-gcc_8",
"linuxmint-19.3-gcc_8",
"linuxmint-19-gcc_8-python3.8",
"linuxmint-19.3-gcc_8-python3.8",
"linuxmint-20.1",
"linuxmint-20.2",
"linuxmint-20.3",
"linuxmint-21",
"fedora-29",
"fedora-30",
"fedora-29-python3.8",
"fedora-30-python3.8",
"fedora-31",
"fedora-32",
"fedora-33",
Expand All @@ -42,17 +42,16 @@ on:
"fedora-36",
"fedora-37",
"centos-7-devtoolset-gcc_11",
"centos-stream-8",
"centos-stream-9",
"centos-stream-8-python3.9",
"centos-stream-9-python3.9",
"gentoo-python3.9",
"gentoo-python3.10",
"archlinux-latest",
"opensuse-15.3-gcc_11",
"opensuse-15.4-gcc_11",
"opensuse-tumbleweed",
"opensuse-15.3-gcc_11-python3.9",
"opensuse-15.4-gcc_11-python3.10",
"opensuse-tumbleweed-python3.10",
"conda-forge",
"ubuntu-bionic-i386",
"manylinux-2_24-i686",
"ubuntu-bionic-gcc_8-i386",
"debian-buster-i386",
]
tox_packages_factors:
Expand Down Expand Up @@ -128,6 +127,7 @@ jobs:
FROM_DOCKER_REPOSITORY: ${{ inputs.from_docker_repository }}
FROM_DOCKER_TARGET: ${{ inputs.from_docker_target }}
FROM_DOCKER_TAG: ${{ inputs.from_docker_tag }}
EXTRA_CONFIGURE_ARGS: --enable-fat-binary

steps:
- name: Check out SageMath
Expand Down
29 changes: 29 additions & 0 deletions .gitpod-setup-trac-remote.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

# Exit on error
set -e

# Setup trac as remote
## In order to push to trac, generate a new key with `ssh-keygen -f tempkey` and save the private key to gitpod `gp env PRIVATE_SSH_KEY="$(<tempkey)"` (or by following https://www.gitpod.io/docs/environment-variables#using-the-account-settings)
## then follow https://doc.sagemath.org/html/en/developer/trac.html#linking-your-public-key-to-your-trac-account to register the public key with trac.
## Afterwards, create a new gitpod workspace.
git remote remove trac 2> /dev/null || true # might still exists from a previous run/prebuild
if [[ -n "${PRIVATE_SSH_KEY}" ]]; then
# Setup ssh key for authentication with trac
mkdir -p ~/.ssh
echo $PRIVATE_SSH_KEY | sed 's/\(-----\(BEGIN\|END\) OPENSSH PRIVATE KEY-----\)/\n\1\n/g' > ~/.ssh/id_rsa
sed -i '/^$/d' ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "PubkeyAcceptedKeyTypes +ssh-rsa" > ~/.ssh/config
ssh-keyscan -H trac.sagemath.org >> ~/.ssh/known_hosts

# Setup trac repo
git remote add trac git@trac.sagemath.org:sage.git -t master -t develop -t $(git branch --show-current)
git remote set-url --push trac git@trac.sagemath.org:sage.git
git fetch trac
git branch -u trac/$(git branch --show-current)
else
# Fallback to sagemath mirror
git remote add trac https://github.com/sagemath/sagetrac-mirror.git -t master -t develop
git remote set-url --push trac pushing-needs-ssh-key
fi
61 changes: 16 additions & 45 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,24 @@ image:
# Start up tasks. https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Setup
init: |
# Create conda environment
# Create conda environment, then configure and build sage
init: >-
./bootstrap-conda
mamba env create --file src/environment-dev.yml --prefix venv
conda config --append envs_dirs $(pwd)
conda activate $(pwd)/venv
# Build sage
./bootstrap
./configure --enable-build-as-root --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX
pip install --no-build-isolation -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
pip install --no-build-isolation -v -v -e ./src
command: |
# Activate conda environment
conda config --append envs_dirs $(pwd)
conda activate $(pwd)/venv
# RestructuredText extension recommends python extension, although we have already installed it
## So disable the recommendation dialog
&& mamba env create --file src/environment-dev.yml --prefix venv
&& conda config --append envs_dirs $(pwd)
&& conda activate $(pwd)/venv
&& ./bootstrap
&& ./configure --enable-build-as-root --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX
&& pip install --no-build-isolation -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
&& pip install --no-build-isolation -v -v -e ./src
# Activate conda environment, set up Trac remote
# RestructuredText extension recommends python extension, although we have already installed it
# So disable the recommendation dialog
command: >-
echo "{\"restructuredtext.pythonRecommendation.disabled\": true}" > /workspace/.vscode-remote/data/Machine/settings.json
# Setup trac as remote
## In order to push to trac, generate a new key with `ssh-keygen -f tempkey` and save the private key to gitpod `gp env PRIVATE_SSH_KEY="$(<tempkey)"` (or by following https://www.gitpod.io/docs/environment-variables#using-the-account-settings)
## then follow https://doc.sagemath.org/html/en/developer/trac.html#linking-your-public-key-to-your-trac-account to register the public key with trac.
## Afterwards, create a new gitpod workspace.
git remote remove trac 2> /dev/null # might still exists from a previous run/prebuild
if [[ -n "${PRIVATE_SSH_KEY}" ]]; then
# Setup ssh key for authentication with trac
mkdir -p ~/.ssh
echo $PRIVATE_SSH_KEY | sed 's/\(-----\(BEGIN\|END\) OPENSSH PRIVATE KEY-----\)/\n\1\n/g' > ~/.ssh/id_rsa
sed -i '/^$/d' ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "PubkeyAcceptedKeyTypes +ssh-rsa" > ~/.ssh/config
ssh-keyscan -H trac.sagemath.org >> ~/.ssh/known_hosts
# Setup trac repo
git remote add trac git@trac.sagemath.org:sage.git -t master -t develop -t $(git branch --show-current)
git remote set-url --push trac git@trac.sagemath.org:sage.git
git fetch trac
git branch -u trac/$(git branch --show-current)
else
# Fallback to sagemath mirror
git remote add trac https://github.com/sagemath/sagetrac-mirror.git -t master -t develop
git remote set-url --push trac pushing-needs-ssh-key
fi
&& conda config --append envs_dirs $(pwd)
&& conda activate $(pwd)/venv
&& ./.gitpod-setup-trac-remote.sh
env:
SAGE_NUM_THREADS: 8

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"python.linting.enabled": true,
// The following pycodestyle arguments are the same as the pycodestyle-minimal
// tox environnment, see the file SAGE_ROOT/src/tox.ini
"python.linting.pycodestyleArgs": ["--select=E111,E306,E401,E701,E702,E703,W605,E711,E712,E713,E721,E722"],
"python.linting.pycodestyleArgs": ["--select=E111,E306,E401,E701,E702,E703,W391,W605,E711,E712,E713,E721,E722"],
"cSpell.words": [
"furo",
"Conda",
Expand Down
8 changes: 4 additions & 4 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"description": "Mirror of the Sage https://sagemath.org/ source tree",
"license": "other-open",
"title": "sagemath/sage: 9.8.beta1",
"version": "9.8.beta1",
"title": "sagemath/sage: 9.8.beta3",
"version": "9.8.beta3",
"upload_type": "software",
"publication_date": "2022-09-29",
"publication_date": "2022-10-30",
"creators": [
{
"affiliation": "SageMath.org",
Expand All @@ -15,7 +15,7 @@
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/sagemath/sage/tree/9.8.beta1",
"identifier": "https://github.com/sagemath/sage/tree/9.8.beta3",
"relation": "isSupplementTo"
},
{
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SageMath version 9.8.beta1, Release Date: 2022-09-29
SageMath version 9.8.beta3, Release Date: 2022-10-30
2 changes: 1 addition & 1 deletion build/bin/sage-site
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fi

if [ "$1" = '-package' -o "$1" = "--package" ]; then
shift
exec sage-package $@
exec sage-package "$@"
fi

if [ "$1" = '-optional' -o "$1" = "--optional" ]; then
Expand Down
4 changes: 2 additions & 2 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ $(1)-$(4)-no-deps:
SAGE_SPKG_WHEELS=$$($(4))/var/lib/sage/wheels \
SAGE_INST_LOCAL=$$($(4)) \
sage-logger -p 'SAGE_CHECK=$$(SAGE_CHECK_$(1)) $$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' '$$(SAGE_LOGS)/$(1)-$(2).log' && \
rm -f "$$($(4))/$(SPKG_INST_RELDIR)/$(1)-*" && \
rm -f "$$($(4))/$(SPKG_INST_RELDIR)/$(1)"-* && \
touch "$$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2)"; \
else ( \
echo; \
Expand All @@ -704,7 +704,7 @@ $(1)-$(4)-uninstall:
. '$$(SAGE_ROOT)/build/bin/sage-build-env-config' && \
. '$$(SAGE_ROOT)/build/bin/sage-build-env' && \
'$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-uninstall'
-rm -f "$$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2)"
-rm -f "$$($(4))/$(SPKG_INST_RELDIR)/$(1)"-*

$(1)-uninstall: $(1)-$(4)-uninstall

Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/_develop/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_bootstrap git pytest pytest_xdist
_bootstrap git pytest pytest_xdist github_cli
1 change: 1 addition & 0 deletions build/pkgs/_python3.10/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python310
1 change: 1 addition & 0 deletions build/pkgs/_python3.10/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python310
3 changes: 3 additions & 0 deletions build/pkgs/_python3.10/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3.10
python3.10-dev
python3.10-venv
2 changes: 2 additions & 0 deletions build/pkgs/_python3.10/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python310
python310-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.10/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python310
1 change: 1 addition & 0 deletions build/pkgs/_python3.10/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python@3.10
1 change: 1 addition & 0 deletions build/pkgs/_python3.10/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python310
2 changes: 2 additions & 0 deletions build/pkgs/_python3.10/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python310
python310-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.11/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python311
1 change: 1 addition & 0 deletions build/pkgs/_python3.11/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python311
3 changes: 3 additions & 0 deletions build/pkgs/_python3.11/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3.11
python3.11-dev
python3.11-venv
2 changes: 2 additions & 0 deletions build/pkgs/_python3.11/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python311
python311-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.11/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python311
1 change: 1 addition & 0 deletions build/pkgs/_python3.11/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python@3.11
1 change: 1 addition & 0 deletions build/pkgs/_python3.11/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python311
2 changes: 2 additions & 0 deletions build/pkgs/_python3.11/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python311
python311-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.8/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python38
1 change: 1 addition & 0 deletions build/pkgs/_python3.8/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python38
3 changes: 3 additions & 0 deletions build/pkgs/_python3.8/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3.8
python3.8-dev
python3.8-venv
2 changes: 2 additions & 0 deletions build/pkgs/_python3.8/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python38
python38-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.8/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python38
1 change: 1 addition & 0 deletions build/pkgs/_python3.8/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python@3.8
1 change: 1 addition & 0 deletions build/pkgs/_python3.8/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python38
2 changes: 2 additions & 0 deletions build/pkgs/_python3.8/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python38
python38-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.9/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python39
1 change: 1 addition & 0 deletions build/pkgs/_python3.9/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python39
3 changes: 3 additions & 0 deletions build/pkgs/_python3.9/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3.9
python3.9-dev
python3.9-venv
2 changes: 2 additions & 0 deletions build/pkgs/_python3.9/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python39
python39-devel
1 change: 1 addition & 0 deletions build/pkgs/_python3.9/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python39
1 change: 1 addition & 0 deletions build/pkgs/_python3.9/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python@3.9
1 change: 1 addition & 0 deletions build/pkgs/_python3.9/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python39
2 changes: 2 additions & 0 deletions build/pkgs/_python3.9/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python39
python39-devel
18 changes: 18 additions & 0 deletions build/pkgs/antic/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
antic: Algebraic Number Theory In C
===================================

Description
-----------

Algebraic Number Theory In C

License
-------

LGPL 2.1

Upstream Contact
----------------

https://github.com/wbhart/antic

5 changes: 5 additions & 0 deletions build/pkgs/antic/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=antic-VERSION.tar.gz
sha1=940d8ea2c3512b9d49ee3101cf043f777764bd8f
md5=4e896420dd6344b53b307871efb2cbb4
cksum=1938565125
upstream_url=https://github.com/wbhart/antic/archive/refs/tags/vVERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/antic/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(MP_LIBRARY) mpfr flint

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antic
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antic
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libantic-dev
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antic-devel
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
math/antic
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antic-devel
1 change: 1 addition & 0 deletions build/pkgs/antic/distros/repology.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antic
1 change: 1 addition & 0 deletions build/pkgs/antic/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.5
19 changes: 19 additions & 0 deletions build/pkgs/antic/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cd src

# Copied from build/pkgs/flint/spkg-install.in:
# Trac #29607: We must always supply --with-gmp, --with-mpfr,
# --with-ntl because otherwise FLINT's configure script uses
# /usr/local, which is always wrong.
# This is why we do not use $SAGE_CONFIGURE_GMP etc. here.
# The value $SAGE_LOCAL is always a safe choice even if the library
# is coming from the system and is found using what is in
# LIBRARY_PATH or LDFLAGS etc.
./configure \
--disable-static \
--prefix="$SAGE_LOCAL" \
--with-gmp="$SAGE_LOCAL" \
--with-mpfr="$SAGE_LOCAL" \
--with-flint="$SAGE_LOCAL" || sdh_die "Error: Failed to configure antic."

sdh_make verbose
sdh_make_install
1 change: 1 addition & 0 deletions build/pkgs/antic/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
4 changes: 1 addition & 3 deletions build/pkgs/cddlib/distros/homebrew.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Until https://trac.sagemath.org/ticket/29413 is done, we cannot use homebrew's cddlib,
# which already uses the new upstream include header locations.
#cddlib
cddlib
Loading

0 comments on commit fda314b

Please sign in to comment.