fastly / fastly-py

A Fastly API client for Python
https://pypi.org/project/fastly/
MIT License
77 stars 59 forks source link

Missing required dependencies from package metadata #98

Closed dtmistry closed 1 month ago

dtmistry commented 10 months ago

Version

4.2.2

What happened

When installing the 4.2.2 version, the required dependencies are not resolved. For e.g.

12:10 $ pip install fastly
Looking in indexes: https://local-pypi-repo/artifactory/api/pypi/pypi-repos/simple
Collecting fastly
  Downloading https://local-pypi-repo/artifactory/api/pypi/pypi-repos/packages/packages/22/ef/651e717cba0fbf73ad1a23256b1224860aa1172e5c521482d4b870d75153/fastly-4.2.2-py3-none-any.whl (2.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 7.9 MB/s eta 0:00:00
Installing collected packages: fastly
Successfully installed fastly-4.2.2

I would expect urllib3 and python-dateutil to be installed as per the setup config here.

The missing package metadata (and the dependencies) results in import errors

Python 3.9.13 (main, Jan 31 2023, 15:38:49)
[Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fastly
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/dmistry/.pyenv/versions/gh-py-libs-39/lib/python3.9/site-packages/fastly/__init__.py", line 16, in <module>
    from fastly.api_client import ApiClient
  File "/Users/dmistry/.pyenv/versions/gh-py-libs-39/lib/python3.9/site-packages/fastly/api_client.py", line 20, in <module>
    from urllib3.fields import RequestField
ModuleNotFoundError: No module named 'urllib3'
>>>