You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the following command that re-packages platformdirs 2.2.0 from the pip3 source and targeting debian results in the pip3 package being versioned as 0.0.0:
$ fpm --version
1.13.1
fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefix python3 --python-install-lib=/usr/lib/python3/dist-packages --python-install-bin=/usr/bin -t deb --deb-no-default-config-files -v 2.2.0 platformdirs
Created package {:path=>"python3-platformdirs_2.2.0_all.deb"}
Running the following command that re-packages platformdirs 2.2.0 from the pip3 source and targeting debian results in the pip3 package being versioned as 0.0.0:
$ fpm --version
1.13.1
fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefix python3 --python-install-lib=/usr/lib/python3/dist-packages --python-install-bin=/usr/bin -t deb --deb-no-default-config-files -v 2.2.0 platformdirs
Created package {:path=>"python3-platformdirs_2.2.0_all.deb"}
$ dpkg --contents python3-platformdirs_2.2.0_all.deb | grep egg
drwxrwxr-x 0/0 0 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/
-rw-rw-r-- 0/0 13 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/top_level.txt
-rw-rw-r-- 0/0 9172 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/PKG-INFO
-rw-rw-r-- 0/0 854 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/SOURCES.txt
-rw-rw-r-- 0/0 151 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/requires.txt
-rw-rw-r-- 0/0 1 2021-07-29 11:51 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/zip-safe
-rw-rw-r-- 0/0 1 2021-08-26 21:33 ./usr/lib/python3/dist-packages/platformdirs-0.0.0.egg-info/dependency_links.txt
Additionally the PKG-INFO file contains "Version: 0.0.0"
installing the fpm-created debian pkg, "pip3" list shows:
platformdirs (0.0.0)
However, when downloading the pip3 package directly
$ pip3 download platformdirs
$ unzip -l platformdirs-2.2.0-py3-none-any.whl | grep egg
Archive: platformdirs-2.2.0-py3-none-any.whl
Length Date Time Name
In extracting the whl, the METADATA file contains "Version: 2.2.0"
So I'm not sure where fpm is inferring the "0.0.0" version from since it breaks anything dependent on platformdirs > 0.0.0 (such as pylint).
The text was updated successfully, but these errors were encountered: