Skip to content

Commit b90e421

Browse files
committed
alvistack/23.3
git clean -xdf tar zcvf ../python-pip_23.3.orig.tar.gz --exclude=.git . debuild -uc -us cp python-pip.spec ../python-pip_23.3-1.spec mv ../python*-pip*23.3*.{gz,xz,spec,dsc} /osc/home\:alvistack/pypa-pip-23.3/ rm -rf ../python*-pip_23.3*.* See pypa#12338 (comment) Signed-off-by: Wong Hoi Sing Edison <[email protected]>
1 parent e3dc91d commit b90e421

File tree

12 files changed

+234
-1
lines changed

12 files changed

+234
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ tests/data/common_wheels/
5252

5353
# Profiling related artifacts
5454
*.prof
55+
56+
.pybuild/

debian/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.substvars
2+
*debhelper*
3+
.debhelper
4+
files
5+
python3-pip
6+
tmp

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python-pip (100:23.3-1) UNRELEASED; urgency=medium
2+
3+
* https://github.com/pypa/pip/releases/tag/23.3
4+
5+
-- Wong Hoi Sing Edison <[email protected]> Tue, 17 Oct 2023 12:58:05 +0800

debian/control

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Source: python-pip
2+
Section: python
3+
Priority: optional
4+
Standards-Version: 4.5.0
5+
Maintainer: Wong Hoi Sing Edison <[email protected]>
6+
Homepage: https://github.com/pypa/pip/tags
7+
Vcs-Browser: https://github.com/alvistack/pypa-pip
8+
Vcs-Git: https://github.com/alvistack/pypa-pip.git
9+
Build-Depends:
10+
debhelper,
11+
debhelper-compat (= 10),
12+
dh-python,
13+
fdupes,
14+
python3-dev,
15+
python3-setuptools,
16+
17+
Package: python3-pip
18+
Architecture: all
19+
Description: Python package management system
20+
Pip is a replacement for easy_install. It uses mostly the same
21+
techniques for finding packages, so packages that were made
22+
easy_installable should be pip-installable as well.
23+
Depends:
24+
${misc:Depends},
25+
${shlibs:Depends},
26+
${python3:Depends},
27+
python3,
28+
ca-certificates,
29+
python3-distutils,
30+
python3-setuptools,
31+
python3-wheel,

