Skip to content

Commit

Permalink
Stop using find_namespace_packages
Browse files Browse the repository at this point in the history
This provides compatibility with older versions of setuptools.

fixes pulp#248
  • Loading branch information
mdellweg committed May 20, 2021
1 parent 3be6072 commit b5b2bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/248.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use ``find_packages`` instead of ``find_namespace_packages`` in setup to be compatible with ``setuptools<39.2.0``.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from setuptools import find_namespace_packages, setup
from setuptools import find_packages, setup

packages = find_namespace_packages(include=["pulpcore.cli.*"]) + ["pytest_pulp_cli"]
# Old versions of setuptools do not provide `find_namespace_packages`
# see https://github.com/pulp/pulp-cli/issues/248
# packages = find_namespace_packages(include=["pulpcore.cli.*"]) + ["pytest_pulp_cli"]
plugins = find_packages(where="pulpcore/cli")
packages = [f"pulpcore.cli.{plugin}" for plugin in plugins] + ["pytest_pulp_cli"]

long_description = ""
with open("README.md") as readme:
Expand Down

0 comments on commit b5b2bf8

Please sign in to comment.