| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- remove build & cache of commons (install from dirs instead) - fix install packages command
| Back | FazBrowse Home | New Git URL |
Context
Starting from version 69.3.0, Setuptools canonicalizes filenames of a source distribution according to PEP 625. Notably, all hyphens (-) are replaced with underscores (_) in the distribution name.
That leads to the following error when installing previously built common packages during a testing job of the build workflow:
If we run ls dist before pip install, we see the following content:
Although a simple fix of the pip install command would be enough, I've decided to eliminate caching altogether and replace it with direct installation from the corresponding directory. The caching doesn't save us anything:
PS > python -m venv env && ./env/bin/Activate.ps1 && measure-command { pip install ./dist/allure_python_commons-2.13.6.dev1+gf185ccc.tar.gz } Days : 0 Hours : 0 Minutes : 0 Seconds : 11 Milliseconds : 705 Ticks : 117050592 TotalDays : 0.000135475222222222 TotalHours : 0.00325140533333333 TotalMinutes : 0.19508432 TotalSeconds : 11.7050592 TotalMilliseconds : 11705.0592 PS > rm -rf env && python -m venv env && ./env/bin/Activate.ps1 && measure-command { pip install ./allure-python-commons } Days : 0 Hours : 0 Minutes : 0 Seconds : 10 Milliseconds : 378 Ticks : 103782877 TotalDays : 0.000120119070601852 TotalHours : 0.00288285769444444 TotalMinutes : 0.172971461666667 TotalSeconds : 10.3782877 TotalMilliseconds : 10378.2877In fact, it only makes the build longer and more complicated.