Skip to content

Commit 9c3af86

Browse files
fix: setup.py should generate importable packages named <project>_client [#492, #520, #521]. Thanks @tedo-benchling & @Leem0sh!
1 parent 2c157aa commit 9c3af86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: openapi_python_client/templates/setup.py.jinja

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pathlib
22

3-
from setuptools import find_packages, setup
3+
from setuptools import setup
44

55
here = pathlib.Path(__file__).parent.resolve()
66
long_description = (here / "README.md").read_text(encoding="utf-8")
@@ -11,8 +11,7 @@ setup(
1111
description="{{ package_description }}",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
14-
package_dir={"": "{{ package_name }}"},
15-
packages=find_packages(where="{{ package_name }}"),
14+
packages=["{{ package_name }}"],
1615
python_requires=">=3.6, <4",
1716
install_requires=["httpx >= 0.15.0, < 0.21.0", "attrs >= 20.1.0, < 22.0.0", "python-dateutil >= 2.8.0, < 3"],
1817
package_data={"": ["CHANGELOG.md"], "{{ package_name }}": ["py.typed"]},

0 commit comments

Comments
 (0)