cmanaha / python-elasticsearch-logger

Python Elasticsearch handler for the standard python logging framework
Other
232 stars 115 forks source link

Fix installing via Poetry on python 3.4+ #75

Open lassevalentini opened 4 years ago

lassevalentini commented 4 years ago

When installing via Poetry, the package enum is added to the package lock even though it cannot be installed for newer versions of python.

It seems to happen because the pypi endpoint returns enum as a dependency for all versions of python (under info/requires_dist).

I've fixed it by using an environment marker to the enum dependency instead of calculating it in setup.py