Compare commits

..

No commits in common. "c8-stream-3.8" and "stream-python39-3.9-rhel-8.9.0" have entirely different histories.

4 changed files with 50 additions and 87 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/py-1.8.0.tar.gz /py-1.9.0.tar.gz
/py-1.10.0.tar.gz

View File

@ -1 +1 @@
b8c56a3648e05ed92722e1a040b55354d9f9ce84 SOURCES/py-1.8.0.tar.gz 690e4e3dcaeafe02ad4af36233148e7e10032d1a py-1.10.0.tar.gz

View File

@ -1,16 +1,11 @@
# we have a circular (build) dependency with the (new) pytest package # RHEL: docs disabled because they need python3-sphinx, which needs
# when generating the docs or running the testsuite # python3-packaging, which is shahowed by python39-packaging during the build
# of the python39 module
%bcond_with docs %bcond_with docs
# the testsuite is curremtly not compatible with pytest 3, see # the testsuite is currently not compatible with pytest 3, see
# https://github.com/pytest-dev/py/issues/104 # https://github.com/pytest-dev/py/issues/104
%if 0%{?fedora} || 0%{?rhel} > 7 # RHEL: Tests disabled due to incompatible version of pytest
%bcond_with tests %bcond_with tests
%else
%bcond_without tests
%endif
%bcond_with python2
%bcond_without python3
%global pytest_version_lb 2.9.0 %global pytest_version_lb 2.9.0
%global pytest_version_ub 2.10 %global pytest_version_ub 2.10
@ -18,8 +13,8 @@
%global srcname py %global srcname py
Name: python-%{srcname} Name: python-%{srcname}
Version: 1.8.0 Version: 1.10.0
Release: 8%{?dist} Release: 1%{?dist}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities Summary: Library with cross-python path, ini-parsing, io, code, log facilities
License: MIT and Public Domain License: MIT and Public Domain
# main package: MIT, except: doc/style.css: Public Domain # main package: MIT, except: doc/style.css: Public Domain
@ -47,39 +42,11 @@ following tools and modules:
* py.path: uniform local and svn path objects * py.path: uniform local and svn path objects
%if %{with python2}
%package -n python2-%{srcname}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-setuptools_scm
%if %{with tests}
BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub}
%endif # with tests
Requires: python2-setuptools
%{?python_provide:%python_provide python2-%{srcname}}
Provides: bundled(python2-apipkg) = 1.4
Provides: bundled(python2-iniconfig) = 1.0.0
%description -n python2-%{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
%endif # with python2
%if %{with python3}
%package -n python%{python3_pkgversion}-%{srcname} %package -n python%{python3_pkgversion}-%{srcname}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities Summary: Library with cross-python path, ini-parsing, io, code, log facilities
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with docs} %if %{with docs}
BuildRequires: %{_bindir}/sphinx-build BuildRequires: %{_bindir}/sphinx-build
%endif # with_docs %endif # with_docs
@ -89,8 +56,8 @@ BuildRequires: python%{python3_pkgversion}-pytest < %{pytest_version_ub}
%endif # with tests %endif # with tests
Requires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-setuptools
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
Provides: bundled(python%{python3_pkgversion}-apipkg) = 1.4 Provides: bundled(python%{python3_pkgversion}-apipkg) = 1.5
Provides: bundled(python%{python3_pkgversion}-iniconfig) = 1.0.0 Provides: bundled(python%{python3_pkgversion}-iniconfig) = 1.1.1
%description -n python%{python3_pkgversion}-%{srcname} %description -n python%{python3_pkgversion}-%{srcname}
The py lib is a Python development support library featuring the The py lib is a Python development support library featuring the
@ -102,8 +69,6 @@ following tools and modules:
* py.code: dynamic code generation and introspection * py.code: dynamic code generation and introspection
* py.path: uniform local and svn path objects * py.path: uniform local and svn path objects
%endif # with python3
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}
@ -114,65 +79,38 @@ find . \
-exec sed -i '1{/^#!/d}' {} \; \ -exec sed -i '1{/^#!/d}' {} \; \
-exec chmod u=rw,go=r {} \; -exec chmod u=rw,go=r {} \;
# Remove dependency of setuptools-scm # Remove dependency of setuptools_scm
sed -i "/ *use_scm_version=.*,/d" setup.py sed -i "/ *use_scm_version=.*,/d" setup.py
sed -i "s/ *setup_requires=.*/version='%{version}',/" setup.py sed -i "s/ *setup_requires=.*/version='%{version}',/" setup.py
%build %build
%if %{with python2}
%py2_build
%endif # with python2
%if %{with python3}
%py3_build %py3_build
%if %{with docs} %if %{with docs}
make -C doc html PYTHONPATH=$(pwd) make -C doc html PYTHONPATH=$(pwd)
rm -rf doc/_build/html/.buildinfo rm -rf doc/_build/html/.buildinfo
%endif # with docs %endif # with docs
%endif # with python3
%install %install
%if %{with python2}
%py2_install
%endif # with python2
%if %{with python3}
%py3_install %py3_install
%endif # with python3
# 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 %check
%if %{with tests} %if %{with tests}
# disable failing Subversion checks for now # disable failing Subversion checks for now
%if %{with python2}
PYTHONPATH=%{buildroot}%{python2_sitelib} \
LC_ALL=C.UTF-8 \
py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
%endif # with python2
%if %{with python3}
PYTHONPATH=%{buildroot}%{python3_sitelib} \ PYTHONPATH=%{buildroot}%{python3_sitelib} \
py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
%endif # with python3
%endif # with tests %endif # with tests
%if %{with python2}
%files -n python2-%{srcname}
%doc CHANGELOG
%doc README.rst
%license LICENSE
%{python2_sitelib}/py-*.egg-info/
%{python2_sitelib}/py/
%endif # with python2
%if %{with python3}
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%doc CHANGELOG %doc CHANGELOG.rst
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%if %{with docs} %if %{with docs}
@ -180,15 +118,38 @@ py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
%endif # with_docs %endif # with_docs
%{python3_sitelib}/py-*.egg-info/ %{python3_sitelib}/py-*.egg-info/
%{python3_sitelib}/py/ %{python3_sitelib}/py/
%endif # with python3
%changelog %changelog
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.8.0-8 * Thu Jan 28 2021 Tomas Orsava <torsava@redhat.com> - 1.10.0-1
- Exclude unsupported i686 arch - Update to 1.10.0.
- Resolves: rhbz#1877430
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.8.0-7 * Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 1.9.0-3
- Adjusted for Python 3.8 module in RHEL 8 - Convert from Fedora to the python39 module in RHEL8
- Resolves: rhbz#1877430
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Jun 28 2020 Thomas Moschny <thomas.moschny@gmx.de> - 1.9.0-1
- Update to 1.9.0.
* Sat Jun 20 2020 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.2-1
- Update to 1.8.2.
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-10
- Rebuilt for Python 3.9
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-9
- Bootstrap for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Nov 23 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 1.8.0-6 * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-6
- Rebuilt for Python 3.8.0rc1 (#1748018) - Rebuilt for Python 3.8.0rc1 (#1748018)

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (py-1.10.0.tar.gz) = 7a0eb964067bc01fa4f8ffe70b043abfd4619134fbee2935713e28382085d0b8972c319ed665a643b879b18ce662db8a9bd722937af7cf36c233214eea211dd1