Skip to content

Commit 540d088

Browse files
committed
Merge commit 'c11b2f4' into t/32215/refactor-element-construction-term-monoids
* commit 'c11b2f4': (706 commits) Trac #32153: fix missing full stop Changed the call to the product representation in ExactTerm._repr_ to self._repr_product_(latex=latex) added docstring to TermWithCoefficient._repr_product_ rename _product_repr_ to _repr_product_ Revert TermWithCoefficient._repr_ to be more descriptive. Refactor ExactTerm._repr_ to TermWithCoefficient._product_repr_ Updated SageMath version to 9.4.beta4 Added continuation prompts src/sage/doctest/forker.py: Do not crash if readline cannot be imported build/pkgs/{scipy,sphinx,sympy}/install-requires.txt: Update version ranges to include the version in package-version.txt sage.env.sage_include_directories: Do not fail if numpy cannot be imported 31443 updated for eclib version 20210625 build/make/Makefile.in: Uninstall setuptools before reinstalling python3 build/pkgs/openblas/spkg-install.in: Save the configuration, reuse it in spkg-check.in allow 32-bit boxes to complain document that coordinate vector is not unique unless reduced build/pkgs/python3/spkg-build.in, spkg-configure.m4: Do not check for the readline module tox.ini, .github/workflows/tox.yml: Add ubuntu-impish, linuxmint-20.2, fedora-35 build/pkgs/setuptools/spkg-install.in: Do not nuke packages in site-packages before install build/pkgs/pip/patches/10029.patch: New ...
2 parents d763d66 + c11b2f4 commit 540d088

File tree

694 files changed

+39359
-29174
lines changed

Some content is hidden

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

694 files changed

+39359
-29174
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install relint
3131
run: pip install tox relint
3232
- name: Lint using relint
33-
run: tox -e relint src/
33+
run: tox -e relint src/sage/
3434
lint-pyright:
3535
name: Static type check with pyright
3636
runs-on: ubuntu-latest

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
fail-fast: false
3939
max-parallel: 20
4040
matrix:
41-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, opensuse-15, opensuse-15.3, opensuse-tumbleweed, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
41+
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, ubuntu-impish, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, linuxmint-20.2, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, fedora-35, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, opensuse-15, opensuse-15.3, opensuse-tumbleweed, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
4242
tox_packages_factor: [minimal, standard]
4343
env:
4444
TOX_ENV: docker-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}

