Skip to content

Commit

Permalink
Trac #30416: Make tox a standard package
Browse files Browse the repository at this point in the history
see #30410.

[[https://groups.google.com/d/msg/sage-
devel/G5kMggTecA8/ikT04wi8AQAJ|Discussion/vote at sage-devel]].

URL: https://trac.sagemath.org/30416
Reported by: mkoeppe
Ticket author(s): Matthias Koeppe
Reviewer(s): John Palmieri
  • Loading branch information
Release Manager committed Jun 20, 2021
2 parents 26a9d15 + 65e6330 commit f8e8755
Show file tree
Hide file tree
Showing 61 changed files with 270 additions and 13 deletions.
18 changes: 18 additions & 0 deletions build/pkgs/appdirs/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
appdirs: A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
==========================================================================================================

Description
-----------

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".

License
-------

MIT

Upstream Contact
----------------

https://pypi.org/project/appdirs/

5 changes: 5 additions & 0 deletions build/pkgs/appdirs/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=appdirs-VERSION.tar.gz
sha1=1fa04e44b1084338cb7b21e9cf44fce5efb81840
md5=d6bca12613174185dd9abc8a29f4f012
cksum=1191718163
upstream_url=https://pypi.io/packages/source/a/appdirs/appdirs-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/appdirs/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/appdirs/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
appdirs
1 change: 1 addition & 0 deletions build/pkgs/appdirs/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.4.4
7 changes: 7 additions & 0 deletions build/pkgs/appdirs/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SAGE_SPKG_CONFIGURE([appdirs], [
sage_spkg_install_appdirs=yes
], [dnl REQUIRED-CHECK
AC_REQUIRE([SAGE_SPKG_CONFIGURE_VIRTUALENV])
dnl only needed as a dependency of virtualenv.
AS_VAR_SET([SPKG_REQUIRE], [$sage_spkg_install_virtualenv])
])
2 changes: 2 additions & 0 deletions build/pkgs/appdirs/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/appdirs/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
18 changes: 18 additions & 0 deletions build/pkgs/distlib/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
distlib: Distribution utilities
===============================

Description
-----------

Distribution utilities

License
-------

Python license

Upstream Contact
----------------

https://pypi.org/project/distlib/

5 changes: 5 additions & 0 deletions build/pkgs/distlib/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=distlib-VERSION.zip
sha1=1c575431e31c32d25596c360e81bba7fe4638669
md5=4baf787d8aceb260d6f77cb31bf27cf6
cksum=2902365751
upstream_url=https://pypi.io/packages/source/d/distlib/distlib-VERSION.zip
4 changes: 4 additions & 0 deletions build/pkgs/distlib/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/distlib/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distlib
1 change: 1 addition & 0 deletions build/pkgs/distlib/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.1
7 changes: 7 additions & 0 deletions build/pkgs/distlib/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SAGE_SPKG_CONFIGURE([distlib], [
AC_REQUIRE([SAGE_SPKG_CONFIGURE_VIRTUALENV])
sage_spkg_install_distlib=yes
], [dnl REQUIRED-CHECK
dnl only needed as a dependency of virtualenv.
AS_VAR_SET([SPKG_REQUIRE], [$sage_spkg_install_virtualenv])
])
2 changes: 2 additions & 0 deletions build/pkgs/distlib/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/distlib/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
18 changes: 18 additions & 0 deletions build/pkgs/filelock/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
filelock: A platform independent file lock
==========================================

Description
-----------

A platform independent file lock.

License
-------

Public Domain <http://unlicense.org>

Upstream Contact
----------------

https://pypi.org/project/filelock/

5 changes: 5 additions & 0 deletions build/pkgs/filelock/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=filelock-VERSION.tar.gz
sha1=ca03bf213ee1d7a9b6353cebc265072aae40fdcb
md5=c1fe6d9a7433a7ca6ce4f36e273317d1
cksum=2927344437
upstream_url=https://pypi.io/packages/source/f/filelock/filelock-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/filelock/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/filelock/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
filelock
1 change: 1 addition & 0 deletions build/pkgs/filelock/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.12
9 changes: 9 additions & 0 deletions build/pkgs/filelock/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SAGE_SPKG_CONFIGURE([filelock], [
sage_spkg_install_filelock=yes
], [dnl REQUIRED-CHECK
AC_REQUIRE([SAGE_SPKG_CONFIGURE_VIRTUALENV])
AC_REQUIRE([SAGE_SPKG_CONFIGURE_TOX])
dnl only needed as a dependency of tox and virtualenv.
AS_IF([test $sage_spkg_install_virtualenv = no -a $sage_spkg_install_tox = no],
AS_VAR_SET([SPKG_REQUIRE], [no]))
])
2 changes: 2 additions & 0 deletions build/pkgs/filelock/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/filelock/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
18 changes: 18 additions & 0 deletions build/pkgs/importlib_resources/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
importlib_resources: Read resources from Python packages
========================================================

Description
-----------

Read resources from Python packages

License
-------

Apache2

Upstream Contact
----------------

https://pypi.org/project/importlib-resources/

