Commit Graph

131 Commits

Author SHA1 Message Date
Tomas Hrnciar
8540e6a72a Add rpmlint config to filter not important warnings and errors
This commit adds rpmlint config to filter warning and errors
that are not really a problem. Such as no-documentation warning
for python-pip-wheel which has documentation README shipped with main
package but rpmlint does not see it.
Then it filters out venv spelling error and adds temporary filter for
non-executable-script and wrong-script-interpreter those will be fixed
once all upstream PRs will be merged.
2020-04-21 13:42:47 +02:00
Tomas Hrnciar
c9ef3c929b Link to man page for all executables
There are four different executables for python-pip, but so far only two of
them had man page. This commit makes man page available for rest of the
executables via links.
2020-04-21 13:42:47 +02:00
Miro Hrončok
3e4dd1e249 Allow setting $TMPDIR to $PWD/... during pip wheel
Needed for https://bugzilla.redhat.com/show_bug.cgi?id=1806625
2020-04-21 13:42:43 +02:00
Miro Hrončok
f5670068cb Make patches apply --without tests
Some patches touch tests and we didn't include the test sources --without tests,
leading to broken build. This was a long standing reoccurring problem.

Now we always include and unpack tests sources, even when we don't run them.
2020-04-20 13:10:25 +02:00
Miro Hrončok
4fd076bf4d Fedora CI: Run %pyproject macros integration tests 2020-04-20 13:10:07 +02:00
Miro Hrončok
cfdddae669 Upgrade urllib3 to 1.25.3, requests to 2.22.0
- Fix urllib3 CVE-2019-11324 (#1774595)
- Fix urllib3 CVE-2019-11236 (#1775363)
2020-01-02 13:21:20 +01:00
Miro Hrončok
b71b777d9e Make python-pip-wheel work with Python 3.9 2019-11-25 23:29:28 +01:00
Miro Hrončok
300039ebf8 Make /usr/bin/pip(2|3) work with user-installed pip 19.3+
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1767212

== Before:

$ rpm -q python3-pip
python3-pip-19.1.1-4.fc31.noarch

$ rpm -q python2-pip
python2-pip-19.1.1-4.fc31.noarch

$ /usr/bin/pip --version
pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

$ /usr/bin/pip2 --version
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)

$ /usr/bin/pip3 --version
pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

$ pip{2,3} install --user --upgrade pip
...
Successfully installed pip-19.3.1

$ /usr/bin/pip{,2,3} --version
Traceback (most recent call last):
  File "/usr/bin/pip{,2,3}", line 15, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable

$ rm .local/ -rf
$ pip{2,3} install --user --upgrade 'pip<10'
...
Successfully installed pip-9.0.3

$ /usr/bin/pip --version
pip 9.0.3 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ /usr/bin/pip2 --version
pip 9.0.3 from /home/pythonista/.local/lib/python2.7/site-packages (python 2.7)

$ /usr/bin/pip3 --version
pip 9.0.3 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ pip{2,3} install --user --upgrade 'pip<9'
...
Successfully installed pip-8.1.2

$ /usr/bin/pip --version
pip 8.1.2 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ /usr/bin/pip2 --version
pip 8.1.2 from /home/pythonista/.local/lib/python2.7/site-packages (python 2.7)

$ /usr/bin/pip3 --version
pip 8.1.2 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

== After

$ rpm -q python3-pip
python3-pip-19.1.1-5.fc31.noarch

$ rpm -q python2-pip
python2-pip-19.1.1-5.fc31.noarch

$ /usr/bin/pip --version
pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

$ /usr/bin/pip2 --version
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)

$ /usr/bin/pip3 --version
pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

$ pip{2,3} install --user --upgrade pip
...
Successfully installed pip-19.3.1

$ /usr/bin/pip --version
pip 19.3.1 from /home/pythonista/.local/lib/python3.7/site-packages/pip (python 3.7)

$ /usr/bin/pip2 --version
pip 19.3.1 from /home/pythonista/.local/lib/python2.7/site-packages/pip (python 2.7)

$ /usr/bin/pip3 --version
pip 19.3.1 from /home/pythonista/.local/lib/python3.7/site-packages/pip (python 3.7)

