meza icon indicating copy to clipboard operation
meza copied to clipboard

Missing dependency "future" on Python 2.7

Open laurent-laporte-pro opened this issue 6 years ago • 1 comments

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:

  • The documentation: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-platform-specific-dependencies
  • StackOverFlow: https://stackoverflow.com/a/32643122/1513933

laurent-laporte-pro avatar Jan 29 '19 08:01 laurent-laporte-pro

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).

reubano avatar Jul 07 '20 00:07 reubano

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

jaraco avatar Feb 18 '24 22:02 jaraco