graphlib backport
Backport of the Python 3.9 graphlib module for older Python versions.
Github: https://github.com/mariushelf/graphlib_backport
Supported versions
This backport currently supports Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3 (tested with pypy3.6, 3.7, 3.8 and 3.9).
Support for Python 3.6 and 3.7 is somewhat experimental and due to be dropped because of the end of support for these old versions.
Installation
pip install graphlib_backport
It is recommended to limit installation of this package to version of Python <3.9 and use the original implementation for Python >=3.9.
For example in a poetry pyproject.toml this can be done
by specifying the dependency as a
Python restricted dependency:
[tool.poetry.dependencies]
graphlib_backport = {version="^1.0.0", python="<3.9"}
Usage
The package works the very same way as the original package. Here's the documentation.
Development
The sourcecode is hosted on github. To develop on this package, just clone it, work on it and submit a pull request.
Dev requirements
For testing against different Python versions, tox is required.
To download the latest original sourcecode into the repository, there is a make target:
make download_sourcecode
Warning: This overwrites the code in this repo. By default it uses the tag v3.9.0,
but you can overwrite that with a tag environment variable.
Running tests
As simple as running tox on the command line.
The executables for all python versions must be in the path, e.g,
python3.6, ..., python3.9, pypy3.
You can install them with pyenv.
Publishing a new version
Create a new tag and create a new release on Github. This will automatically publish the package to PyPI.
Changelog
See CHANGELOG.md
Thanks
I did not create this code -- I only repackaged it so it can be pip-installed into older versions of Python.
So all thanks go to the original contributors of the original sourcecode.
License
Copyright © 2001-2023 Python Software Foundation; All Rights Reserved
Changes to the sourcecode and the tests: replace incompatible code
(e.g., the := walrus operator) with constructions compatible to
earlier versions of Python, and make the tests pass on all supported
versions.
Metadata
Release files for graphlib-backport 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graphlib_backport-1.1.0.tar.gz | 6.6 kB | Without provenance | Details for graphlib_backport-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphlib_backport-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for graphlib_backport-1.1.0-py3-none-any.whl |
Total release size: 13.7 kB
Release files / graphlib_backport-1.1.0.tar.gz
| Download URL | graphlib_backport-1.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00a7888b21e5393064a133209cb5d3b3ef0a2096cf023914c9d778dff5644125
|
|
BLAKE2b-256 checksum How to use checksums |
0d3b0c16eddec0b574a58ca7fc5c706737c6c19036a7fdbc7217f5546b47a5d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / graphlib_backport-1.1.0-py3-none-any.whl
| Download URL | graphlib_backport-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eccacf9f2126cdf89ce32a6018c88e1ecd3e4898a07568add6e1907a439055ba
|
|
BLAKE2b-256 checksum How to use checksums |
299c96b321bf89aac1601ffc9cd30c434830d3af659c0fde9f1cec9c2e62e02f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for graphlib-backport 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.