GitXplorerGitXplorer
v

pythonci

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
4f9928557e7a62d647a2ad4cc00f2f0833ccc88f

Update Cython

vvstinner committed 7 months ago
Unverified
a7fac39fa930f2159af9a7060470b38c969929f3

Remove useless patch_pip() method

vvstinner committed a year ago
Unverified
22ff20725225bcd2a68028ab4fdca5ba2ada8cbc

update doc

vvstinner committed a year ago
Unverified
a905d3f12f7ca4b1717ce9a5d3aef0a0a490903f

Update all dependencies

vvstinner committed a year ago
Unverified
afe794953c6fa96594eb02e7939fda74add52b03

Upgrade Cython and lxml

vvstinner committed 3 years ago
Unverified
ff5753c146864efa0fd0325e04dec9b6fc0cf3e6

Update

vvstinner committed 4 years ago

README

The README file for this repository.

+++++++++ Python CI +++++++++

pythonci

Build a CI to test popular PyPI projects on the master branch of Python.

Available tasks:

  • coverage
  • cython
  • jinja
  • lxml
  • numpy

This project is a proof-of-concept.

There are different goals:

  • Test if incompatible changes are going to break projects
  • Run tests with warnings treated as errors, especially DeprecationWarning.

Python 2 is not supported: pythonci requires Python 3.6 or newer.

The tested Python is the Python used to run the command.

Test numpy (stable releases)::

python3 -m pythonci test numpy

Test development versions::

python3 -m pythonci test numpy --dev

Cleanup::

python3 -m pythonci clean numpy

Cleanup all::

python3 -m pythonci cleanall numpy

Contact: Victor Stinner (Red Hat), vstinner@python.org

Goals

  • Report issues to core developers who authored changes which broken projects.
  • Report issues to broken projects to help them to be prepared for the next Python.
  • Increase the number of compatible projects when a new Python version is released.
  • Estimate how many projects are broken by a change, before pushing the change.
  • Reduce the workload of Fedora which currently is one of the first to detect incompatible changes and broken packages.

Use Cases

Check if a future Python change breaks third-party projects

Examples:

  • PEP 620 incompatible C API changes.
  • Remove "U" mode of the open() function: deprecated function.

Detect projects broken by Python incompatible changes

Some Python changes are not seen by their authors as incompatible changes, but sometimes there are 5 or more projects broken by such change. If the authors of such change would be notified earlier of broken packages, they can enhance the documentation explaining how to port the code, they can help to fix these broken packages, and they can consider to revert the change and only reapply it once enough projects are fixed.

Check for DeprecationWarning

Run the test suite using: python3 -Werror.

Test in development mode

Run the test suite using: python3 -X dev.

TODO

Projects which should be tested:

  • cffi
  • django
  • docutils
  • markupsafe (for Jupyter)
  • pandas
  • pillow
  • pip
  • psycopg2
  • pyzmq (for Jupyter) (use Cython)
  • scipy
  • setuptools
  • sphinx

Bugs:

Tasks:

  • jinja: run tests with -Werror?
  • coverage runs tests using tox, but tox uses Python 3.7 rather than the Python program used to run pythonci.
  • Compile and install master branch of Python
  • What are build dependencies? python3, gcc, etc.?
  • Make builds more reproducible: https://reproducible-builds.org/

Fedora COPR

In Fedora, "COPR" are created: rebuild some Fedora package with a newer Python.

  • Based on Fedora Rawhide
  • Need to identify the bootstrap sequence: dnf, compose tool, bodhi
  • Test 10 popular Python projects: cython, scipy, django, ...
  • Need to change COPR to avoid updates unrelated to Python: kernel, GCC, glibc

Update the python package every N weeks.

Status

2019-10-28

  • jinja: PASS
  • coverage: FAIL
  • numpy: FAIL

coverage job fails with pip 19.1.1 which is not compatible with Python 3.9:

  File "work/cpython-3.9.0a0_coverage-4.5.4/venv/lib/python3.9/site-packages/virtualenv_support/pip-19.1.1-py2.py3-none-any.whl/pip/_vendor/html5lib/_trie/_base.py", line 3, in <module>
ImportError: cannot import name 'Mapping' from 'collections' (/home/vstinner/myprojects/pythonci/work/cpython-3.9.0a0_coverage-4.5.4/coverage-4.5.4/.tox/py37/lib/python3.9/collections/__init__.py)

Cython 0.29.13 is broken by Python 3.9, use collections.Iterable

Existing CIs

See also: https://pythondev.readthedocs.io/test_next_python.html