reubano / meza

A Python toolkit for processing tabular data
MIT License
416 stars 32 forks source link

Missing dependency "future" on Python 2.7 #24

Closed laurent-laporte-pro closed 8 months ago

laurent-laporte-pro commented 5 years ago

Hi,

When installing Meza v0.41.1 on Python 2.7, the dependency "future" is not installed (but required).

To reproduce (for instance on Windows but the problem is the same on Linux):

D:\Laurent\Projets\virtualenv>C:\Python27\python.exe -m virtualenv meza
New python executable in D:\Laurent\Projets\virtualenv\meza\Scripts\python.exe
Installing setuptools, pip, wheel...done.

D:\Laurent\Projets\virtualenv>meza\Scripts\activate

(meza) D:\Laurent\Projets\virtualenv>pip --version
pip 19.0.1 from d:\laurent\projets\virtualenv\meza\lib\site-packages\pip (python 2.7)

(meza) D:\Laurent\Projets\virtualenv>pip install meza==0.41.1
[...]

(meza) D:\Laurent\Projets\virtualenv>pip list
Package                       Version
----------------------------- ----------
backports.functools-lru-cache 1.5
beautifulsoup4                4.7.1
certifi                       2018.11.29
chardet                       3.0.4
dbfread                       2.0.4
idna                          2.8
ijson                         2.3
meza                          0.41.1
pip                           19.0.1
pygogo                        0.12.0
python-dateutil               2.7.5
python-slugify                1.2.6
PyYAML                        3.13
requests                      2.21.0
setuptools                    40.7.1
six                           1.12.0
soupsieve                     1.7.3
Unidecode                     1.0.23
urllib3                       1.24.1
wheel                         0.32.3
xlrd                          1.2.0

As you can see, future is missing.

The problem occurs because the Wheel meta info is not valid.

If you want to install "future" only for Python 2.7, your requirements should be:

    'future>=0.16.0,<1.0.0; python_version < "3"'

See:

reubano commented 4 years ago

Thanks for the info. Just dropped support for py2 via a56b927. However, I'm happy to accept a PR off of v0.41.1 (cb28f487).

jaraco commented 8 months ago

It's been four years. It's probably not worth considering Python 2.7 any longer.