debian/copyright

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
3+
Files: debian/*
4+
Copyright: 2023 Wong Hoi Sing Edison <[email protected]>
5+
License: Apache-2.0
6+
7+
License: Apache-2.0
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
.
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
.
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
.
20+
The complete text of the Apache version 2.0 license
21+
can be found in "/usr/share/common-licenses/Apache-2.0".

debian/python3-pip.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/bin/*
2+
usr/lib/python*/*-packages/*

debian/python3-pip.lintian-overrides

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python3-pip: copyright-without-copyright-notice
2+
python3-pip: initial-upload-closes-no-bugs
3+
python3-pip: no-manual-page
4+
python3-pip: zero-byte-file-in-doc-directory

debian/rules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/make -f
2+
3+
SHELL := /bin/bash
4+
5+
override_dh_auto_install:
6+
dh_auto_install --destdir=debian/tmp
7+
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
8+
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages
9+
10+
override_dh_auto_test:
11+
12+
override_dh_auto_clean:
13+
14+
%:
15+
dh $@ --buildsystem=pybuild --with python3

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/source/lintian-overrides

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python-pip source: file-without-copyright-information
2+
python-pip source: no-debian-changes
3+
python-pip source: source-contains-prebuilt-windows-binary
4+
python-pip source: source-package-encodes-python-version

python-pip.spec

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Copyright 2023 Wong Hoi Sing Edison <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
%global debug_package %{nil}
16+
17+
Name: python-pip
18+
Epoch: 100
19+
Version: 23.3
20+
Release: 1%{?dist}
21+
BuildArch: noarch
22+
Summary: Python package management system
23+
License: MIT
24+
URL: https://github.com/pypa/pip/tags
25+
Source0: %{name}_%{version}.orig.tar.gz
26+
BuildRequires: fdupes
27+
BuildRequires: python-rpm-macros
28+
BuildRequires: python3-devel
29+
BuildRequires: python3-setuptools
30+
31+
%description
32+
Pip is a replacement for easy_install. It uses mostly the same
33+
techniques for finding packages, so packages that were made
34+
easy_installable should be pip-installable as well.
35+
36+
%prep
37+
%autosetup -T -c -n %{name}_%{version}-%{release}
38+
tar -zx -f %{S:0} --strip-components=1 -C .
39+
40+
%build
41+
%py3_build
42+
43+
%install
44+
%py3_install
45+
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \;
46+
fdupes -qnrps %{buildroot}%{python3_sitelib}
47+
48+
%check
49+
50+
%if 0%{?suse_version} > 1500
51+
%package -n python%{python_version_nodots}-pip
52+
Summary: Python package management system
53+
Requires: ca-certificates
54+
Requires: python3
55+
Requires: python3-distutils-extra
56+
Requires: python3-setuptools
57+
Requires: python3-wheel
58+
Provides: python3-pip = %{epoch}:%{version}-%{release}
59+
Provides: python3dist(pip) = %{epoch}:%{version}-%{release}
60+
Provides: python%{python3_version}-pip = %{epoch}:%{version}-%{release}
61+
Provides: python%{python3_version}dist(pip) = %{epoch}:%{version}-%{release}
62+
Provides: python%{python3_version_nodots}-pip = %{epoch}:%{version}-%{release}
63+
Provides: python%{python3_version_nodots}dist(pip) = %{epoch}:%{version}-%{release}
64+
65+
%description -n python%{python_version_nodots}-pip
66+
Pip is a replacement for easy_install. It uses mostly the same
67+
techniques for finding packages, so packages that were made
68+
easy_installable should be pip-installable as well.
69+
70+
%files -n python%{python_version_nodots}-pip
71+
%license LICENSE.txt
72+
%{_bindir}/*
73+
%{python3_sitelib}/*
74+
%endif
75+
76+
%if 0%{?centos_version} == 800
77+
%package -n platform-python-pip
78+
Summary: Python package management system
79+
Requires: ca-certificates
80+
Requires: python3
81+
Requires: python3-distutils-extra
82+
Requires: python3-setuptools
83+
Requires: python3-wheel
84+
Conflicts: platform-python-pip < %{epoch}:%{version}-%{release}
85+
Conflicts: python3-pip < %{epoch}:%{version}-%{release}
86+
87+
%description -n platform-python-pip
88+
Pip is a replacement for easy_install. It uses mostly the same
89+
techniques for finding packages, so packages that were made
90+
easy_installable should be pip-installable as well.
91+
92+
%package -n python3-pip
93+
Summary: Python package management system
94+
Requires: platform-python-pip = %{epoch}:%{version}-%{release}
95+
Provides: python3-pip = %{epoch}:%{version}-%{release}
96+
Provides: python3dist(pip) = %{epoch}:%{version}-%{release}
97+
Provides: python%{python3_version}-pip = %{epoch}:%{version}-%{release}
98+
Provides: python%{python3_version}dist(pip) = %{epoch}:%{version}-%{release}
99+
Provides: python%{python3_version_nodots}-pip = %{epoch}:%{version}-%{release}
100+
Provides: python%{python3_version_nodots}dist(pip) = %{epoch}:%{version}-%{release}
101+
102+
%description -n python3-pip
103+
Pip is a replacement for easy_install. It uses mostly the same
104+
techniques for finding packages, so packages that were made
105+
easy_installable should be pip-installable as well.
106+
107+
%files -n platform-python-pip
108+
%license LICENSE.txt
109+
%{_bindir}/*
110+
%{python3_sitelib}/*
111+
112+
%files -n python3-pip
113+
%license LICENSE.txt
114+
%endif
115+
116+
%if !(0%{?suse_version} > 1500) && !(0%{?centos_version} == 800)
117+
%package -n python3-pip
118+
Summary: Python package management system
119+
Requires: ca-certificates
120+
Requires: python3
121+
Requires: python3-distutils-extra
122+
Requires: python3-setuptools
123+
Requires: python3-wheel
124+
Provides: python3-pip = %{epoch}:%{version}-%{release}
125+
Provides: python3dist(pip) = %{epoch}:%{version}-%{release}
126+
Provides: python%{python3_version}-pip = %{epoch}:%{version}-%{release}
127+
Provides: python%{python3_version}dist(pip) = %{epoch}:%{version}-%{release}
128+
Provides: python%{python3_version_nodots}-pip = %{epoch}:%{version}-%{release}
129+
Provides: python%{python3_version_nodots}dist(pip) = %{epoch}:%{version}-%{release}
130+
131+
%description -n python3-pip
132+
Pip is a replacement for easy_install. It uses mostly the same
133+
techniques for finding packages, so packages that were made
134+
easy_installable should be pip-installable as well.
135+
136+
%files -n python3-pip
137+
%license LICENSE.txt
138+
%{_bindir}/*
139+
%{python3_sitelib}/*
140+
%endif
141+
142+
%changelog

src/pip/_internal/self_outdated_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get(self, current_time: datetime.datetime) -> Optional[str]:
7373
return None
7474

7575
# Determine if we need to refresh the state
76-
last_check = datetime.datetime.fromisoformat(self._state["last_check"])
76+
last_check = datetime.datetime.fromisoformat(self._state["last_check"].replace('Z', '+00:00'))
7777
time_since_last_check = current_time - last_check
7878
if time_since_last_check > _WEEK:
7979
return None

0 commit comments

Comments
 (0)