Skip to content

Make PyPI installation work on Python 2 #1833 - #1835

Merged
pombredanne merged 99 commits into
developfrom
1833-install-pypi-py27
Jul 6, 2020
Merged

Make PyPI installation work on Python 2 #1833 #1835
pombredanne merged 99 commits into
developfrom
1833-install-pypi-py27

Conversation

@pombredanne

@pombredanne pombredanne commented Nov 19, 2019

Copy link
Copy Markdown
Member

This PR is a fix for #1833 to properly install plugins on Python 2.
There is in fact some updates as plugins are moved to their own repos, we add new native wheels for windows64 and update the deps. And #335 to support Windows64.
Along the way there are a few other things fixed such as #1971 and extractcode support for 7z on case insensitive macOS filesystems

It also tries to speed up the CI test runs by cleaning some of them.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Thsi takes forevere to complete

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also resolve conflicts
This si for #1833

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
These are not needed and are too big. Remove a few other
unused reqs.

Also move dev dependencies off to the dev dir

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Only use the Scripts dir that is created by virtualenv
Drop creating a junction as this is is error prone

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This is self-contained adn does not need setuptools/wheel and pip
It also works consistently with synced versions of its vendored deps
And  works consistently on Python 2 and 3.


Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
The latest url.py is written in C++
We do not need that speed but we need portability and pure
python. The new urlpy is a fork of url.py v.2.0 that has been ported to
Python 3 and works on 2 and 3.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@codecov

codecov Bot commented Apr 29, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1835 into develop will increase coverage by 0.02%.
The diff coverage is 87.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1835      +/-   ##
===========================================
+ Coverage    79.54%   79.57%   +0.02%     
===========================================
  Files          131      131              
  Lines        16978    16941      -37     
===========================================
- Hits         13505    13480      -25     
+ Misses        3473     3461      -12     
Impacted Files Coverage Δ
src/cluecode/finder.py 81.04% <87.50%> (-0.81%) ⬇️
src/packagedcode/npm.py 88.73% <0.00%> (-1.29%) ⬇️
src/scancode/api.py 96.17% <0.00%> (-1.28%) ⬇️
src/packagedcode/pypi.py 86.95% <0.00%> (-0.40%) ⬇️
src/scancode/cli.py 77.82% <0.00%> (-0.28%) ⬇️
src/packagedcode/rubygems.py 73.31% <0.00%> (+0.08%) ⬆️
src/licensedcode/index.py 73.64% <0.00%> (+0.22%) ⬆️
src/licensedcode/query.py 75.95% <0.00%> (+0.28%) ⬆️
src/licensedcode/models.py 82.75% <0.00%> (+0.36%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 694604c...694604c. Read the comment docs.

And improve testing and support of weird archives such as ar archives
with illegal names.
The enhancements to sevenzip extraction should allow things to work OK
on the new macOS AFS filesystem.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
7zip can now also have ERROR-prefixed messages in stderr/stdout

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
we now can handle correcty the shortcomings of Apple AFS FS

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the 1833-install-pypi-py27 branch from cbe4966 to 6d0324b Compare June 27, 2020 19:47
Somehow the file time is off by 2 hours and not GMT on Windows-only.
And only when we list entries.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Add CI debug for 7zip on macOS

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the 1833-install-pypi-py27 branch from dba5929 to db57ce5 Compare June 28, 2020 20:19
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
But run them on Windows 32 and 64 bits

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We no longer run coverage here for now. Also only run scancode.
Do not check certain URLs.
Set doc scripts as executable

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the 1833-install-pypi-py27 branch from 1e9f402 to 1bef9e2 Compare July 6, 2020 06:24
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
They are the causes of too frequent random build failures as they make
HTTP HEAD live calls and these can fail randomly.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne

Copy link
Copy Markdown
Member Author

At last this is passing on all OSes. Merging!

@pombredanne
pombredanne merged commit f488b6c into develop Jul 6, 2020
@pombredanne
pombredanne deleted the 1833-install-pypi-py27 branch July 6, 2020 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant