Skip to content

Commit 476fb22

Browse files
committed
Update README.rst and setup.py
1 parent 238b979 commit 476fb22

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Introduction
22
============
33
.. image:: https://readthedocs.org/projects/sparkfun-circuitpython-qwiicas3935/badge/?version=latest
4-
:target: https://circuitpython-qwiicas3935.readthedocs.io/
4+
:target: https://sparkfun-circuitpython-qwiicas3935.readthedocs.io/en/latest/
55
:alt: Documentation Status
66

77

setup.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,64 @@
11
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
22
#
33
# 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+
author_email="[email protected]",
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+
)
462

563
[tool.black]
664
target-version = ['py35']

0 commit comments

Comments
 (0)