Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 3fcd71f

Browse files
author
Matthias Koeppe
committed
Merge tag '9.3.beta0' into t/30709/public/build/cythonConfig
SageMath version 9.3.beta0, Release Date: 2020-11-01
2 parents 1aef376 + 2c87dc1 commit 3fcd71f

File tree

374 files changed

+9205
-4772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+9205
-4772
lines changed

.github/workflows/tox.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ jobs:
239239
if: contains(matrix.tox_system_factor, 'nobootstrap')
240240
- name: Move homebrew away
241241
run: |
242-
(cd /usr/local && for a in bin etc include lib opt sbin share; do mv $a $a-moved; done)
242+
(cd /usr/local && for a in bin etc include lib opt sbin share; do sudo mv $a $a-moved; done)
243243
- name: Select Xcode version
244244
run: |
245245
if [ ${{ matrix.xcode_version_factor }} != default ]; then sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version_factor }}.app; fi
246246
- name: Install test prerequisites
247247
run: |
248-
/usr/bin/python3 -m pip install --user tox
248+
sudo /usr/bin/python3 -m pip install tox
249249
- name: Install python3 from python.org
250250
# As of 2020-03-30 (https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md),
251251
# Python 3.7.7 is installed on GitHub Actions runners. But we install our own copy from the python.org binary package.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ $RECYCLE.BIN/
7777
# SublimeText
7878
*.sublime-workspace
7979

80+
# mypy
81+
**/.mypy_cache/
82+
8083
#################
8184
# SageMathCloud #
8285
#################

.zenodo.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"description": "Mirror of the Sage https://sagemath.org/ source tree",
3+
"license": "other-open",
4+
"title": "sagemath/sage: 9.3.beta0",
5+
"version": "9.3.beta0",
6+
"upload_type": "software",
7+
"publication_date": "2020-11-01",
8+
"creators": [
9+
{
10+
"affiliation": "SageMath.org",
11+
"name": "The SageMath Developers"
12+
}
13+
],
14+
"access_right": "open",
15+
"related_identifiers": [
16+
{
17+
"scheme": "url",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.3.beta0",
19+
"relation": "isSupplementTo"
20+
},
21+
{
22+
"scheme": "doi",
23+
"identifier": "10.5281/zenodo.593563",
24+
"relation": "isVersionOf"
25+
}
26+
]
27+
}

.zenodo.json.in

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"description": "Mirror of the Sage https://sagemath.org/ source tree",
3+
"license": "other-open",
4+
"title": "sagemath/sage: ${SAGE_VERSION}",
5+
"version": "${SAGE_VERSION}",
6+
"upload_type": "software",
7+
"publication_date": "${SAGE_RELEASE_DATE}",
8+
"creators": [
9+
{
10+
"affiliation": "SageMath.org",
11+
"name": "The SageMath Developers"
12+
}
13+
],
14+
"access_right": "open",
15+
"related_identifiers": [
16+
{
17+
"scheme": "url",
18+
"identifier": "https://github.com/sagemath/sage/tree/${SAGE_VERSION}",
19+
"relation": "isSupplementTo"
20+
},
21+
{
22+
"scheme": "doi",
23+
"identifier": "10.5281/zenodo.593563",
24+
"relation": "isVersionOf"
25+
}
26+
]
27+
}

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ Guide](https://doc.sagemath.org/html/en/installation).
173173

174174
- [Git] Alternatively, clone the Sage git repository:
175175

176-
$ git clone -c core.symlinks=true --branch master git://trac.sagemath.org/sage.git
176+
$ git clone -c core.symlinks=true --branch master https://github.com/sagemath/sage.git
177177

178-
This will create the subdirectory `sage`.
178+
This will create the subdirectory `sage`. `cd sage/` and pick the branch you need
179+
by doing `git checkout` - typically you want the latest development branch, thus do
180+
`git checkout develop`.
179181

180182
- [Windows] The Sage source tree contains symbolic links, and the
181183
build will not work if Windows line endings rather than UNIX

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.2.beta14, Release Date: 2020-09-30
1+
SageMath version 9.3.beta0, Release Date: 2020-11-01

build/bin/sage-clone-source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ git clone "$SRC" "$DST"
3535

3636
cd "$DST"
3737
git remote set-url origin "$SAGE_REPO_ANONYMOUS"
38+
git remote set-url --push origin "$SAGE_REPO_AUTHENTICATED"
3839

3940
# Save space
4041
git gc --aggressive --prune=now

build/bin/sage-get-system-packages

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
SYSTEM=$1
33
if [ -z "$SYSTEM" ]; then
4-
echo >&2 "usage: $0 {debian|arch|conda|...} SPKGS..."
4+
echo >&2 "usage: $0 {debian|arch|conda|pip|...} SPKGS..."
55
exit 1
66
fi
77
shift
@@ -10,9 +10,18 @@ SPKGS="$*"
1010
if [ -z "$SAGE_ROOT" ]; then
1111
SAGE_ROOT=`pwd`
1212
fi
13-
STRIP_COMMENTS="sed s/#.*//;"
13+
case "$SYSTEM" in
14+
pip)
15+
SYSTEM_PACKAGES_FILE_NAME="requirements.txt"
16+
STRIP_COMMENTS='sed s/#.*//;s/[[:space:]]//g;'
17+
;;
18+
*)
19+
SYSTEM_PACKAGES_FILE_NAME="distros/$SYSTEM.txt"
20+
STRIP_COMMENTS="sed s/#.*//;"
21+
;;
22+
esac
1423
for PKG_BASE in $SPKGS; do
15-
SYSTEM_PACKAGES_FILE=$SAGE_ROOT/build/pkgs/$PKG_BASE/distros/$SYSTEM.txt
24+
SYSTEM_PACKAGES_FILE="$SAGE_ROOT"/build/pkgs/$PKG_BASE/$SYSTEM_PACKAGES_FILE_NAME
1625
if [ -f $SYSTEM_PACKAGES_FILE ]; then
1726
echo $(${STRIP_COMMENTS} $SYSTEM_PACKAGES_FILE)
1827
fi

