Skip to content

Commit 74a20e8

Browse files
committed
setup.py for publishing packet
1 parent f38055c commit 74a20e8

File tree

2 files changed

+68
-9
lines changed

2 files changed

+68
-9
lines changed

setup.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2+
# SPDX-FileCopyrightText: Copyright (c) 2022 Gabriele Pongelli
3+
#
4+
# SPDX-License-Identifier: MIT
5+
6+
7+
"""A setuptools based setup module.
8+
9+
See:
10+
https://packaging.python.org/en/latest/distributing.html
11+
https://github.com/pypa/sampleproject
12+
"""
13+
14+
15+
from setuptools import setup, find_packages
16+
17+
# To use a consistent encoding
18+
from codecs import open
19+
from os import path
20+
21+
here = path.abspath(path.dirname(__file__))
22+
23+
# Get the long description from the README file
24+
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
25+
long_description = f.read()
26+
27+
setup(
28+
# Community Bundle Information
29+
name="circuitpython-gpio-expander",
30+
use_scm_version={
31+
# This is needed for the PyPI version munging in the Github Actions release.yml
32+
"git_describe_command": "git describe --tags --long",
33+
"local_scheme": "no-local-version",
34+
},
35+
setup_requires=["setuptools_scm"],
36+
description="uno due tre",
37+
long_description=long_description,
38+
long_description_content_type="text/x-rst",
39+
# The project's main homepage.
40+
url="https://github.com/gpongelli/CircuitPython_gpio_expander.git",
41+
# Author details
42+
author="Gabriele Pongelli",
43+
author_email="", # TODO: Add your email here
44+
install_requires=[
45+
"Adafruit-Blinka",
46+
"adafruit-circuitpython-busdevice",
47+
"adafruit-circuitpython-register",
48+
],
49+
# Choose your license
50+
license="MIT",
51+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
52+
classifiers=[
53+
"Development Status :: 3 - Alpha",
54+
"Intended Audience :: Developers",
55+
"Topic :: Software Development :: Libraries",
56+
"Topic :: System :: Hardware",
57+
"License :: OSI Approved :: MIT License",
58+
"Programming Language :: Python :: 3",
59+
],
60+
# What does your project relate to?
61+
keywords="adafruit blinka circuitpython micropython gpio_expander gpio expander ",
62+
63+
# You can just specify the packages manually here if your project is
64+
# simple. Or you can use find_packages().
65+
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
66+
# CHANGE `py_modules=['...']` TO `packages=['...']`
67+
py_modules=["gpio_expander"],
68+
)

setup.py.disabled

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)