.zenodo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"description": "Mirror of the Sage https://sagemath.org/ source tree",
33
"license": "other-open",
4-
"title": "sagemath/sage: 9.4.beta1",
5-
"version": "9.4.beta1",
4+
"title": "sagemath/sage: 9.4.beta4",
5+
"version": "9.4.beta4",
66
"upload_type": "software",
7-
"publication_date": "2021-06-06",
7+
"publication_date": "2021-07-01",
88
"creators": [
99
{
1010
"affiliation": "SageMath.org",
@@ -15,7 +15,7 @@
1515
"related_identifiers": [
1616
{
1717
"scheme": "url",
18-
"identifier": "https://github.com/sagemath/sage/tree/9.4.beta1",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.4.beta4",
1919
"relation": "isSupplementTo"
2020
},
2121
{

README.md

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
1010
https://www.sagemath.org
1111

12-
The Sage Library is GPLv2+, and included packages have [compatible OSS
13-
licenses](./COPYING.txt). [Over 400 people](https://www.sagemath.org/development-map.html)
14-
have contributed code to Sage. In many cases, documentation for modules
15-
and functions list the authors.
12+
The Sage Library is GPLv2+, and included packages have
13+
[compatible OSS licenses](./COPYING.txt).
14+
[Over 400 people](https://www.sagemath.org/development-map.html)
15+
have contributed code to Sage. In many cases, documentation
16+
for modules and functions list the authors.
1617

1718
Getting Started
1819
---------------
@@ -22,7 +23,7 @@ If you downloaded a [binary](https://www.sagemath.org/download.html)
2223
Sage is ready to start -- just open a terminal in the directory where
2324
you extracted the binary archive and type:
2425

25-
./sage
26+
$ ./sage
2627

2728
(Note that the first run will take more time, as Sage needs to get itself ready.)
2829

@@ -118,9 +119,9 @@ virtual appliance](https://wiki.sagemath.org/SageAppliance).
118119
------------------------------
119120

120121
Make sure you have installed the most current version of Xcode
121-
supported on your version of macOS. If you don't, go to
122+
supported on your version of macOS. If you don't, either go to
122123
https://developer.apple.com/, sign up, and download the free Xcode
123-
package.
124+
package, or get it from Apple's app store.
124125

125126
You also need to install the "command line tools": After installing
126127
Xcode, run `xcode-select --install` from a terminal window; then click
@@ -131,7 +132,7 @@ and then "Install" the Command Line Tools.)
131132

132133
Optionally, you can consider installing Homebrew ("the missing package
133134
manager for macOS") from https://brew.sh/, which can provide libraries
134-
such gfortran, gmp, etc.
135+
such as gfortran, gmp, etc.
135136

136137
Instructions to Build from Source
137138
---------------------------------
@@ -173,11 +174,12 @@ Guide](https://doc.sagemath.org/html/en/installation).
173174

174175
- [Git] Alternatively, clone the Sage git repository:
175176

176-
$ git clone -c core.symlinks=true --branch master https://github.com/sagemath/sage.git
177+
$ ORIG=https://github.com/sagemath/sage.git
178+
$ git clone -c core.symlinks=true --branch master $ORIG
177179

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`.
180+
This will create the subdirectory `sage`. `cd sage/` and pick
181+
the branch you need by doing `git checkout` - typically you want
182+
the latest development branch, thus do `git checkout develop`.
181183

182184
- [Windows] The Sage source tree contains symbolic links, and the
183185
build will not work if Windows line endings rather than UNIX
@@ -186,8 +188,8 @@ Guide](https://doc.sagemath.org/html/en/installation).
186188
Therefore it is crucial that you unpack the source tree from the
187189
Cygwin (or WSL) `bash` using the Cygwin (or WSL) `tar` utility
188190
and not using other Windows tools (including mingw). Likewise,
189-
when using `git`, it is recommended (but not necessary) to use the Cygwin (or WSL)
190-
version of `git`.
191+
when using `git`, it is recommended (but not necessary) to use
192+
the Cygwin (or WSL) version of `git`.
191193

192194
3. `cd` into the source/build directory:
193195

@@ -224,11 +226,16 @@ Guide](https://doc.sagemath.org/html/en/installation).
224226
avoid having to build Sage's own copy of Python 3.
225227

226228
We have collected lists of system packages that provide these build
227-
prerequisites. See [build/pkgs/arch.txt](build/pkgs/arch.txt),
228-
[cygwin.txt](build/pkgs/cygwin.txt),
229-
[debian.txt](build/pkgs/debian.txt) (also for Ubuntu, Linux Mint,
230-
etc.), [fedora.txt](build/pkgs/fedora.txt) (also for Red Hat,
231-
CentOS), and [slackware.txt](build/pkgs/slackware.txt).
229+
prerequisites. See, in the folder
230+
[build/pkgs/_prereq/distros](build/pkgs/_prereq/distros),
231+
the files
232+
[arch.txt](build/pkgs/_prereq/distros/arch.txt),
233+
[cygwin.txt](build/pkgs/_prereq/distros/cygwin.txt),
234+
[debian.txt](build/pkgs/_prereq/distros/debian.txt)
235+
(also for Ubuntu, Linux Mint, etc.),
236+
[fedora.txt](build/pkgs/_prereq/distros/fedora.txt)
237+
(also for Red Hat, CentOS), and
238+
[slackware.txt](build/pkgs/_prereq/distros/slackware.txt).
232239

233240
7. Optional, but highly recommended: Make sure your system has an SSL
234241
library and its development files installed.
@@ -245,7 +252,7 @@ Guide](https://doc.sagemath.org/html/en/installation).
245252
9. Optionally, review the configuration options, which includes
246253
many optional packages:
247254

248-
./configure --help
255+
$ ./configure --help
249256

250257
10. Optional, but highly recommended: Set some environment variables to
251258
customize the build.
@@ -470,7 +477,7 @@ do.
470477

471478
2. (**Obsolete, probably broken**) To make your own source tarball of Sage, type:
472479

473-
sage --sdist
480+
$ sage --sdist
474481

475482
The result is placed in the directory `dist/`.
476483

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.4.beta1, Release Date: 2021-06-06
1+
SageMath version 9.4.beta4, Release Date: 2021-07-01

build/bin/sage-dist-helpers

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,6 @@ sdh_setup_bdist_wheel() {
218218

219219
sdh_pip_install() {
220220
echo "Installing $PKG_NAME"
221-
if [ -n "$SAGE_DESTDIR" ]; then
222-
local sudo=""
223-
else
224-
local sudo="$SAGE_SUDO"
225-
fi
226-
$sudo sage-pip-uninstall "$@" || \
227-
echo 2>&1 "Warning: Failure trying to uninstall a previous version of $PKG_NAME"
228-
229221
mkdir -p dist
230222
rm -f dist/*.whl
231223
python3 -m pip wheel --wheel-dir=dist --no-binary :all: --verbose --no-deps --no-index --isolated --no-build-isolation "$@" || \

build/bin/sage-pip-uninstall

Lines changed: 0 additions & 63 deletions
This file was deleted.

build/bin/sage-site

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ if [ "$1" = "-docbuild" -o "$1" = "--docbuild" ]; then
150150
# Trac #30002: ensure an English locale so that it is possible to
151151
# scrape out warnings by pattern matching.
152152
export LANG=C
153+
export LANGUAGE=C
153154

154155
# See #30351: bugs in macOS implementations of openblas/libgopm can cause
155156
# docbuild to hang if multiple OpenMP threads are allowed.

build/make/Makefile.in

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ all-toolchain: base-toolchain
283283
# given as a prerequisite to any pip-installed packages
284284
PYTHON_TOOLCHAIN = setuptools pip setuptools_scm wheel setuptools_wheel
285285

286+
# Trac #32056: Avoid installed setuptools leaking into the build of python3 by uninstalling it.
287+
# It will have to be reinstalled anyway because of its dependency on $(PYTHON).
288+
python3-SAGE_LOCAL-no-deps: setuptools-clean
289+
python3-SAGE_VENV-no-deps: setuptools-clean
290+
286291
# Everything needed to start up Sage using "./sage". Of course, not
287292
# every part of Sage will work. It does not include Maxima for example.
288293
SAGERUNTIME = sagelib $(inst_ipython) $(inst_pexpect) \
@@ -338,23 +343,23 @@ DOC_DEPENDENCIES = sagelib sage_docbuild $(inst_sphinx) \
338343
doc: doc-html
339344

340345
doc-html: $(DOC_DEPENDENCIES)
341-
$(AM_V_at)cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html $(SAGE_DOCBUILD_OPTS)' logs/dochtml.log
346+
$(AM_V_at)cd "$(SAGE_SRC)/doc" && sage-logger -p "$(MAKE) doc-html" $(SAGE_ROOT)/logs/dochtml.log
342347

343348
# 'doc-html-no-plot': build docs without building the graphics coming
344349
# from the '.. plot' directive, in case you want to save a few
345350
# megabytes of disk space. 'doc-clean' is a prerequisite because the
346351
# presence of graphics is cached in src/doc/output.
347-
doc-html-no-plot: doc-clean $(DOC_DEPENDENCIES)
348-
$(AM_V_at)cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links --no-plot all html $(SAGE_DOCBUILD_OPTS)' logs/dochtml.log
352+
doc-html-no-plot: doc-clean
353+
$(AM_V_at)sage-logger -p "$(MAKE) SAGE_DOCBUILD_OPTS=\"$(SAGE_DOCBUILD_OPTS) --no-plot\" doc-html" $(SAGE_ROOT)/logs/dochtml.log
349354

350-
doc-html-mathjax: $(DOC_DEPENDENCIES)
351-
$(AM_V_at)cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html -j $(SAGE_DOCBUILD_OPTS)' logs/dochtml.log
355+
doc-html-mathjax:
356+
$(AM_V_at)sage-logger -p "$(MAKE) SAGE_DOCBUILD_OPTS=\"$(SAGE_DOCBUILD_OPTS) -j\" doc-html" $(SAGE_ROOT)/logs/dochtml.log
352357

353358
# Keep target 'doc-html-jsmath' for backwards compatibility.
354359
doc-html-jsmath: doc-html-mathjax
355360

356361
doc-pdf: $(DOC_DEPENDENCIES)
357-
$(AM_V_at)cd ../.. && sage-logger -p './sage --docbuild all pdf $(SAGE_DOCBUILD_OPTS)' logs/docpdf.log
362+
$(AM_V_at)cd "$(SAGE_SRC)/doc" && sage-logger -p "$(MAKE) doc-pdf" $(SAGE_ROOT)/logs/docpdf.log
358363

359364
doc-clean: doc-src-clean doc-output-clean
360365

build/pkgs/appdirs/SPKG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
appdirs: A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
2+
==========================================================================================================
3+
4+
Description
5+
-----------
6+
7+
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
8+
9+
License
10+
-------
11+
12+
MIT
13+
14+
Upstream Contact
15+
----------------
16+
17+
https://pypi.org/project/appdirs/
18+

0 commit comments

Comments
 (0)