Skip to content

Commit 00b3ef1

Browse files
authored
Merge branch 'develop' into ruff_misc_UP
2 parents 066febd + e2e0f8d commit 00b3ef1

File tree

445 files changed

+2124
-3386
lines changed

Some content is hidden

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

445 files changed

+2124
-3386
lines changed

.github/workflows/ci-conda.yml

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222

2323
strategy:
24-
fail-fast: ${{ github.event_name == 'pull_request' }}
25-
max-parallel: ${{ github.event_name == 'pull_request' && 2 || 6 }}
2624
matrix:
2725
os: [ubuntu-latest, macos-latest]
2826
python: ['3.9', '3.10', '3.11']

.github/workflows/cygwin.yml

-151
This file was deleted.

.github/workflows/extract-sage-local.sh

-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ fi
88
# Show all tar files
99
ls -l $*
1010

11-
# Cygwin note: We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
1211
for a in $*; do
1312
echo Extracting $a
1413
(cd / && tar xf -) < $a
@@ -33,10 +32,3 @@ fi
3332

3433
# Show how we are doing on free space.
3534
df -h
36-
37-
# Rebase!
38-
case "$(uname)" in
39-
CYGWIN*)
40-
exec src/bin/sage-rebase.sh --all "$SAGE_LOCAL"
41-
;;
42-
esac

CITATION.cff

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: SageMath
44
abstract: SageMath is a free open-source mathematics software system.
55
authors:
66
- name: "The SageMath Developers"
7-
version: 10.3.beta1
7+
version: 10.3.beta2
88
doi: 10.5281/zenodo.593563
9-
date-released: 2023-12-10
9+
date-released: 2023-12-13
1010
repository-code: "https://github.com/sagemath/sage"
1111
url: "https://www.sagemath.org/"

README.md

+33-37
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
1+
<div>
12
<a href="https://sagemath.org">
23
<picture>
34
<source media="(prefers-color-scheme: dark)" srcset="src/doc/common/static/logo_sagemath_white.svg">
45
<img src="src/doc/common/static/logo_sagemath_black.svg" height="60" align="left">
56
</picture>
67
</a>
8+
<em>"Creating a Viable Open Source Alternative to
9+
Magma, Maple, Mathematica, and MATLAB"</em>
10+
</div>
711

8-
# Sage: Open Source Mathematical Software
12+
#
913

