diff options
| author | John Reese <john@noswap.com> | 2019-05-11 20:00:22 -0700 |
|---|---|---|
| committer | John Reese <john@noswap.com> | 2019-05-25 21:32:06 -0700 |
| commit | 7f7665c1c02437e1b4717495f0de7d8f01933dd5 (patch) | |
| tree | 6cd24390d5248e65972f2bd416659e0a80a43d1a /setup.py | |
| parent | 63b253c33a2e56bc6c6ccb902d89d0c0b27f7d8f (diff) | |
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..780d97152 --- /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", + author="John Reese", + author_email="john@noswap.com", + version=version, + license="MIT", + package_data={"circuitpython-stubs": stubs}, + packages=["circuitpython-stubs"], + setup_requires=["setuptools>=38.6.0"], +)
\ No newline at end of file |
