Skip to content

Commit 1952e72

Browse files
committed
Package for pypi
1 parent f868e7d commit 1952e72

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ dist/
99

1010
# Python egg metadata, regenerated from source files by setuptools.
1111
*.egg-info
12+
dist/
13+
build/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Serial communication with an Arduino: [Arduino Source Code](https://github.com/a
4242
python -m examples.arduino_serial
4343
```
4444

45-
### Bluetooth Example
45+
### Bluetooth Example with Two Computers
4646

47-
Dependency:
47+
Dependencies:
4848
```
4949
sudo apt-get install libbluetooth-dev bluez
5050
pip install pybluez

setup.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[metadata]
2+
# This includes the license file in the wheel.
3+
license_file = LICENSE
4+
5+
[bdist_wheel]
6+
# This flag says to generate wheels that support both Python 2 and Python
7+
# 3. If your code will not run unchanged on both Python 2 and 3, you will
8+
# need to generate separate wheels for each Python version that you
9+
# support.
10+
universal=1

setup.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
from setuptools import setup, find_packages
22

3+
# Create Package
4+
# rm dist/*
5+
# python setup.py sdist
6+
# python setup.py bdist_wheel
7+
# Upload
8+
# (test) twine upload --repository-url https://test.pypi.org/legacy/ dist/*
9+
# (release) twine upload dist/*
10+
11+
long_description = """
12+
Robust Arduino Serial is a simple and robust serial communication protocol.
13+
It was designed to make two arduinos communicate, but can also be useful when you want a computer (e.g. a Raspberry Pi) to communicate with an Arduino.
14+
https://medium.com/@araffin/simple-and-robust-computer-arduino-serial-communication-f91b95596788
15+
"""
316

417
setup(name="robust_serial",
518
packages=[package for package in find_packages()
@@ -11,8 +24,9 @@
1124
tests_require=['pytest'],
1225
author="Antonin RAFFIN",
1326
author_email="[email protected]",
14-
url="https://github.com/araffin/",
27+
url="https://github.com/araffin/arduino-robust-serial",
1528
description="Simple and Robust Serial Communication Protocol",
29+
long_description=long_description,
1630
keywords="serial hardware arduino RS232 communication protocol raspberry",
1731
license="MIT",
1832
version="0.1",

0 commit comments

Comments
 (0)