10-
> "Creating a Viable Open Source Alternative to
11-
> Magma, Maple, Mathematica, and MATLAB"
12-
13-
> Copyright (C) 2005-2023 The Sage Development Team
14-
15-
https://www.sagemath.org
16-
17-
[Sage Documentation](https://doc.sagemath.org/html/en/index.html)
18-
19-
The Sage Library is free software released under the
20-
GNU General Public Licence GPLv2+, and included packages
21-
have [compatible software licenses](./COPYING.txt).
22-
[Over 800 people](https://www.sagemath.org/development-map.html)
23-
have contributed code to Sage. In many cases, documentation
24-
for modules and functions list the authors.
14+
Sage is open source mathematical software released under the GNU General Public
15+
Licence GPLv2+, and includes packages that have [compatible software licenses](./COPYING.txt).
16+
[People all around the globe](https://www.sagemath.org/development-map.html) have contributed to the
17+
development of Sage. [Full documentation](https://doc.sagemath.org/html/en/index.html) is available online.
2518

2619
Table of Contents
2720
-----------------
2821

2922
* [Getting Started](#getting-started)
3023
* [Supported Platforms](#supported-platforms)
31-
* [\[Windows\] Preparing the Platform Libraries](#windows-preparing-the-platform)
32-
* [\[macOS\] Preparing the Platform Libraries](#macos-preparing-the-platform)
24+
* [\[Windows\] Preparing the Platform](#windows-preparing-the-platform)
25+
* [\[macOS\] Preparing the Platform](#macos-preparing-the-platform)
3326
* [Instructions to Build from Source](#instructions-to-build-from-source)
3427
* [SageMath Docker Images](#sagemath-docker-images)
3528
* [Troubleshooting](#troubleshooting)
@@ -44,6 +37,14 @@ Table of Contents
4437
Getting Started
4538
---------------
4639

40+
Those who are impatient may use prebuilt Sage available online from any of
41+
42+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sagemath/sage-binder-env/master
43+
) &nbsp; [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/sagemath/sage/tree/master
44+
) &nbsp; [![Open in GitHub Codespaces](https://img.shields.io/badge/Open_in_GitHub_Codespaces-black?logo=github)](https://codespaces.new/sagemath/sage/tree/master)
45+
46+
without local installation. Otherwise read on.
47+
4748
The [Sage Installation Guide](https://doc.sagemath.org/html/en/installation/index.html)
4849
provides a decision tree that guides you to the type of installation
4950
that will work best for you. This includes building from source,
@@ -81,7 +82,7 @@ The preferred way to run Sage on Windows is using the [Windows Subsystem for
8182
Linux](https://docs.microsoft.com/en-us/windows/wsl/faq), a.k.a. WSL, which allows
8283
you to install a standard Linux distribution such as Ubuntu within
8384
your Windows. Make sure you allocate WSL sufficient RAM; 5GB is known to work, while
84-
2GB might be not enough for building Sage from source.
85+
2GB might be not enough for building Sage from source.
8586
Then all instructions for installation in Linux apply.
8687

8788
As an alternative, you can also run Linux on Windows using Docker ([see
@@ -90,26 +91,13 @@ below](#sagemath-docker-images)) or other virtualization solutions.
9091
[macOS] Preparing the Platform
9192
------------------------------
9293

93-
If your Mac uses the Apple Silicon (M1, M2, arm64) architecture:
94-
95-
- If you set up your Mac by transferring files from an older Mac, make sure
94+
- If your Mac uses the Apple Silicon (M1, M2, M3; arm64) architecture and
95+
you set up your Mac by transferring files from an older Mac, make sure
9696
that the directory ``/usr/local`` does not contain an old copy of Homebrew
9797
(or other software) for the x86_64 architecture that you may have copied
9898
over. Note that Homebrew for the M1 is installed in ``/opt/homebrew``, not
9999
``/usr/local``.
100100

101-
- If you wish to use conda, please see the [section on
102-
conda](https://doc.sagemath.org/html/en/installation/conda.html) in the Sage
103-
Installation Manual for guidance.
104-
105-
- Otherwise, using Homebrew ("the missing package manager for macOS") from
106-
https://brew.sh/ required because it provides a version of ``gfortran`` with
107-
necessary changes for this platform that are not in a released upstream
108-
version of GCC. (The ``gfortran`` package that comes with the Sage
109-
distribution is not suitable for the M1/M2.)
110-
111-
If your Mac uses the Intel (x86_64) architecture:
112-
113101
- If you wish to use conda, please see the [section on
114102
conda](https://doc.sagemath.org/html/en/installation/conda.html) in the Sage
115103
Installation Manual for guidance.
@@ -428,18 +416,18 @@ in the Installation Guide.
428416
or JupyterLab installation, as described in [section
429417
"Launching SageMath"](https://doc.sagemath.org/html/en/installation/launching.html)
430418
in the installation manual.
431-
419+
432420
Alternative Installation using PyPI
433421
---------------
434422

435423
For installation of `sage` in python using `pip` you need to install `sagemath-standard`. First, activate your python virtual environment and follow these steps:
436424

437425
$ python3 -m pip install sage_conf
438426
$ ls $(sage-config SAGE_SPKG_WHEELS)
439-
$ python3 -m pip install $(sage-config SAGE_SPKG_WHEELS)/*.whl
427+
$ python3 -m pip install $(sage-config SAGE_SPKG_WHEELS)/*.whl
440428
$ python3 -m pip install sagemath-standard
441429

442-
You need to install `sage_conf`, a wheelhouse of various python packages. You can list the wheels using `ls $(sage-config SAGE_SPKG_WHEELS)`. After manual installation of these wheels, you can install the sage library, `sagemath-standard`.
430+
You need to install `sage_conf`, a wheelhouse of various python packages. You can list the wheels using `ls $(sage-config SAGE_SPKG_WHEELS)`. After manual installation of these wheels, you can install the sage library, `sagemath-standard`.
443431

444432
**NOTE:** You can find `sage` and `sagemath` pip packages but with these packages, you will encounter `ModuleNotFoundError`.
445433

@@ -647,3 +635,11 @@ Sources are in unmodified (as far as possible) tarballs in the
647635
information, patches, and build scripts are in the accompanying
648636
`build/pkgs/<packagename>` directory. This directory is
649637
part of the Sage git repository.
638+
639+
<p align="center">
640+
Copyright (C) 2005-2023 The Sage Development Team
641+
</p>
642+
<p align="center">
643+
https://www.sagemath.org
644+
</p>
645+

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 10.3.beta1, Release Date: 2023-12-10
1+
SageMath version 10.3.beta2, Release Date: 2023-12-13

bootstrap

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ EOF
9292
if test -f "$DIR/requirements.txt"; then
9393
SPKG_SOURCE=pip
9494
elif test ! -f "$DIR/checksums.ini"; then
95-
if test -f "$DIR/spkg-install"; then
95+
if test -f "$DIR/spkg-install" -o -f "$DIR/spkg-install.in"; then
9696
SPKG_SOURCE=script
9797
else
9898
# a dummy package

build/bin/sage-apply-patches

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# the root of the package source.
1111
#
1212
# An optional patch subdirectory may be specified with the -d flag.
13-
# For example `sage-apply-patches -d cygwin` applies only those
14-
# patches under <patch-dir>/cygwin.
13+
# For example `sage-apply-patches -d macos` applies only those
14+
# patches under <patch-dir>/macos.
1515
#
1616
# The -p<num> arg is the argument accepted by the `patch` command,
1717
# and overrides the default -p1

build/bin/sage-bootstrap-python

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SAGE_ORIG_PATH=${NEW_PATH%%':'}
3737

3838
# Trac #30177: Also check for hashlib.sha1 to guard against broken python2
3939
# from old homebrew installations. Also check whether the current directory
40-
# is accessible by this python; this is to guard on Cygwin against Pythons
40+
# is accessible by this python; this is to guard on WSL against Pythons
4141
# installed somewhere else in Windows.
4242

4343
# Trac #29285: Do not accept pythons that manipulate PATH, such as

build/bin/sage-dist-helpers

+2-9
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,9 @@ sdh_configure() {
170170
if [ -z "$CONFIG_SHELL" ]; then
171171
export CONFIG_SHELL=`command -v bash`
172172
fi
173-
if [ "$UNAME" = "CYGWIN" ]; then
174-
# TODO: To use --disable-static for all packages on Cygwin, need
175-
# #30814: Cygwin: Fix remaining packages to build shared libraries, using AM_LDFLAGS=-no-undefined
176-
DISABLE_STATIC=
177-
else
178-
DISABLE_STATIC=--disable-static
179-
fi
180-
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" $DISABLE_STATIC --disable-maintainer-mode --disable-dependency-tracking "$@"
173+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" --disable-static --disable-maintainer-mode --disable-dependency-tracking "$@"
181174
if [ $? -ne 0 ]; then # perhaps it is a non-autoconf'd project
182-
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" $DISABLE_STATIC "$@"
175+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" --disable-static "$@"
183176
if [ $? -ne 0 ]; then
184177
if [ -f "$(pwd)/config.log" ]; then
185178
sdh_die <<_EOF_

0 commit comments

Comments
 (0)