Skip to content

Commit

Permalink
Merge branch 'develop' into patch-8
Browse files Browse the repository at this point in the history
  • Loading branch information
user202729 authored Dec 8, 2024
2 parents 995a18e + 8a972c4 commit 31441ba
Show file tree
Hide file tree
Showing 55 changed files with 233 additions and 159 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
tox_packages_factors: >-
["standard"]
docker_push_repository: ghcr.io/${{ github.repository }}/
logs_artifact: false

# All platforms. This duplicates the default platform, but why not,
# it makes it more robust regarding random timeouts.
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ on:
description: 'Elapsed time (seconds) at which to kill the build'
default: 20000
type: number
logs_artifact:
default: true
type: boolean
#
# Publishing to GitHub Packages
#
Expand Down Expand Up @@ -260,11 +263,12 @@ jobs:
cp -r .tox/$TOX_ENV/* "artifacts/$LOGS_ARTIFACT_NAME"
rm -rf "artifacts/$LOGS_ARTIFACT_NAME"/{bin,lib,pyvenv.cfg}
if: always()
- uses: actions/upload-artifact@v4
- name: Upload logs artifact
uses: actions/upload-artifact@v4
with:
path: artifacts
name: ${{ env.LOGS_ARTIFACT_NAME }}
if: always()
if: always() && inputs.logs_artifact
- name: Print out logs for immediate inspection
# and markup the output with GitHub Actions logging commands
run: |
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: SageMath
abstract: SageMath is a free open-source mathematics software system.
authors:
- name: "The SageMath Developers"
version: 10.5.rc0
version: 10.5
doi: 10.5281/zenodo.8042260
date-released: 2024-11-16
date-released: 2024-12-04
repository-code: "https://github.com/sagemath/sage"
url: "https://www.sagemath.org/"
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SageMath version 10.5.rc0, Release Date: 2024-11-16
SageMath version 10.5, Release Date: 2024-12-04
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=87648980fa41bbd38f9bf45beb7bcdb90e12d613
sha256=cb5129b2e60af70968a6d8de8937b0f9365a2146762bf34a09b4ad7a88c56b8b
sha1=62eedaff4c03b55fdd6f8e1242026226adbf3a16
sha256=54036d6435218ce1daa7d5d512e1bfd74d3713ed5745d5c49ee1f5e6122a25de
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d9c38a7c581e6ed54fbe420122b8bba488b16074
f6ad0ecf1f4a269f5954d5487336b13f70624594
67 changes: 0 additions & 67 deletions build/pkgs/ecm/patches/assembler.patch

This file was deleted.

2 changes: 1 addition & 1 deletion build/pkgs/python3/dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zlib readline sqlite libpng bzip2 liblzma libffi openssl | xz
zlib readline sqlite libpng bzip2 liblzma libffi openssl | xz pkgconf

----------
All lines of this file are ignored except the first.
2 changes: 1 addition & 1 deletion build/pkgs/sage_conf/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sage-conf ~= 10.5rc0
sage-conf ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sage_docbuild/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sage-docbuild ~= 10.5rc0
sage-docbuild ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sage_setup/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sage-setup ~= 10.5rc0
sage-setup ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sage_sws2rst/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sage-sws2rst ~= 10.5rc0
sage-sws2rst ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagelib/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-standard ~= 10.5rc0
sagemath-standard ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_bliss/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-bliss ~= 10.5rc0
sagemath-bliss ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_categories/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-categories ~= 10.5rc0
sagemath-categories ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_coxeter3/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-coxeter3 ~= 10.5rc0
sagemath-coxeter3 ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_environment/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-environment ~= 10.5rc0
sagemath-environment ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_mcqd/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-mcqd ~= 10.5rc0
sagemath-mcqd ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_meataxe/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-meataxe ~= 10.5rc0
sagemath-meataxe ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_objects/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-objects ~= 10.5rc0
sagemath-objects ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_repl/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-repl ~= 10.5rc0
sagemath-repl ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_sirocco/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-sirocco ~= 10.5rc0
sagemath-sirocco ~= 10.5
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_tdlib/version_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is updated on every release by the sage-update-version script
sagemath-tdlib ~= 10.5rc0
sagemath-tdlib ~= 10.5
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ dnl Exit autoconf with exit code 16 in this case. This will be
dnl caught by the bootstrap script.
m4_exit(16)])

PKG_PROG_PKG_CONFIG([0.29], [PKG_CONFIG=false])
PKG_PROG_PKG_CONFIG([0.29], [PKG_CONFIG=])

AC_CHECK_PROG(found_ranlib, ranlib, yes, no)
if test x$found_ranlib != xyes
Expand Down
2 changes: 1 addition & 1 deletion pkgs/sage-conf/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sage-conf_conda/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sage-conf_pypi/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sage-docbuild/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sage-setup/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sage-sws2rst/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-bliss/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-categories/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-coxeter3/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-environment/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-mcqd/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-meataxe/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-objects/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-repl/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-sirocco/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion pkgs/sagemath-tdlib/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
2 changes: 1 addition & 1 deletion src/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.5.rc0
10.5
6 changes: 3 additions & 3 deletions src/bin/sage-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# which stops "setup.py develop" from rewriting it as a Python file.
:
# This file is auto-generated by the sage-update-version script, do not edit!
SAGE_VERSION='10.5.rc0'
SAGE_RELEASE_DATE='2024-11-16'
SAGE_VERSION_BANNER='SageMath version 10.5.rc0, Release Date: 2024-11-16'
SAGE_VERSION='10.5'
SAGE_RELEASE_DATE='2024-12-04'
SAGE_VERSION_BANNER='SageMath version 10.5, Release Date: 2024-12-04'
34 changes: 27 additions & 7 deletions src/doc/en/developer/coding_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
General Conventions
===================


There are many ways to contribute to Sage, including sharing scripts
and Jupyter notebooks that implement new functionality using Sage,
improving to the Sage library, or to working on the many underlying
Expand Down Expand Up @@ -1256,17 +1255,38 @@ framework. Here is a comprehensive list:
Neither of this applies to files or directories which are explicitly given
as command line arguments: those are always tested.

- **optional/needs:** A line tagged with ``optional - FEATURE``
or ``needs FEATURE`` is not tested unless the ``--optional=KEYWORD`` flag
is passed to ``sage -t`` (see
:ref:`section-optional-doctest-flag`). The main applications are:
- **optional** or **needs:** A line tagged with ``optional - FEATURE`` or
``needs FEATURE`` is tested if the feature is available in Sage. If
``FEATURE`` starts with an exclamation point ``!``, then the condition is
negated, that is, the doctest runs only if the feature is not available.

If the feature is included in the ``--optional=KEYWORD`` flag passed to
``sage -t`` (see :ref:`section-optional-doctest-flag`), then the line is
tested regardless of the feature availability.

The main applications are:

- **optional packages:** When a line requires an optional package to be
installed (e.g. the ``sloane_database`` package)::
installed (e.g. the ``rubiks`` package)::

sage: C = RubiksCube("R*L")
sage: C.solve() # optional - rubiks (a hybrid algorithm is used)
'L R'
sage: C.solve() # optional - !rubiks (GAP is used)
'L*R'

- **features:** When a line requires a feature to be present::

sage: SloaneEncyclopedia[60843] # optional - sloane_database
[1, 6, 21, 107, 47176870]

sage: SloaneEncyclopedia[60843] # optional - !sloane_database
Traceback (most recent call last):
...
OSError: The Sloane Encyclopedia database must be installed. Use e.g.
'SloaneEncyclopedia.install()' to download and install it.

- **internet:** For lines that require an internet connection::
For lines that require an internet connection::

sage: oeis(60843) # optional - internet
A060843: Busy Beaver problem: a(n) = maximal number of steps that an
Expand Down
1 change: 1 addition & 0 deletions src/doc/en/website/versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# The sage-update-version script adds a new line for a new stable release
# when run by the Sage release manager to prepare a new release
#
10.5 doc-10-5--sagemath.netlify.app
10.4 doc-10-4--sagemath.netlify.app
10.3 doc-10-3--sagemath.netlify.app
10.2 doc-10-2--sagemath.netlify.app
Expand Down
6 changes: 1 addition & 5 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ endif
# that too to make the fallback detection with CMake work
blas_order += ['cblas', 'openblas', 'OpenBLAS', 'flexiblas', 'blis', 'blas']
blas = dependency(blas_order)
gsl = dependency(
'gsl',
version: '>=2.5',
required: true,
)
gsl = dependency('gsl', version: '>=2.5', required: true)
gd = cc.find_library('gd')
# Only some platforms have a standalone math library (https://mesonbuild.com/howtox.html#add-math-library-lm-portably)
m = cc.find_library('m', required: false)
Expand Down
22 changes: 18 additions & 4 deletions src/sage/databases/sloane.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
::
sage: SloaneEncyclopedia[60843] # optional - sloane_database
[1, 6, 21, 107]
[1, 6, 21, 107, 47176870]
To get the name of a sequence, type
Expand Down Expand Up @@ -149,6 +149,17 @@ def __len__(self):
self.load()
return len(self.__data__)

def is_installed(self):
"""
Check if a local copy of the encyclopedia is installed.
EXAMPLES::
sage: SloaneEncyclopedia.is_installed() # optional - sloane_database
True
"""
return os.path.exists(self.__file__) and os.path.exists(self.__file_names__)

def find(self, seq, maxresults=30):
"""
Return a list of all sequences which have seq as a subsequence, up
Expand Down Expand Up @@ -274,7 +285,7 @@ def load(self):
for L in file_seq:
if len(L) == 0:
continue
m = entry.search(L)
m = entry.search(L.decode('utf-8'))
if m:
seqnum = int(m.group('num'))
msg = m.group('body').strip()
Expand All @@ -287,10 +298,13 @@ def load(self):
for L in file_names:
if not L:
continue
m = entry.search(L)
m = entry.search(L.decode('utf-8'))
if m:
seqnum = int(m.group('num'))
self.__data__[seqnum][3] = m.group('body').strip()
if seqnum in self.__data__:
self.__data__[seqnum][3] = m.group('body').strip()
else:
self.__data__[seqnum] = [seqnum, None, 'unknown', m.group('body').strip()]
file_names.close()
self.__loaded_names__ = True
except KeyError:
Expand Down
Loading

0 comments on commit 31441ba

Please sign in to comment.