$ pip{2,3} install --user --upgrade 'pip<10'
...
Successfully installed pip-9.0.3

$ /usr/bin/pip --version
pip 9.0.3 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ /usr/bin/pip2 --version
pip 9.0.3 from /home/pythonista/.local/lib/python2.7/site-packages (python 2.7)

$ /usr/bin/pip3 --version
pip 9.0.3 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ pip{2,3} install --user --upgrade 'pip<9'
...
Successfully installed pip-8.1.2

$ /usr/bin/pip --version
pip 8.1.2 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)

$ /usr/bin/pip2 --version
pip 8.1.2 from /home/pythonista/.local/lib/python2.7/site-packages (python 2.7)

$ /usr/bin/pip3 --version
pip 8.1.2 from /home/pythonista/.local/lib/python3.7/site-packages (python 3.7)
2019-11-11 11:49:09 +01:00
Miro Hrončok
36d098078c Skip python2-virtualenv tests 2019-07-29 14:54:20 +02:00
Miro Hrončok
b5e9f71561 Fedora CI: Stop testing on Python 2.6 2019-07-29 11:59:42 +02:00
Fedora Release Engineering
776d4ae9a3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 15:12:09 +00:00
Miro Hrončok
8fc8d4526b Make /usr/bin/pip Python 3 2019-07-22 14:48:51 +02:00
Petr Viktorin
5813f49ff1 Use correct Python versions 2019-07-15 18:06:26 +02:00
Petr Viktorin
23345c5b9c Recommend libcrypt.so.1 for manylinux1 compatibility 2019-07-15 17:09:43 +02:00
Miro Hrončok
853f763a7e Remove a redundant second WARNING prefix form the root warning
It is added automatically since 19.1.
2019-06-10 14:50:04 +02:00
Miro Hrončok
de5ce17674 Fix root warning when pip is invoked via python -m pip
Fixes https://github.com/pypa/pip/issues/6576
2019-06-10 13:09:38 +02:00
Miro Hrončok
fa2f84fe5b Update to 19.1.1 (#1706995) 2019-05-15 16:47:48 +02:00
Miro Hrončok
a2422cfdac Update to 19.1 (#1702525) 2019-04-25 15:33:26 +02:00
Miro Hrončok
9f86bca8b1 Pytest 4 compatibility
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1694177
2019-04-15 17:56:04 +02:00
Miro Hrončok
7093fad249 BR python3-rpm-generators manually 2019-03-15 11:01:39 +01:00
Miro Hrončok
53928d9a4a Update to 19.0.3 (#1679277)
No vendored libraries changed.
2019-03-06 11:04:14 +01:00
Miro Hrončok
85a78b8c13 Fedora CI: Workaround for fedora-ci/general #31
https://pagure.io/fedora-ci/general/issue/31
2019-03-01 11:15:05 +01:00
Miro Hrončok
038fce3b5d FTBFS fix: Avoid creating .orig files in /usr/bin 2019-02-28 12:05:59 +01:00
Miro Hrončok
bbe9e6d297 Update to 19.0.2 (#1668492) 2019-02-13 13:04:06 +01:00
Miro Hrončok
3af98288df Test pip on Python 3.8 2019-02-09 20:15:59 +01:00
Fedora Release Engineering
047f5659ab - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 08:21:07 +00:00
Miro Hrončok
c75c71ee16 Use the system level root certificate instead of the one bundled in certifi
https://bugzilla.redhat.com/show_bug.cgi?id=1655253
2018-12-14 14:36:52 +01:00
Miro Hrončok
1d76c3e182 Test if pipenv work (when updating pip) 2018-11-29 14:55:24 +01:00
Miro Hrončok
f3b44339db Enable most of the tests in %check 2018-11-22 17:34:07 +01:00
Miro Hrončok
82235d4efa Update to 18.1 (#1652089) 2018-11-22 13:58:09 +01:00
Miro Hrončok
51d3b539d4 Add a script that makes it easier to track bundled libs (uses pyp2rpm) 2018-11-22 13:08:59 +01:00
Michal Cyprian
50d9d64d96 Subject: Prevent removing of the system packages installed under /usr/lib
when pip install -U is executed.

Resolves: rhbz#1550368
2018-09-21 14:54:31 +02:00
Miro Hrončok
ae152c5ccf Enable basic venv smoke test in the CI 2018-09-04 11:45:35 +02:00
Miro Hrončok
32a574d0df Only build the wheel once 2018-08-15 15:27:19 +02:00
Miro Hrončok
3e1ef986b4 No more with python3
There is no point of building this without python3 and this makes
the spec a bit more readable.

Also:

- only have one %python_wheelname (can be split in future if needed)
- use pythonX -m pytest instead of py.test-X.Y
2018-08-15 14:45:08 +02:00
Miro Hrončok
6186a480fa Create python-pip-wheel package with the wheel 2018-08-15 13:28:54 +02:00
Miro Hrončok
710463c247 Remove redundant "Unicode"" from License 2018-07-31 15:48:01 +02:00
Marcel Plch
2e7f501aa1 Update to 18.0 2018-07-31 12:17:18 +02:00
Fedora Release Engineering
ffbc804f81 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 01:25:03 +00:00
Miro Hrončok
2b109131d3 Rebuilt for Python 3.7 2018-06-18 09:25:27 +02:00
Miro Hrončok
cc52c4fc2d Bootstrap for Python 3.7 2018-06-13 18:55:50 +02:00
Miro Hrončok
1d697f0af5 Bootstrap for Python 3.7 2018-06-13 18:34:34 +02:00
Miro Hrončok
0318944ef9 Only do 4b288bd when not bootstrapping 2018-05-12 01:22:06 +02:00
Miro Hrončok
4b288bd347 When pip is run outside of venv, don't show the upgrade warning
This is a fix for https://bugzilla.redhat.com/show_bug.cgi?id=1573755

1. We put "rpm" inside pip's INSTALLER instead of "pip"

2. From pip, we check what's in INSTALLER and only show the warning
   if it's "pip".

When a venv is cearted, pip is installed from wheel (trough rewheel),
INSTALLER contains "pip".

When virtualenv is used, pip is installed from the Interwebz via pip,
so INSTALLER contains "pip".

Upstream issue https://github.com/pypa/pip/issues/5346
2018-05-04 14:36:05 +02:00
Miro Hrončok
d02d7aa312 Allow to import pip10's main from pip9's /usr/bin/pip
Users are upgrading pip9 to pip10 by various manners,
one of them is `pip install --user --upgrade pip`.

If they do that and they run `pip` or  `pip3`, the one from /usr/bin is used.
However that's the one from this RPM package (pip9) and the import in there
fails (it tries to import from ~/.local, but pip10 is there with a bit
different API).

We add a patch as a dirty workaround to make /usr/bin/pip* work with
both pip9 (from this RPM) and pip10 (from whatever).

A proper fix is to put ~/.local/bin in front of /usr/bin in the PATH,
however others are against that and we cannot change it for existing
installs/user homes anyway.

This is a workaround for:
 * https://bugzilla.redhat.com/show_bug.cgi?id=1569488
 * https://bugzilla.redhat.com/show_bug.cgi?id=1571650

Patch is applied in %install, because /usr/bin/pip* are entrypoints.
2018-05-04 13:42:21 +02:00
Charalampos Stratakis
3989bcbcc0 Update to 9.0.3 2018-03-29 15:18:38 +02:00
Lumir Balhar
2611854c44 Include built HTML documentation (in the new -docs subpackage) and man page 2018-02-22 15:19:17 +01:00
Fedora Release Engineering
86e88e4c46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 09:48:53 +00:00
Charalampos Stratakis
dab9696043 Reintroduce the ipaddress module in the python3 subpackage
as it is used within python3's upstream test suite.
2017-12-04 15:54:44 +01:00
Charalampos Stratakis
5fc56f6e70 Add virtual provides for all the libraries that pip bundles.
Remove ordereddict bundle as it is only required for python <=2.6.

Remove ipaddress library from the python3 build as it only required on python2.

Changed some dependency names from python-* to the python2-* namespace.

Resolves: rhbz#1096912
2017-11-28 17:58:55 +01:00