public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: Update to 1.8.0.
@ 2026-08-01 11:43 Thomas Moschny
0 siblings, 0 replies; only message in thread
From: Thomas Moschny @ 2026-08-01 11:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-py
Branch : pr7
Commit : c80d2e0285ac3cbf86b36df19af9fee2917fe61e
Author : Thomas Moschny <thm@fedoraproject.org>
Date : 2019-04-15T18:13:36+02:00
Stats : +20/-34 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-py/c/c80d2e0285ac3cbf86b36df19af9fee2917fe61e?branch=pr7
Log:
Update to 1.8.0.
Update spec file.
---
diff --git a/python-py.spec b/python-py.spec
index 0673737..959550e 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -3,7 +3,7 @@
%bcond_without docs
# the testsuite is curremtly not compatible with pytest 3, see
# https://github.com/pytest-dev/py/issues/104
-%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
+%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_with tests
%else
%bcond_without tests
@@ -18,13 +18,13 @@
%global srcname py
Name: python-%{srcname}
-Version: 1.7.0
-Release: 3%{?dist}
+Version: 1.8.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://pylib.readthedocs.io/en/stable/
-Source: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
+URL: http://py.readthedocs.io/
+Source: %{pypi_source}
BuildArch: noarch
%if %{with tests}
@@ -102,50 +102,36 @@ following tools and modules:
%prep
-%setup -qc -n %{srcname}-%{version}
+%autosetup -n %{srcname}-%{version}
# remove shebangs and fix permissions
-find %{srcname}-%{version} \
+find . \
-type f -a \( -name '*.py' -o -name 'py.*' \) \
-exec sed -i '1{/^#!/d}' {} \; \
-exec chmod u=rw,go=r {} \;
-mv %{srcname}-%{version} python2
-cp -a python2 python3
-
%build
%if %{with python2}
-pushd python2
%py2_build
-popd
%endif # with python2
%if %{with python3}
-pushd python3
%py3_build
%if %{with docs}
make -C doc html PYTHONPATH=$(pwd)
+rm -rf doc/_build/html/.buildinfo
%endif # with docs
-popd
%endif # with python3
%install
%if %{with python2}
-pushd python2
%py2_install
-# remove hidden file
-rm -rf doc/_build/html/.buildinfo
-popd
%endif # with python2
%if %{with python3}
-pushd python3
%py3_install
-# remove hidden file
-rm -rf doc/_build/html/.buildinfo
-popd
%endif # with python3
@@ -154,18 +140,14 @@ popd
# disable failing Subversion checks for now
%if %{with python2}
-pushd python2
PYTHONPATH=%{buildroot}%{python2_sitelib} \
LC_ALL=C.UTF-8 \
py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
-popd
%endif # with python2
%if %{with python3}
-pushd python3
PYTHONPATH=%{buildroot}%{python3_sitelib} \
py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
-popd
%endif # with python3
%endif # with tests
@@ -173,9 +155,9 @@ popd
%if %{with python2}
%files -n python2-%{srcname}
-%doc python2/CHANGELOG
-%doc python2/README.rst
-%license python2/LICENSE
+%doc CHANGELOG
+%doc README.rst
+%license LICENSE
%{python2_sitelib}/py-*.egg-info/
%{python2_sitelib}/py/
%endif # with python2
@@ -183,11 +165,11 @@ popd
%if %{with python3}
%files -n python3-%{srcname}
-%doc python3/CHANGELOG
-%doc python3/README.rst
-%license python3/LICENSE
+%doc CHANGELOG
+%doc README.rst
+%license LICENSE
%if %{with docs}
-%doc python3/doc/_build/html
+%doc doc/_build/html
%endif # with_docs
%{python3_sitelib}/py-*.egg-info/
%{python3_sitelib}/py/
@@ -195,6 +177,10 @@ popd
%changelog
+* Mon Apr 15 2019 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-1
+- Update to 1.8.0.
+- Update spec file.
+
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index b343b5d..134a05e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (py-1.7.0.tar.gz) = c522be926c5716d866cb800eaa398a55518889da207a00575212254642eda2107e68c286e72b99cf94ecec1c8dcde1f763e2d8f296ab7e7673ae2671e70d5548
+SHA512 (py-1.8.0.tar.gz) = 37b9a66229b834a034d9ba6769a46addf098380b494c1eb863607a52d00b7ec5b9157dd7ac6ffc52535a05006648c775c78716d7f85cf44966065b225be6e95b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 11:43 [rpms/python-py] pr7: Update to 1.8.0 Thomas Moschny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox