Skip to content

Commit 4e0376a

Browse files
committed
Update traits-stubs setup.py file for release (#1709)
This PR updates the traits stubs setup.py file in preparation for releasing stubs to go alongside the Traits 6.4.0 release. We also remove the redundant __init__.py file from the examples directory - the Python files in this directory aren't intended to be used via import.
1 parent d5c1996 commit 4e0376a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

traits-stubs/setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313

1414
def get_long_description():
15-
""" Read long description from README.rst. """
15+
"""Read long description from README.rst."""
1616
with open("README.rst", "r", encoding="utf-8") as readme:
1717
return readme.read()
1818

1919

2020
if __name__ == "__main__":
2121
setuptools.setup(
2222
name="traits-stubs",
23-
version="6.1.0",
23+
version="6.4.0",
2424
url="https://github.com/enthought/traits",
2525
author="Enthought",
2626
author_email="[email protected]",
@@ -39,6 +39,9 @@ def get_long_description():
3939
Programming Language :: Python :: 3.6
4040
Programming Language :: Python :: 3.7
4141
Programming Language :: Python :: 3.8
42+
Programming Language :: Python :: 3.9
43+
Programming Language :: Python :: 3.10
44+
Programming Language :: Python :: 3.11
4245
Programming Language :: Python :: Implementation :: CPython
4346
Topic :: Scientific/Engineering
4447
Topic :: Software Development
@@ -62,9 +65,11 @@ def get_long_description():
6265
packages=[
6366
"traits-stubs",
6467
"traits_stubs_tests",
65-
"traits_stubs_tests.examples",
6668
],
67-
package_data={"traits-stubs": ["./*.pyi", "./**/*.pyi"]},
69+
package_data={
70+
"traits-stubs": ["*.pyi"],
71+
"traits_stubs_tests": ["examples/*.py", "numpy_examples/*.py"],
72+
},
6873
license="BSD",
6974
python_requires=">=3.6",
7075
)

traits-stubs/traits_stubs_tests/examples/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)