keflavich / FITS_tools

Simple scipy and python based tools for FITS image manipulation
17 stars 12 forks source link

Version of FITS-tools incompatible with pip #7

Open hackermd opened 7 years ago

hackermd commented 7 years ago

When installing the FITS-tools package (https://pypi.python.org/pypi/FITS_tools/0.0.dev258) via pip, the version is not correctly handled.

pip install FITS-tools==0.0dev258
Collecting FITS-tools==0.0dev258
  Downloading FITS_tools-0.0.dev258.tar.gz (207kB)
    100% |████████████████████████████████| 215kB 1.1MB/s
  Requested FITS-tools==0.0dev258 from https://pypi.python.org/packages/56/60/b235a9fc82d9fdaa096049dc4f1791640e78c0ce62f4fed7b6fccdcbaeb3/FITS_tools-0.0.dev258.tar.gz#md5=79e377f0667b3f795b6df10c608c2d25, but installing version None

When I then freeze the environment, I get a different, incorrect version, which cannot be installed:

pip freeze
FITS-tools==0.0.dev0
keflavich commented 7 years ago

I've uploaded a new version to pypi. Try it now?

hackermd commented 7 years ago

Still doesn't work, unfortunately:

pip install fits_tools                                                                                                 
Collecting fits_tools
Collecting astropy (from fits_tools)
Collecting numpy>=1.7.0 (from astropy->fits_tools)
  Using cached numpy-1.12.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: numpy, astropy, fits-tools
Successfully installed astropy-1.3.2 fits-tools-0.0.dev0 numpy-1.12.1
pip freeze
appdirs==1.4.3
astropy==1.3.2
FITS-tools==0.0.dev0
numpy==1.12.1
packaging==16.8
pyparsing==2.2.0
six==1.10.0
pip install FITS-tools==0.0.dev0
Collecting FITS-tools==0.0.dev0
  Could not find a version that satisfies the requirement FITS-tools==0.0.dev0 (from versions: 0.0.dev143, 0.0.dev258, 0.0.dev262, 0.0.dev282)
No matching distribution found for FITS-tools==0.0.dev0
hackermd commented 7 years ago

You may want to look into recommended versioning scheme.

keflavich commented 7 years ago

That's the wrong version. v0.1 is on pypi now. Maybe something was locally cached?

keflavich commented 7 years ago

Also, the .dev extension is used across astropy; I don't think it is a problem.

hackermd commented 7 years ago

I repeated the installation in a clean virtual environment with cache disabled:

pip install FITS_tools --no-cache-dir
Collecting FITS_tools
  Downloading FITS_tools-0.0.dev282.tar.gz (195kB)
    100% |████████████████████████████████| 204kB 1.6MB/s
Collecting astropy (from FITS_tools)
  Downloading astropy-1.3.2.tar.gz (8.4MB)
    100% |████████████████████████████████| 8.4MB 1.5MB/s
Collecting numpy>=1.7.0 (from astropy->FITS_tools)
  Downloading numpy-1.12.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.4MB)
    100% |████████████████████████████████| 4.4MB 1.3MB/s
Installing collected packages: numpy, astropy, FITS-tools
  Running setup.py install for astropy ... done
  Running setup.py install for FITS-tools ... done
Successfully installed FITS-tools-0.0.dev0 astropy-1.3.2 numpy-1.12.1
pip freeze
appdirs==1.4.3
astropy==1.3.2
FITS-tools==0.0.dev0
numpy==1.12.1
packaging==16.8
pyparsing==2.2.0
six==1.10.0
pip install FITS-tools==0.0.dev0
Collecting FITS-tools==0.0.dev0
  Could not find a version that satisfies the requirement FITS-tools==0.0.dev0 (from versions: 0.0.dev143, 0.0.dev258, 0.0.dev262, 0.0.dev282)
No matching distribution found for FITS-tools==0.0.dev0
keflavich commented 7 years ago

I don't understand this. The problem is obviously:

Collecting FITS_tools
  Downloading FITS_tools-0.0.dev282.tar.gz (195kB)
    100% |████████████████████████████████| 204kB 1.6MB/s

which is simply out of date. Is pypi doing something wrong?