Skip to content

Commit

Permalink
Fix dependencies (#81)
Browse files Browse the repository at this point in the history
* Remove obsolete setuptools from install_requires

Now that pkg_resources are no longer used, there is no need to depend
on setuptools at runtime.

* Fix version-conditional dependency on importlib-metadata

Use version markers to depend on importlib-metadata correctly.  Explicit
conditions mean that wheels built with setup.py will either have the dep
or not depending on what Python version they're built with, rather than
what version they're installed on.
  • Loading branch information
mgorny authored Feb 3, 2022
1 parent 7682dd7 commit 4b2f3a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@


install_requires = [
'setuptools',
'importlib-metadata;python_version<"3.8"',
]
if sys.version_info < (3, 8):
install_requires.append('importlib-metadata')
package_excludes = ['tests*', 'docs*']
packages = find_packages(exclude=package_excludes)

Expand Down

0 comments on commit 4b2f3a8

Please sign in to comment.