public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Thomas Moschny <thm@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-py] pr7: Update to 1.4.31.
Date: Sat, 01 Aug 2026 11:43:19 GMT	[thread overview]
Message-ID: <178558459994.1.15386822053734280012.rpms-python-py-f4118fdd0747@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-py
            Branch : pr7
            Commit : f4118fdd074726f8409453e483c63595d3d69630
            Author : Thomas Moschny <thm@fedoraproject.org>
            Date   : 2016-01-23T18:46:53+01:00
            Stats  : +60/-107 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-py/c/f4118fdd074726f8409453e483c63595d3d69630?branch=pr7

            Log:
            Update to 1.4.31.

- Follow updated Python packaging guidelines.
- Add Provides tag for bundled apipkg.

---
diff --git a/.gitignore b/.gitignore
index 14d3c34..871204a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,32 +1,2 @@
-/py-1.2.0.tar.gz
-/py-1.2.1.tar.gz
-/py-1.3.0.tar.gz
-/py-1.3.1.tar.gz
-/py-1.3.2.tar.gz
-/py-1.3.3.tar.gz
-/py-1.3.4.tar.gz
-/py-1.4.4.zip
-/py-1.4.5.zip
-/py-1.4.6.zip
-/py-1.4.7.zip
-/py-1.4.8.zip
-/py-1.4.9.zip
-/py-1.4.10.zip
-/py-1.4.11.zip
-/py-1.4.12.zip
-/py-1.4.13.tar.gz
-/py-1.4.14.tar.gz
-/py-1.4.15.tar.gz
-/py-1.4.16.tar.gz
-/py-1.4.17.tar.gz
-/py-1.4.18.tar.gz
-/py-1.4.20.tar.gz
-/py-1.4.21.tar.gz
-/py-1.4.22.tar.gz
-/py-1.4.23.tar.gz
-/py-1.4.24.tar.gz
-/py-1.4.25.tar.gz
-/py-1.4.26.tar.gz
-/py-1.4.28.tar.gz
-/py-1.4.29.tar.gz
-/py-1.4.30.tar.gz
+/py-*.tar.gz
+/py-*.zip

diff --git a/python-py.spec b/python-py.spec
index 9a70800..38922f4 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -1,55 +1,36 @@
-%if 0%{?rhel} && 0%{?rhel} <= 6
-%{!?__python2: %global __python2 /usr/bin/python2}
-%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%endif
-
-%if 0%{?fedora}
-%global with_python3 1
-%endif
-
 # we have a circular (build) dependency with the (new) pytest package
 # when generating the docs or running the testsuite
-%global with_docs 1
-%global run_check 1
+%global with_docs 0
+%global run_check 0
 
 %global pytest_version 2.5
 
-Name:           python-py
-Version:        1.4.30
-Release:        3%{?dist}
+%global srcname py
+
+Name:           python-%{srcname}
+Version:        1.4.31
+Release:        1%{?dist}
 Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
-Group:          Development/Languages
 License:        MIT and Public Domain
 #               main package: MIT, except: doc/style.css: Public Domain
 URL:            http://pylib.readthedocs.org/
-Source:         http://pypi.python.org/packages/source/p/py/py-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source:         http://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  python2-devel
-BuildRequires:  python-setuptools
-Requires:       python-setuptools
+BuildRequires:  python3-devel
+BuildRequires:  python2-setuptools
+BuildRequires:  python3-setuptools
+
 %if 0%{?with_docs}
-%if 0%{?rhel} > 6 || 0%{?fedora}
 BuildRequires:  python-sphinx
-%else
-BuildRequires:  python-sphinx10
-%endif # fedora
 %endif # with_docs
 %if 0%{?run_check}
-BuildRequires:  pytest >= %{pytest_version}
-%endif # run_check
-%if 0%{?with_python3}
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-%if 0%{?run_check}
+BuildRequires:  python2-pytest >= %{pytest_version}
 BuildRequires:  python3-pytest >= %{pytest_version}
 %endif # run_check
-%endif # with_python3
-
 # needed by the testsuite
 BuildRequires:  subversion
 
-
 %description
 The py lib is a Python development support library featuring the
 following tools and modules:
@@ -60,12 +41,32 @@ following tools and modules:
   * py.code: dynamic code generation and introspection
   * py.path: uniform local and svn path objects
 
-%if 0%{?with_python3}
-%package -n python3-py
+
+%package -n python2-%{srcname}
+Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
+Requires:       python-setuptools
+%{?python_provide:%python_provide python2-%{srcname}}
+Provides:       bundled(python-apipkg) = 1.3.dev
+Provides:       bundled(python2-apipkg) = 1.3.dev
+
+%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
+
+
+%package -n python3-%{srcname}
 Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
 Requires:       python3-setuptools
