Skip to content

Commit

Permalink
Update traits-stubs setup.py file for release (#1709)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdickinson committed Aug 12, 2022
1 parent 60eec74 commit 22aff4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions traits-stubs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@


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


if __name__ == "__main__":
setuptools.setup(
name="traits-stubs",
version="6.1.0",
version="6.4.0",
url="https://github.com/enthought/traits",
author="Enthought",
author_email="info@enthought.com",
Expand All @@ -39,6 +39,9 @@ def get_long_description():
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering
Topic :: Software Development
Expand All @@ -62,9 +65,11 @@ def get_long_description():
packages=[
"traits-stubs",
"traits_stubs_tests",
"traits_stubs_tests.examples",
],
package_data={"traits-stubs": ["./*.pyi", "./**/*.pyi"]},
package_data={
"traits-stubs": ["*.pyi"],
"traits_stubs_tests": ["examples/*.py", "numpy_examples/*.py"],
},
license="BSD",
python_requires=">=3.6",
)
Empty file.

0 comments on commit 22aff4e

Please sign in to comment.