diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-06-04 11:39:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-04 11:39:03 -0700 |
| commit | c5a4e19d6f76a09cba73149d5e3d4548da320899 (patch) | |
| tree | 42d4d2d202fb156b7f6f59b9489464cc28800e0f /setup.py | |
| parent | bcda5e133d0f4c13265cc927a4e9de9a77b187c6 (diff) | |
| parent | e8521c83797f0e54dca4ebc4750224c84a31457e (diff) | |
Merge pull request #1915 from jreese/rst2pyi
Use rst2pyi to generate type stubs and package
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..1e0d81da3 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +from datetime import datetime +from setuptools import setup +from pathlib import Path + +stub_root = Path("circuitpython-stubs") +stubs = [p.relative_to(stub_root).as_posix() for p in stub_root.glob("*.pyi")] + +now = datetime.utcnow() +version = now.strftime("%Y.%m.%d") + +setup( + name="circuitpython-stubs", + description="PEP 561 type stubs for CircuitPython", + url="https://github.com/adafruit/circuitpython", + maintainer="CircuitPythonistas", + author_email="circuitpython@adafruit.com", + version=version, + license="MIT", + package_data={"circuitpython-stubs": stubs}, + packages=["circuitpython-stubs"], + setup_requires=["setuptools>=38.6.0"], +) |
