Skip to content

Commit f608983

Browse files
committed
configure pi-py builds and distribution
1 parent 15f78b8 commit f608983

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pip-delete-this-directory.txt
4242

4343
# Unit test / coverage reports
4444
htmlcov/
45+
junit/
4546
.tox/
4647
.nox/
4748
.coverage
@@ -97,6 +98,7 @@ ipython_config.py
9798
# having no cross-platform support, pipenv may install dependencies that don't work, or not
9899
# install all needed dependencies.
99100
#Pipfile.lock
101+
.pypirc
100102

101103
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
102104
__pypackages__/

MAKEFILE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ test: venv
1313

1414
coverage: venv
1515
${PYTHON} -m pytest test --doctest-modules --junitxml=junit/test-results.xml --cov=notecard --cov-report=xml --cov-report=html
16+
17+
run_build:
18+
${PYTHON} -m setup sdist bdist_wheel
19+
20+
deploy:
21+
${PYTHON} -m twine upload -r "pypi" --config-file .pypirc 'dist/*'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Python library for communicating with the Blues Wireless Notecard over serial or I²C.
44

55
![Build](https://github.com/blues/note-python/workflows/Python%20package/badge.svg)
6+
![Pyton Version Support](https://img.shields.io/pypi/pyversions/note-python)
7+
![PyPi Version](https://img.shields.io/pypi/v/note-python)
8+
![Wheel Support](https://img.shields.io/pypi/wheel/note-python)
69

710
This library allows you to control a Notecard by coding in Python and works in a desktop setting, on Single-Board Computers like the Raspberry Pi, and on Microcontrollers with MicroPython or CircuitPython support.
811

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ flake8==3.8.3
77
pytest==5.4.3
88
pytest-cov==2.8.1
99
filelock==3.0.12
10-
pydocstyle==5.0.2
10+
pydocstyle==5.0.2
11+
packaging==20.4

setup.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="note-python",
8+
version="1.0.0",
9+
author="Blues Inc.",
10+
author_email="[email protected]",
11+
description="Cross-platform Python Library for the Blues Wireless Notecard,",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/blues/note-python",
15+
packages=setuptools.find_packages(),
16+
classifiers=[
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3.5",
19+
"Programming Language :: Python :: 3.6",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"License :: OSI Approved :: MIT License",
23+
"Operating System :: OS Independent",
24+
"Intended Audience :: Developers",
25+
"Natural Language :: English",
26+
],
27+
python_requires='>=3.5',
28+
)

0 commit comments

Comments
 (0)