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

Commit 27b589b

Browse files
author
Matthias Koeppe
committed
Merge branch 't/30912/sagelib__update_metadata_for_pypi_deployment' into t/31362/make_all_sage_local__make_all_sage_venv
2 parents d7dc9a2 + 7ad4c0e commit 27b589b

File tree

10 files changed

+486
-20
lines changed

10 files changed

+486
-20
lines changed

build/pkgs/sagelib/src/LICENSE.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../src/LICENSE.txt

build/pkgs/sagelib/src/README.rst

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
=================================================================
2+
Sage: Open Source Mathematics Software: Standard Python Library
3+
=================================================================
4+
5+
About SageMath
6+
--------------
7+
8+
"Creating a Viable Open Source Alternative to
9+
Magma, Maple, Mathematica, and MATLAB"
10+
11+
Copyright (C) 2005-2020 The Sage Development Team
12+
13+
https://www.sagemath.org
14+
15+
SageMath fully supports all major Linux distributions, recent versions of macOS, and Windows (using Cygwin or Windows Subsystem for Linux).
16+
17+
The traditional and recommended way to install SageMath is from source via Sage-the-distribution (https://www.sagemath.org/download-source.html). Sage-the-distribution first builds a large number of open source packages from source (unless it finds suitable versions installed in the system) and then installs the Sage Library (sagelib, implemented in Python and Cython).
18+
19+
20+
About this experimental pip-installable source distribution
21+
-----------------------------------------------------------
22+
23+
This pip-installable source distribution `sagemath-standard` is an experimental distribution of the Sage Library. Use at your own risk.
24+
25+
Building `sagemath-standard` has a large number of system packages as prerequisites. See https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation
26+
for partial lists for various systems.
27+
28+
A modularization effort is in progress with the goal of making it possible to install parts of the Sage Library with fewer prerequisites. https://trac.sagemath.org/ticket/29705

build/pkgs/sagelib/src/VERSION.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../package-version.txt

build/pkgs/sagelib/src/setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../src/setup.cfg

build/pkgs/sagelib/src/setup.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import time
88
from distutils import log
9-
from distutils.core import setup
9+
from setuptools import setup
1010

1111
# Work around a Cython problem in Python 3.8.x on macOS
1212
# https://github.com/cython/cython/issues/3262
@@ -87,14 +87,8 @@
8787
### Distutils
8888
#########################################################
8989

90-
code = setup(name = 'sage',
91-
version = SAGE_VERSION,
92-
description = 'Sage: Open Source Mathematics Software',
93-
license = 'GNU Public License (GPL)',
94-
author = 'William Stein et al.',
95-
author_email= 'https://groups.google.com/group/sage-support',
96-
url = 'https://www.sagemath.org',
97-
packages = python_packages,
90+
code = setup(
91+
packages = python_packages,
9892
package_data = {
9993
'sage.libs.gap': ['sage.gaprc'],
10094
'sage.interfaces': ['sage-maxima.lisp'],

src/LICENSE.txt

+420
Large diffs are not rendered by default.

src/README.txt src/README.rst

File renamed without changes.

src/VERSION.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../VERSION.txt

src/setup.cfg

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[metadata]
2+
name = sagemath-standard
3+
version = file: VERSION.txt
4+
description = Sage: Open Source Mathematics Software: Standard Python Library
5+
long_description = file: README.rst
6+
long_description_content_type = text/x-rst
7+
license = GNU General Public License (GPL) v2 or later
8+
license_file = LICENSE.txt
9+
author = The Sage Developers
10+
author_email = [email protected]
11+
url = https://www.sagemath.org
12+
13+
classifiers =
14+
Development Status :: 6 - Mature
15+
Intended Audience :: Education
16+
Intended Audience :: Science/Research
17+
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
18+
Operating System :: POSIX
19+
Operating System :: MacOS :: MacOS X
20+
Programming Language :: Python :: 3 :: Only
21+
Programming Language :: Python :: 3.6
22+
Programming Language :: Python :: 3.7
23+
Programming Language :: Python :: 3.8
24+
Programming Language :: Python :: 3.9
25+
Programming Language :: Python :: Implementation :: CPython
26+
Topic :: Scientific/Engineering :: Mathematics

src/setup.py

+5-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import time
88
from distutils import log
9-
from distutils.core import setup
9+
from setuptools import setup
1010

1111
# Work around a Cython problem in Python 3.8.x on macOS
1212
# https://github.com/cython/cython/issues/3262
@@ -79,20 +79,14 @@
7979
print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t))
8080

8181

82-
from sage_setup.command.sage_install import sage_install
82+
from sage_setup.command.sage_install import sage_install_and_clean
8383

8484
#########################################################
8585
### Distutils
8686
#########################################################
8787

88-
code = setup(name = 'sage',
89-
version = SAGE_VERSION,
90-
description = 'Sage: Open Source Mathematics Software',
91-
license = 'GNU Public License (GPL)',
92-
author = 'William Stein et al.',
93-
author_email= 'https://groups.google.com/group/sage-support',
94-
url = 'https://www.sagemath.org',
95-
packages = python_packages,
88+
code = setup(
89+
packages = python_packages,
9690
package_data = {
9791
'sage.libs.gap': ['sage.gaprc'],
9892
'sage.interfaces': ['sage-maxima.lisp'],
@@ -175,5 +169,5 @@
175169
cmdclass = dict(build=sage_build,
176170
build_cython=sage_build_cython,
177171
build_ext=sage_build_ext,
178-
install=sage_install),
172+
install=sage_install_and_clean),
179173
ext_modules = cython_modules)

0 commit comments

Comments
 (0)