Skip to content

Commit

Permalink
alvistack/v60.0.3
Browse files Browse the repository at this point in the history
    git clean -xdf
    tar zcvf ../python-setuptools_60.0.3.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-setuptools.spec ../python-setuptools_60.0.3-1.spec
    mv ../python-setuptools*60.0.3*.{gz,xz,spec,dsc} /osc/home\:alvistack/pypa-setuptools-60.0.3/
    rm -rf ../python*-setuptools_60.0.3*.* ../python*-pkg-resources_60.0.3*.*

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i committed Dec 21, 2021
1 parent 390016f commit f73b5bc
Show file tree
Hide file tree
Showing 21 changed files with 826 additions and 88 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ setuptools.egg-info
.idea/
.pytest_cache/
.mypy_cache/
.pybuild
7 changes: 7 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.substvars
*debhelper*
.debhelper
files
python3-setuptools
python3-pkg-resources
tmp
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python-setuptools (100:60.0.3-1) UNRELEASED; urgency=medium

* https://github.com/pypa/setuptools/releases/tag/v60.0.3

-- Wong Hoi Sing Edison <hswong3i@gmail.com> Tue, 21 Dec 2021 09:43:34 +0800
43 changes: 43 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Source: python-setuptools
Section: python
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <hswong3i@gmail.com>
Homepage: https://github.com/pypa/setuptools/tags
Vcs-Browser: https://github.com/alvistack/pypa-setuptools
Vcs-Git: https://github.com/alvistack/pypa-setuptools.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
dh-python,
fdupes,
python3-all,
python3-dev,

Package: python3-pkg-resources
Architecture: all
Description: Package Discovery and Resource Access using pkg_resources
The pkg_resources module provides an API for Python libraries to
access their resource files, and for extensible applications and
frameworks to automatically discover plugins. It also provides
runtime support for using C extensions that are inside zipfile-format
eggs, support for merging packages that have separately-distributed
modules or subpackages, and APIs for managing Python's current
"working set" of active packages.
Depends:
${misc:Depends},
${shlibs:Depends},
${python3:Depends},

Package: python3-setuptools
Architecture: all
Description: Download, build, install, upgrade, and uninstall Python packages
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.
Depends:
${misc:Depends},
${shlibs:Depends},
${python3:Depends},
python3,
python3-pkg-resources (= ${source:Version}),
Empty file added debian/copyright
Empty file.
1 change: 1 addition & 0 deletions debian/python3-pkg-resources.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/python*/*-packages/pkg_resources
3 changes: 3 additions & 0 deletions debian/python3-pkg-resources.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python3-pkg-resources: copyright-without-copyright-notice
python3-pkg-resources: initial-upload-closes-no-bugs
python3-pkg-resources: zero-byte-file-in-doc-directory
3 changes: 3 additions & 0 deletions debian/python3-setuptools.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/lib/python*/*-packages/_distutils_hack
usr/lib/python*/*-packages/distutils-precedence.pth
usr/lib/python*/*-packages/setuptools*
4 changes: 4 additions & 0 deletions debian/python3-setuptools.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python3-setuptools: copyright-without-copyright-notice
python3-setuptools: initial-upload-closes-no-bugs
python3-setuptools: no-manual-page
python3-setuptools: zero-byte-file-in-doc-directory
16 changes: 16 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_auto_install:
SETUPTOOLS_USE_DISTUTILS=stdlib dh_auto_install
rm -rf debian/tmp/usr/lib/python*/*-packages/pkg_resources/tests
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -s debian/tmp/usr/lib/python*/*-packages

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@ --buildsystem=pybuild --with python3
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
4 changes: 4 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-setuptools source: no-debian-changes
python-setuptools source: source-contains-prebuilt-windows-binary
python-setuptools source: source-is-missing
python-setuptools source: source-package-encodes-python-version
59 changes: 0 additions & 59 deletions pyproject.toml

This file was deleted.

124 changes: 124 additions & 0 deletions python-setuptools.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
%global debug_package %{nil}

Name: python-setuptools
Epoch: 100
Version: 60.0.3
Release: 1%{?dist}
BuildArch: noarch
Summary: Download, build, install, upgrade, and uninstall Python packages
License: MIT
URL: https://github.com/pypa/setuptools/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: glibc-static
BuildRequires: python-rpm-macros
BuildRequires: python3-devel

%description
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.

%prep
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .

%build
%py3_build

%install
SETUPTOOLS_USE_DISTUTILS=stdlib %py3_install
rm -rf %{buildroot}%{python3_sitelib}/pkg_resources/tests
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \;
%fdupes -s %{buildroot}%{python3_sitelib}

%check

%if 0%{?suse_version} > 1500
%package -n python%{python_version_nodots}-setuptools
Summary: Download, build, install, upgrade, and uninstall Python packages
Requires: python3
Provides: python3-setuptools = %{epoch}:%{version}-%{release}
Provides: python3dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(setuptools) = %{epoch}:%{version}-%{release}

%description -n python%{python_version_nodots}-setuptools
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.

%files -n python%{python_version_nodots}-setuptools
%license LICENSE
%{python3_sitelib}/_distutils_hack
%{python3_sitelib}/distutils-precedence.pth
%{python3_sitelib}/pkg_resources
%{python3_sitelib}/setuptools*
%endif

%if 0%{?centos_version} == 800
%package -n platform-python-setuptools
Summary: Download, build, install, upgrade, and uninstall Python packages
Requires: python3
Conflicts: platform-python-setuptools < %{epoch}:%{version}-%{release}
Conflicts: python3-setuptools < %{epoch}:%{version}-%{release}

%description -n platform-python-setuptools
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.

%package -n python3-setuptools
Summary: Download, build, install, upgrade, and uninstall Python packages
Requires: platform-python-setuptools = %{epoch}:%{version}-%{release}
Provides: python3-setuptools = %{epoch}:%{version}-%{release}
Provides: python3dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(setuptools) = %{epoch}:%{version}-%{release}

%description -n python3-setuptools
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.

%files -n platform-python-setuptools
%license LICENSE
%{python3_sitelib}/_distutils_hack
%{python3_sitelib}/distutils-precedence.pth
%{python3_sitelib}/pkg_resources
%{python3_sitelib}/setuptools*

%files -n python3-setuptools
%license LICENSE
%endif

%if !(0%{?suse_version} > 1500) && !(0%{?centos_version} == 800)
%package -n python3-setuptools
Summary: Download, build, install, upgrade, and uninstall Python packages
Requires: python3
Provides: python3-setuptools = %{epoch}:%{version}-%{release}
Provides: python3dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(setuptools) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-setuptools = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(setuptools) = %{epoch}:%{version}-%{release}

%description -n python3-setuptools
setuptools is a collection of enhancements to the Python distutils that
allow you to build and distribute Python packages, especially ones that
have dependencies on other packages.

%files -n python3-setuptools
%license LICENSE
%{python3_sitelib}/_distutils_hack
%{python3_sitelib}/distutils-precedence.pth
%{python3_sitelib}/pkg_resources
%{python3_sitelib}/setuptools*
%endif

%changelog
Loading

0 comments on commit f73b5bc

Please sign in to comment.