commit 34e8dde4c79137ec17666793162ea6ac0e64657f Author: CentOS Sources Date: Tue May 18 03:22:56 2021 -0400 import python-py-1.10.0-1.module+el8.4.0+9822+20bf1249 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dda46e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/py-1.10.0.tar.gz diff --git a/.python-py.metadata b/.python-py.metadata new file mode 100644 index 0000000..14d9d97 --- /dev/null +++ b/.python-py.metadata @@ -0,0 +1 @@ +690e4e3dcaeafe02ad4af36233148e7e10032d1a SOURCES/py-1.10.0.tar.gz diff --git a/SPECS/python-py.spec b/SPECS/python-py.spec new file mode 100644 index 0000000..851b4e7 --- /dev/null +++ b/SPECS/python-py.spec @@ -0,0 +1,544 @@ +# RHEL: docs disabled because they need python3-sphinx, which needs +# python3-packaging, which is shahowed by python39-packaging during the build +# of the python39 module +%bcond_with docs +# the testsuite is currently not compatible with pytest 3, see +# https://github.com/pytest-dev/py/issues/104 +# RHEL: Tests disabled due to incompatible version of pytest +%bcond_with tests + +%global pytest_version_lb 2.9.0 +%global pytest_version_ub 2.10 + +%global srcname py + +Name: python-%{srcname} +Version: 1.10.0 +Release: 1%{?dist} +Summary: Library with cross-python path, ini-parsing, io, code, log facilities +License: MIT and Public Domain +# main package: MIT, except: doc/style.css: Public Domain +URL: http://py.readthedocs.io/ +Source: %{pypi_source} +BuildArch: noarch +# Exclude i686 arch. Due to a modularity issue it's being added to the +# x86_64 compose of CRB, but we don't want to ship it at all. +# See: https://projects.engineering.redhat.com/browse/RCM-72605 +ExcludeArch: i686 + +%if %{with tests} +# needed by the testsuite +BuildRequires: subversion +%endif # with tests + +%description +The py lib is a Python development support library featuring the +following tools and modules: + + * py.path: uniform local and svn path objects + * py.apipkg: explicit API control and lazy-importing + * py.iniconfig: easy parsing of .ini files + * py.code: dynamic code generation and introspection + * py.path: uniform local and svn path objects + + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: Library with cross-python path, ini-parsing, io, code, log facilities +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +%if %{with docs} +BuildRequires: %{_bindir}/sphinx-build +%endif # with_docs +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest >= %{pytest_version_lb} +BuildRequires: python%{python3_pkgversion}-pytest < %{pytest_version_ub} +%endif # with tests +Requires: python%{python3_pkgversion}-setuptools +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +Provides: bundled(python%{python3_pkgversion}-apipkg) = 1.5 +Provides: bundled(python%{python3_pkgversion}-iniconfig) = 1.1.1 + +%description -n python%{python3_pkgversion}-%{srcname} +The py lib is a Python development support library featuring the +following tools and modules: + + * py.path: uniform local and svn path objects + * py.apipkg: explicit API control and lazy-importing + * py.iniconfig: easy parsing of .ini files + * py.code: dynamic code generation and introspection + * py.path: uniform local and svn path objects + + +%prep +%autosetup -n %{srcname}-%{version} + +# remove shebangs and fix permissions +find . \ + -type f -a \( -name '*.py' -o -name 'py.*' \) \ + -exec sed -i '1{/^#!/d}' {} \; \ + -exec chmod u=rw,go=r {} \; + +# Remove dependency of setuptools_scm +sed -i "/ *use_scm_version=.*,/d" setup.py +sed -i "s/ *setup_requires=.*/version='%{version}',/" setup.py + +%build +%py3_build +%if %{with docs} +make -C doc html PYTHONPATH=$(pwd) +rm -rf doc/_build/html/.buildinfo +%endif # with docs + + +%install +%py3_install + +# Remove bundled dist/egg-info directories, they shouldn't be shipped for +# bundled modules and due to a bug they could confuse automatic generators +# that read the dist/egg-info data. +# See BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1916172 +rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info + + +%check +%if %{with tests} +# disable failing Subversion checks for now +PYTHONPATH=%{buildroot}%{python3_sitelib} \ +py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing +%endif # with tests + + +%files -n python%{python3_pkgversion}-%{srcname} +%doc CHANGELOG.rst +%doc README.rst +%license LICENSE +%if %{with docs} +%doc doc/_build/html +%endif # with_docs +%{python3_sitelib}/py-*.egg-info/ +%{python3_sitelib}/py/ + + +%changelog +* Thu Jan 28 2021 Tomas Orsava - 1.10.0-1 +- Update to 1.10.0. +- Resolves: rhbz#1877430 + +* Tue Jan 12 2021 Tomas Orsava - 1.9.0-3 +- Convert from Fedora to the python39 module in RHEL8 +- Resolves: rhbz#1877430 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 28 2020 Thomas Moschny - 1.9.0-1 +- Update to 1.9.0. + +* Sat Jun 20 2020 Thomas Moschny - 1.8.2-1 +- Update to 1.8.2. + +* Sat May 23 2020 Miro Hrončok - 1.8.0-10 +- Rebuilt for Python 3.9 + +* Fri May 22 2020 Miro Hrončok - 1.8.0-9 +- Bootstrap for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.8.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Nov 23 2019 Miro Hrončok - 1.8.0-7 +- Subpackage python2-py has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Oct 03 2019 Miro Hrončok - 1.8.0-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 1.8.0-5 +- Rebuilt for Python 3.8 + +* Wed Aug 14 2019 Miro Hrončok - 1.8.0-4 +- Bootstrap for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Apr 15 2019 Thomas Moschny - 1.8.0-1 +- Update to 1.8.0. +- Update spec file. + +* Sat Feb 02 2019 Fedora Release Engineering - 1.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.7.0-2 +- Drop explicit locale setting for python3, use C.UTF-8 for python2 + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sun Nov 11 2018 Thomas Moschny - 1.7.0-1 +- Update to 1.7.0. + +* Sat Jul 14 2018 Fedora Release Engineering - 1.5.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jul 02 2018 Miro Hrončok - 1.5.4-2 +- Rebuilt for Python 3.7 + +* Thu Jun 28 2018 Thomas Moschny - 1.5.4-1 +- Update to 1.5.4. +- Add BR on setuptools_scm. + +* Sat Jun 16 2018 Miro Hrončok - 1.5.3-3 +- Rebuilt for Python 3.7 + +* Wed Jun 13 2018 Miro Hrončok - 1.5.3-2 +- Bootstrap for Python 3.7 + +* Thu Mar 22 2018 Thomas Moschny - 1.5.3-1 +- Update to 1.5.3. + +* Mon Feb 12 2018 Iryna Shcherbina - 1.5.2-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 1.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Nov 16 2017 Thomas Moschny - 1.5.2-1 +- Update to 1.5.2. + +* Wed Nov 15 2017 Thomas Moschny - 1.5.1-1 +- Update to 1.5.1. +- Update list of vendored packages. +- Fix HTML doc path. + +* Wed Nov 15 2017 Thomas Moschny - 1.4.34-8 +- Restore earlier structure of the spec file, also fixing previously + introduced problems. + +* Tue Nov 07 2017 Igor Gnatenko - 1.4.34-7 +- Use better Obsoletes for platform-python + +* Fri Nov 03 2017 Igor Gnatenko - 1.4.34-6 +- Remove platform-python subpackage + +* Tue Sep 05 2017 Troy Dawson - 1.4.34-5 +- Cleanup spec file conditionals + +* Fri Aug 11 2017 Tomas Orsava - 1.4.34-4 +- Switch with_docs and run_test macros to bcond_without docs, tests + +* Thu Aug 10 2017 Tomas Orsava - 1.4.34-3 +- Added the platform-python subpackage + +* Thu Jul 27 2017 Fedora Release Engineering - 1.4.34-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 5 2017 Thomas Moschny - 1.4.34-1 +- Update to 1.4.34. + +* Sun Mar 19 2017 Thomas Moschny - 1.4.33-1 +- Update to 1.4.33. + +* Sat Feb 11 2017 Fedora Release Engineering - 1.4.32-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Dec 30 2016 Thomas Moschny - 1.4.32-2 +- Enable tests for Fedora<26. + +* Thu Dec 29 2016 Thomas Moschny - 1.4.32-1 +- Update to 1.4.32. + +* Fri Dec 09 2016 Charalampos Stratakis - 1.4.31-5 +- Rebuild for Python 3.6 +- Disable tests + +* Tue Jul 19 2016 Fedora Release Engineering - 1.4.31-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.4.31-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Jan 23 2016 Thomas Moschny - 1.4.31-2 +- Re-enable checks and docs. + +* Sat Jan 23 2016 Thomas Moschny - 1.4.31-1 +- Update to 1.4.31. +- Follow updated Python packaging guidelines. +- Add Provides tag for bundled apipkg. + +* Wed Oct 14 2015 Robert Kuska - 1.4.30-3 +- Rebuilt for Python3.5 rebuild +- With check and docs + +* Wed Sep 23 2015 Robert Kuska - 1.4.30-2 +- Rebuilt for Python3.5 rebuild without check and docs + +* Mon Jul 27 2015 Thomas Moschny - 1.4.30-1 +- Update to 1.4.30. + +* Thu Jun 25 2015 Thomas Moschny - 1.4.29-1 +- Update to 1.4.29. + +* Thu Jun 18 2015 Fedora Release Engineering - 1.4.28-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri May 29 2015 Thomas Moschny - 1.4.28-1 +- Update to 1.4.28. +- Modernize spec file. +- Apply updates Python packaging guidelines. +- Mark LICENSE with %%license. + +* Sat Dec 6 2014 Thomas Moschny - 1.4.26-2 +- Re-enable doc building and testsuite. + +* Tue Dec 2 2014 Thomas Moschny - 1.4.26-1 +- Update to 1.4.26. + +* Sat Oct 11 2014 Thomas Moschny - 1.4.25-2 +- Re-enable doc building and testsuite. + +* Sat Oct 11 2014 Thomas Moschny - 1.4.25-1 +- Update to 1.4.25. + +* Wed Aug 6 2014 Thomas Moschny - 1.4.23-1 +- Update to 1.4.23. + +* Fri Aug 1 2014 Thomas Moschny - 1.4.22-2 +- Re-enable doc building and testsuite. + +* Fri Aug 1 2014 Thomas Moschny - 1.4.22-1 +- Update to 1.4.22. + +* Fri Jul 18 2014 Thomas Moschny - 1.4.21-1 +- Update to 1.4.21. + +* Sat Jun 07 2014 Fedora Release Engineering - 1.4.20-3.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri May 09 2014 Dennis Gilmore - 1.4.20-2.1 +- rebuild for python 3.4 disable tests for circular deps + +* Fri Apr 18 2014 Thomas Moschny - 1.4.20-2 +- Re-enable doc building and testsuite. + +* Fri Apr 18 2014 Thomas Moschny - 1.4.20-1 +- Update to 1.4.20. + +* Sun Nov 10 2013 Thomas Moschny - 1.4.18-1 +- Update to 1.4.18. + +* Mon Oct 7 2013 Thomas Moschny - 1.4.17-2 +- Only run tests from the 'testing' subdir in %%check. + +* Fri Oct 4 2013 Thomas Moschny - 1.4.17-1 +- Update to 1.4.17. + +* Thu Oct 3 2013 Thomas Moschny - 1.4.16-1 +- Update to 1.4.16. + +* Sun Aug 04 2013 Fedora Release Engineering - 1.4.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jun 30 2013 Thomas Moschny - 1.4.15-1 +- Update to 1.4.15. +- Disable failing Subversion checks for now. + +* Wed Jun 12 2013 Thomas Moschny - 1.4.14-2 +- Use python-sphinx for rhel > 6 (rhbz#973321). +- Update URL. +- Fix changelog entry with an incorrect date (rhbz#973325). + +* Sat May 11 2013 Thomas Moschny - 1.4.14-1 +- Update to 1.4.14. + +* Sat Mar 2 2013 Thomas Moschny - 1.4.13-1 +- Update to 1.4.13. + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 23 2012 Thomas Moschny - 1.4.12-1 +- Update to 1.4.12. + +* Sat Oct 27 2012 Thomas Moschny - 1.4.11-1 +- Update to 1.4.11. + +* Sun Oct 21 2012 Thomas Moschny - 1.4.10-2 +- Re-enable doc building and testsuite. +- Minor testsuite fixes. + +* Sun Oct 21 2012 Thomas Moschny - 1.4.10-1 +- Update to 1.4.10. + +* Fri Oct 12 2012 Thomas Moschny - 1.4.9-8 +- Re-enable doc building and testsuite. + +* Thu Oct 11 2012 Thomas Moschny - 1.4.9-7 +- Add conditional for sphinx on rhel. +- Remove rhel logic from with_python3 conditional. + +* Wed Oct 10 2012 Thomas Moschny - 1.4.9-6 +- Re-enable doc building and testsuite. + +* Sat Aug 4 2012 David Malcolm - 1.4.9-5 +- Temporarily disable docs and testsuite. + +* Sat Aug 04 2012 David Malcolm - 1.4.9-4 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + +* Fri Jul 27 2012 Fedora Release Engineering - 1.4.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 15 2012 Thomas Moschny - 1.4.9-2 +- Re-enable doc building and testsuite. + +* Thu Jun 14 2012 Thomas Moschny - 1.4.9-1 +- Update to 1.4.9. + +* Sat Jun 9 2012 Thomas Moschny - 1.4.8-2 +- Re-enable doc building and testsuite. + +* Wed Jun 6 2012 Thomas Moschny - 1.4.8-1 +- Update to 1.4.8. + +* Wed Feb 8 2012 Thomas Moschny - 1.4.7-2 +- Re-enable doc building and testsuite. + +* Wed Feb 8 2012 Thomas Moschny - 1.4.7-1 +- Update to 1.4.7. + +* Sat Jan 14 2012 Fedora Release Engineering - 1.4.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Dec 17 2011 Thomas Moschny - 1.4.6-2 +- Re-enable doc building and testsuite. + +* Sat Dec 17 2011 Thomas Moschny - 1.4.6-1 +- Update to 1.4.6. +- Remove %%prerelease macro. +- Temporarily disable docs and testsuite. + +* Wed Oct 26 2011 Fedora Release Engineering - 1.4.5-4 +- Rebuilt for glibc bug#747377 + +* Sat Sep 3 2011 Thomas Moschny - 1.4.5-3 +- Fix: python3 dependencies. + +* Tue Aug 30 2011 Thomas Moschny - 1.4.5-2 +- Re-enable doc building and testsuite. + +* Sat Aug 27 2011 Thomas Moschny - 1.4.5-1 +- Update to 1.4.5. + +* Thu Aug 11 2011 Thomas Moschny - 1.4.4-2 +- Re-enable doc building and testsuite. + +* Thu Aug 11 2011 Thomas Moschny - 1.4.4-1 +- Update to 1.4.4. +- Upstream provides a .zip archive only. +- pytest and pycmd are separate packages now. +- Disable building html docs und the testsuite to break the circular + build dependency with pytest. +- Update summary and description. +- Remove BRs no longer needed. +- Create a Python 3 subpackage. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Sep 18 2010 Thomas Moschny - 1.3.4-1 +- Update to 1.3.4 + +* Fri Aug 27 2010 Thomas Moschny - 1.3.3-2 +- Add dependency on python-setuptools (see bz 626808). + +* Sat Jul 31 2010 Thomas Moschny - 1.3.3-1 +- Update to 1.3.3. + +* Thu Jul 22 2010 David Malcolm - 1.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Sat Jul 10 2010 Thomas Moschny - 1.3.2-1 +- Update to 1.3.2. +- Do cleanups already in %%prep to avoid inconsistent mtimes between + source files and bytecode. + +* Sat May 29 2010 Thomas Moschny - 1.3.1-1 +- Update to 1.3.1. + +* Sat May 8 2010 Thomas Moschny - 1.3.0-1 +- Update to 1.3.0. +- Remove some backup (.orig) files. + +* Sun Feb 14 2010 Thomas Moschny - 1.2.1-1 +- Update to 1.2.1. + +* Wed Jan 27 2010 Thomas Moschny - 1.2.0-1 +- Update to 1.2.0. +- Adjust summary and %%description. +- Use %%global instead of %%define. + +* Sat Nov 28 2009 Thomas Moschny - 1.1.1-1 +- Update to 1.1.1. + +* Sat Nov 21 2009 Thomas Moschny - 1.1.0-1 +- Update to 1.1.0. Upstream reorganized the package's structure and + cleaned up the install process, so the specfile could be greatly + simplified. +- Dropped licenses for files no longer present from the License tag. + +* Thu Aug 27 2009 Thomas Moschny - 1.0.2-1 +- Update to 1.0.2. +- One failing test is no longer part of the testsuite, thus needs not + to be skipped anymore. +- Some developer docs are missing this time in upstream's tarfile, so + cannot be moved to %%{_docdir} + +* Thu Aug 13 2009 Thomas Moschny - 1.0.0-1 +- Update to 1.0.0. +- Re-enable SVN tests in %%check. + +* Sun Jul 26 2009 Fedora Release Engineering - 1.0.0-1.b8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 22 2009 Thomas Moschny - 1.0.0-0.b8 +- Update to 1.0.0b8. +- Remove patches applied upstream. +- Greenlets have been removed upstream. So, package is noarch and + - installs to %%{python_sitelib} again + - %%ifarch sections have been removed. +- Don't remove files used by the testsuite for now. +- Add dependency on python-pygments, pylint and pexpect (for the + testsuite). + +* Thu Feb 26 2009 Fedora Release Engineering - 0.9.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Jan 14 2009 Thomas Moschny - 0.9.2-6 +- Use system doctest module again, as this wasn't the real cause of + the test failure. Instead, remove the failing test for now. + +* Fri Dec 12 2008 Thomas Moschny - 0.9.2-5 +- Add patch from trunk fixing a subversion 1.5 problem (pylib + issue66). +- Don't replace doctest compat module (pylib issue67). + +* Fri Nov 21 2008 Thomas Moschny - 0.9.2-4 +- Use dummy_greenlet on ppc and ppc64. + +* Tue Oct 7 2008 Thomas Moschny - 0.9.2-3 +- Replace compat modules by stubs using the system modules instead. +- Add patch from trunk fixing a timing issue in the tests. + +* Tue Sep 30 2008 Thomas Moschny - 0.9.2-2 +- Update license information. +- Fix the tests. + +* Sun Sep 7 2008 Thomas Moschny - 0.9.2-1 +- Update to 0.9.2. +- Upstream now uses setuptools and installs to %%{python_sitearch}. +- Remove %%{srcname} macro. +- More detailed information about licenses. + +* Thu Aug 21 2008 Thomas Moschny - 0.9.1-1 +- New package.