diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:36:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:36:24 +0000 |
commit | dac44c20d27e320d29f7d70b57fd448d6bcbd4c8 (patch) | |
tree | a3c45e920294331cca157a7b11f182cdecf3965d | |
parent | f5e03e1e2493354acce92b0fdc2048505fa16ef1 (diff) |
automatic import of python-graphlib-backport
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-graphlib-backport.spec | 294 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 296 insertions, 0 deletions
@@ -0,0 +1 @@ +/graphlib_backport-1.0.3.tar.gz diff --git a/python-graphlib-backport.spec b/python-graphlib-backport.spec new file mode 100644 index 0000000..5c922d4 --- /dev/null +++ b/python-graphlib-backport.spec @@ -0,0 +1,294 @@ +%global _empty_manifest_terminate_build 0 +Name: python-graphlib-backport +Version: 1.0.3 +Release: 1 +Summary: Backport of the Python 3.9 graphlib module for Python 3.6+ +License: PSF +URL: https://pypi.org/project/graphlib-backport/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4a/75/9bf2356176a3f57037d70710b1d9148e51aad9ff3e5e97eafb338893d985/graphlib_backport-1.0.3.tar.gz +BuildArch: noarch + + +%description +# graphlib backport + +Backport of the Python 3.9 +[graphlib](https://docs.python.org/3/library/graphlib.html) +module for older Python versions. + +Github: +[https://github.com/mariushelf/graphlib_backport](https://github.com/mariushelf/graphlib_backport) + +# Supported versions + +This backport currently support Python 3.6, 3.7, 3.8, 3.9 and and pypy3 +(tested with pypy3.6). + + +# Installation + +`pip install graphlib_backport` + +# Usage + +The package works the very same way as the original package. +[Here's](https://docs.python.org/3/library/graphlib.html) the documentation. + + +# Development + +The sourcecode is hosted on +[github](https://github.com/mariushelf/graphlib_backports). +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](https://tox.readthedocs.io/en/latest/) +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](https://github.com/pyenv/pyenv). + + +## Publishing a new version + +Update the version in the pyproject.toml and run `make publish` to build and upload +the package ti PyPI. + + +# 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](https://github.com/python/cpython/blob/3.9/Lib/graphlib.py). + + +# License + +[PSF](https://docs.python.org/3/license.html#psf-license) + + + + +%package -n python3-graphlib-backport +Summary: Backport of the Python 3.9 graphlib module for Python 3.6+ +Provides: python-graphlib-backport +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-graphlib-backport +# graphlib backport + +Backport of the Python 3.9 +[graphlib](https://docs.python.org/3/library/graphlib.html) +module for older Python versions. + +Github: +[https://github.com/mariushelf/graphlib_backport](https://github.com/mariushelf/graphlib_backport) + +# Supported versions + +This backport currently support Python 3.6, 3.7, 3.8, 3.9 and and pypy3 +(tested with pypy3.6). + + +# Installation + +`pip install graphlib_backport` + +# Usage + +The package works the very same way as the original package. +[Here's](https://docs.python.org/3/library/graphlib.html) the documentation. + + +# Development + +The sourcecode is hosted on +[github](https://github.com/mariushelf/graphlib_backports). +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](https://tox.readthedocs.io/en/latest/) +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](https://github.com/pyenv/pyenv). + + +## Publishing a new version + +Update the version in the pyproject.toml and run `make publish` to build and upload +the package ti PyPI. + + +# 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](https://github.com/python/cpython/blob/3.9/Lib/graphlib.py). + + +# License + +[PSF](https://docs.python.org/3/license.html#psf-license) + + + + +%package help +Summary: Development documents and examples for graphlib-backport +Provides: python3-graphlib-backport-doc +%description help +# graphlib backport + +Backport of the Python 3.9 +[graphlib](https://docs.python.org/3/library/graphlib.html) +module for older Python versions. + +Github: +[https://github.com/mariushelf/graphlib_backport](https://github.com/mariushelf/graphlib_backport) + +# Supported versions + +This backport currently support Python 3.6, 3.7, 3.8, 3.9 and and pypy3 +(tested with pypy3.6). + + +# Installation + +`pip install graphlib_backport` + +# Usage + +The package works the very same way as the original package. +[Here's](https://docs.python.org/3/library/graphlib.html) the documentation. + + +# Development + +The sourcecode is hosted on +[github](https://github.com/mariushelf/graphlib_backports). +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](https://tox.readthedocs.io/en/latest/) +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](https://github.com/pyenv/pyenv). + + +## Publishing a new version + +Update the version in the pyproject.toml and run `make publish` to build and upload +the package ti PyPI. + + +# 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](https://github.com/python/cpython/blob/3.9/Lib/graphlib.py). + + +# License + +[PSF](https://docs.python.org/3/license.html#psf-license) + + + + +%prep +%autosetup -n graphlib-backport-1.0.3 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-graphlib-backport -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +41cb24befd343505ba36616f2a84a487 graphlib_backport-1.0.3.tar.gz |