build/bin/sage-print-system-package-command

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ do
1515
# Whether to print sudo for package managers that need sudo for non-root users
1616
SUDO="sudo "
1717
;;
18+
--prompt=*)
19+
PROMPT=${1#--prompt=}
20+
;;
1821
--prompt)
1922
PROMPT=' $ '
2023
;;
2124
-*)
22-
echo >&2 "$0: unknown option $2"
25+
echo >&2 "$0: unknown option $1"
2326
exit 1
2427
;;
2528
*)
@@ -86,6 +89,9 @@ case $system:$command in
8689
freebsd*:install)
8790
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}pkg install $system_packages"
8891
;;
92+
pip:install)
93+
[ -n "$system_packages" ] && echo "${PROMPT}sage -pip install $system_packages"
94+
;;
8995
*:update)
9096
# Nothing needed
9197
;;

build/bin/sage-spkg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ if [ -z "$SAGE_BUILD_DIR" ]; then
181181
export SAGE_BUILD_DIR="$SAGE_LOCAL/var/tmp/sage/build"
182182
fi
183183

184+
export SAGE_SPKG_INST="$SAGE_LOCAL/var/lib/sage/installed"
185+
export SAGE_SPKG_SCRIPTS="$SAGE_LOCAL/var/lib/sage/scripts"
186+
export SAGE_SPKG_WHEELS="$SAGE_LOCAL/var/lib/sage/wheels"
184187

185188
# Remove '.' from PYTHONPATH, to avoid trouble with setuptools / easy_install
186189
# (cf. #10192, #10176):
@@ -486,6 +489,7 @@ export SAGE_ROOT="$SAGE_ROOT"
486489
export SAGE_SRC="$SAGE_SRC"
487490
export SAGE_PKG_DIR="$script_dir"
488491
export SAGE_SPKG_SCRIPTS="$SAGE_SPKG_SCRIPTS"
492+
export SAGE_SPKG_WHEELS="$SAGE_SPKG_WHEELS"
489493
490494
export PKG_NAME="$PKG_NAME"
491495
export PKG_BASE="$PKG_BASE"
@@ -522,7 +526,7 @@ __EOF__
522526
}
523527

524528

525-
WRAPPED_SCRIPTS="build install check preinst postinst legacy-uninstall prerm postrm"
529+
WRAPPED_SCRIPTS="build install check preinst postinst prerm postrm"
526530
INSTALLED_SCRIPTS="prerm postrm"
527531

528532

0 commit comments

Comments
 (0)