|
1 | 1 | # SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
2 | 2 | #
|
3 | 3 | # SPDX-License-Identifier: Unlicense
|
| 4 | +"""A setuptools based setup module. |
| 5 | +
|
| 6 | +See: |
| 7 | +https://packaging.python.org/en/latest/distributing.html |
| 8 | +https://github.com/pypa/sampleproject |
| 9 | +""" |
| 10 | + |
| 11 | +from setuptools import setup, find_packages |
| 12 | + |
| 13 | +# To use a consistent encoding |
| 14 | +from codecs import open |
| 15 | +from os import path |
| 16 | + |
| 17 | +here = path.abspath(path.dirname(__file__)) |
| 18 | + |
| 19 | +# Get the long description from the README file |
| 20 | +with open(path.join(here, "README.rst"), encoding="utf-8") as f: |
| 21 | + long_description = f.read() |
| 22 | + |
| 23 | +setup( |
| 24 | + name="sparkfun-circuitpython-qwiicas3935", |
| 25 | + use_scm_version={ |
| 26 | + # This is needed for the PyPI version munging in the Github Actions release.yml |
| 27 | + "git_describe_command": "git describe --tags --long", |
| 28 | + "local_scheme": "no-local-version", |
| 29 | + }, |
| 30 | + setup_requires=["setuptools_scm"], |
| 31 | + description="CircuitPython driver library for the Sparkfun AS3935 Lightning Detector", |
| 32 | + long_description=long_description, |
| 33 | + long_description_content_type="text/x-rst", |
| 34 | + # The project's main homepage. |
| 35 | + url="https://github.com/fourstix/Sparkfun_CircuitPython_QwiicAS3935", |
| 36 | + # Author details |
| 37 | + author="Gaston Williams", |
| 38 | + |
| 39 | + install_requires=[ |
| 40 | + "Adafruit-Blinka", |
| 41 | + "adafruit-circuitpython-busdevice", |
| 42 | + ], |
| 43 | + # Choose your license |
| 44 | + license="MIT", |
| 45 | + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 46 | + classifiers=[ |
| 47 | + "Development Status :: 3 - Alpha", |
| 48 | + "Intended Audience :: Developers", |
| 49 | + "Topic :: Software Development :: Libraries", |
| 50 | + "Topic :: System :: Hardware", |
| 51 | + "License :: OSI Approved :: MIT License", |
| 52 | + "Programming Language :: Python :: 3", |
| 53 | + "Programming Language :: Python :: 3.4", |
| 54 | + "Programming Language :: Python :: 3.5", |
| 55 | + ], |
| 56 | + # What does your project relate to? |
| 57 | + keywords="adafruit blinka circuitpython micropython qwiicas3935 sparkfun as3935 lightning", |
| 58 | + # You can just specify the packages manually here if your project is |
| 59 | + # simple. Or you can use find_packages(). |
| 60 | + py_modules=["sparkfun_qwiicas3935"], |
| 61 | +) |
4 | 62 |
|
5 | 63 | [tool.black]
|
6 | 64 | target-version = ['py35']
|
0 commit comments