5 changes: 5 additions & 0 deletions build/pkgs/importlib_resources/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=importlib_resources-VERSION.tar.gz
sha1=d4b853132e9b9a0c58610e23df380c84be428c08
md5=a4586b3cbb3d39c7a5e7ffc49d9ceb53
cksum=1484460315
upstream_url=https://pypi.io/packages/source/i/importlib_resources/importlib_resources-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/importlib_resources/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/importlib_resources/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
importlib-resources
1 change: 1 addition & 0 deletions build/pkgs/importlib_resources/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.1.4
2 changes: 2 additions & 0 deletions build/pkgs/importlib_resources/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/importlib_resources/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
18 changes: 18 additions & 0 deletions build/pkgs/pluggy/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pluggy: plugin and hook calling mechanisms for python
=====================================================

Description
-----------

plugin and hook calling mechanisms for python

License
-------

MIT license

Upstream Contact
----------------

https://pypi.org/project/pluggy/

5 changes: 5 additions & 0 deletions build/pkgs/pluggy/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=pluggy-VERSION.tar.gz
sha1=828b2c10996d902b8c47f2fded0e101c636b9ff9
md5=7f610e28b8b34487336b585a3dfb803d
cksum=3074963981
upstream_url=https://pypi.io/packages/source/p/pluggy/pluggy-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/pluggy/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/pluggy/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pluggy
1 change: 1 addition & 0 deletions build/pkgs/pluggy/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.13.1
2 changes: 2 additions & 0 deletions build/pkgs/pluggy/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/pluggy/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
18 changes: 18 additions & 0 deletions build/pkgs/py/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
py: library with cross-python path, ini-parsing, io, code, log facilities
=========================================================================

Description
-----------

library with cross-python path, ini-parsing, io, code, log facilities

License
-------

MIT license

Upstream Contact
----------------

https://pypi.org/project/py/

5 changes: 5 additions & 0 deletions build/pkgs/py/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=py-VERSION.tar.gz
sha1=690e4e3dcaeafe02ad4af36233148e7e10032d1a
md5=5f108bfe00d5468cbdb8071051f86a55
cksum=220330409
upstream_url=https://pypi.io/packages/source/p/py/py-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/py/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN) setuptools_scm

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/py/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
py
1 change: 1 addition & 0 deletions build/pkgs/py/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.10.0
2 changes: 2 additions & 0 deletions build/pkgs/py/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/py/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
13 changes: 5 additions & 8 deletions build/pkgs/tox/SPKG.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
tox: A command line driven CI frontend and development task automation tool
===========================================================================
tox: tox is a generic virtualenv management and test command line tool
======================================================================

Description
-----------

Command line driven CI frontend and development task automation tool.

The Sage library uses tox as an entry point for testing and linting. See ``src/tox.ini`` and ``sage --advanced``.

Sage-the-distribution uses tox for portability testing. See ``SAGE_ROOT/tox.ini``.
tox is a generic virtualenv management and test command line tool

License
-------

- MIT License
MIT

Upstream Contact
----------------

https://pypi.org/project/tox/

5 changes: 5 additions & 0 deletions build/pkgs/tox/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=tox-VERSION.tar.gz
sha1=e98277cf47d1e4ca9dbaeeaf7e0e301700c9694b
md5=9fe85f2cab666ad764f5a076c4544956
cksum=2996434561
upstream_url=https://pypi.io/packages/source/t/tox/tox-VERSION.tar.gz
2 changes: 1 addition & 1 deletion build/pkgs/tox/dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(PYTHON) packaging six | $(PYTHON_TOOLCHAIN)
$(PYTHON) packaging six filelock pluggy py toml virtualenv importlib_metadata | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
Expand Down
3 changes: 1 addition & 2 deletions build/pkgs/tox/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Matches version checked in spkg-configure.m4
tox >=2.5.0
tox
1 change: 1 addition & 0 deletions build/pkgs/tox/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.23.1
1 change: 0 additions & 1 deletion build/pkgs/tox/requirements.txt

This file was deleted.

2 changes: 2 additions & 0 deletions build/pkgs/tox/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
2 changes: 1 addition & 1 deletion build/pkgs/tox/type
Original file line number Diff line number Diff line change
@@ -1 +1 @@
optional
standard
18 changes: 18 additions & 0 deletions build/pkgs/virtualenv/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
virtualenv: Virtual Python Environment builder
==============================================

Description
-----------

Virtual Python Environment builder

License
-------

MIT

Upstream Contact
----------------

https://pypi.org/project/virtualenv/

5 changes: 5 additions & 0 deletions build/pkgs/virtualenv/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=virtualenv-VERSION.tar.gz
sha1=42c609ae86f5b6b3d491e4a865235e71ed35bfd3
md5=6693920d5de24bd3e6ec8a6749c22b0d
cksum=2813528266
upstream_url=https://pypi.io/packages/source/v/virtualenv/virtualenv-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/virtualenv/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) appdirs distlib filelock six importlib_metadata importlib_resources | $(PYTHON_TOOLCHAIN)

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/virtualenv/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
virtualenv
1 change: 1 addition & 0 deletions build/pkgs/virtualenv/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.4.7
7 changes: 7 additions & 0 deletions build/pkgs/virtualenv/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SAGE_SPKG_CONFIGURE([virtualenv], [
sage_spkg_install_virtualenv=yes
], [dnl REQUIRED-CHECK
AC_REQUIRE([SAGE_SPKG_CONFIGURE_TOX])
dnl virtualenv is only needed when we cannot use system tox.
AS_VAR_SET([SPKG_REQUIRE], [$sage_spkg_install_tox])
])
2 changes: 2 additions & 0 deletions build/pkgs/virtualenv/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/virtualenv/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard

0 comments on commit f8e8755

Please sign in to comment.