+%{?python_provide:%python_provide python3-%{srcname}}
+Provides:       bundled(python3-apipkg) = 1.3.dev
 
-%description -n python3-py
+%description -n python3-%{srcname}
 The py lib is a Python development support library featuring the
 following tools and modules:
 
@@ -75,13 +76,10 @@ following tools and modules:
   * py.code: dynamic code generation and introspection
   * py.path: uniform local and svn path objects
 
-%endif # with_python3
 
 %prep
-%setup -qc -n py-%{version}
-mv py-%{version} python2
-
-pushd python2
+%setup -qc -n %{srcname}-%{version}
+pushd %{srcname}-%{version}
 # remove shebangs and fix permissions
 find -type f -a \( -name '*.py' -o -name 'py.*' \) \
    -exec sed -i '1{/^#!/d}' {} \; \
@@ -90,45 +88,38 @@ find -type f -a \( -name '*.py' -o -name 'py.*' \) \
 # fix line-endings
 sed -i 's/\r//' README.txt
 popd
-
-%if 0%{?with_python3}
+mv %{srcname}-%{version} python2
 cp -a python2 python3
-%endif # with_python3
 
 
 %build
 pushd python2
-%{__python2} setup.py build
-
+%py2_build
 %if 0%{?with_docs}
-%if 0%{?rhel} > 6 || 0%{?fedora}
 make -C doc html PYTHONPATH=$(pwd)
-%else
-make -C doc html SPHINXBUILD=sphinx-1.0-build PYTHONPATH=$(pwd)
-%endif # fedora
 %endif # with_docs
 popd
 
-%if 0%{?with_python3}
 pushd python3
-%{__python3} setup.py build
+%py3_build
+%if 0%{?with_docs}
+make -C doc html PYTHONPATH=$(pwd)
+%endif # with_docs
 popd
-%endif # with_python3
 
 
 %install
 pushd python2
-%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
-
+%py2_install
 # remove hidden file
 rm -rf doc/_build/html/.buildinfo
 popd
 
-%if 0%{?with_python3}
 pushd python3
-%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+%py3_install
+# remove hidden file
+rm -rf doc/_build/html/.buildinfo
 popd
-%endif # with_python3
 
 
 %check
@@ -137,51 +128,43 @@ popd
 pushd python2
 PYTHONPATH=%{buildroot}%{python2_sitelib} \
 LC_ALL="en_US.UTF-8" \
-py.test -r s -k"-TestWCSvnCommandPath" testing
+py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
 popd
 
-%if 0%{?with_python3}
 pushd python3
 PYTHONPATH=%{buildroot}%{python3_sitelib} \
 LC_ALL="en_US.UTF-8" \
 py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
 popd
-%endif # with_python3
 %endif # run_check
 
 
-%files
+%files -n python2-%{srcname}
 %doc python2/CHANGELOG
 %doc python2/README.txt
-%if 0%{?_licensedir:1}
 %license python2/LICENSE
-%else
-%doc python2/LICENSE
-%endif # licensedir
 %if 0%{?with_docs}
 %doc python2/doc/_build/html
 %endif # with_docs
 %{python2_sitelib}/*
 
 
-%if 0%{?with_python3}
-%files -n python3-py
+%files -n python3-%{srcname}
 %doc python3/CHANGELOG
 %doc python3/README.txt
-%if 0%{?_licensedir:1}
 %license python2/LICENSE
-%else
-%doc python2/LICENSE
-%endif # licensedir
 %if 0%{?with_docs}
-# HTML docs generated with Python2 for now
-%doc python2/doc/_build/html
+%doc python3/doc/_build/html
 %endif # with_docs
 %{python3_sitelib}/*
-%endif # with_python3
 
 
 %changelog
+* Sat Jan 23 2016 Thomas Moschny <thomas.moschny@gmx.de> - 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 <rkuska@redhat.com> - 1.4.30-3
 - Rebuilt for Python3.5 rebuild
 - With check and docs

diff --git a/sources b/sources
index d8399ec..64e6eed 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a904aabfe4765cb754f2db84ec7bb03a  py-1.4.30.tar.gz
+5d2c63c56dc3f2115ec35c066ecd582b  py-1.4.31.tar.gz

                 reply	other threads:[~2026-08-01 11:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178558459994.1.15386822053734280012.rpms-python-py-f4118fdd0747@fedoraproject.org \
    --to=thm@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox