-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
54 lines (47 loc) · 1.61 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
Setup script
How to upload new release
1. bump version with bump_version.sh
2. setup twine, see:https://blog.amedama.jp/entry/2017/12/31/175036
3. create zip file: python setup.py sdist
4. check upload possible: twine check dist/pyroombaadapter-0.1.2.tar.gz
5 upload: twine upload --repository pypi dist/pyroombaadapter-0.1.2.tar.gz
PyPI upload test
twine check dist/pyroombaadapter-0.1.2.tar.gz
twine upload --repository pypitest dist/pyroombaadapter-0.1.8.tar.gz
pip install --upgrade -i https://test.pypi.org/simple/ pyroombaadapter
"""
import os
from setuptools import setup, find_packages
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
# read README
try:
import pypandoc
readme = pypandoc.convert_file(PROJECT_PATH + '/README.md', 'rst')
except(IOError, ImportError):
readme = open(PROJECT_PATH + '/README.md').read()
# read VERSION
with open(PROJECT_PATH + "/VERSION", 'r') as fd:
VERSION = fd.readline().rstrip('\n')
setup(
name="pyroombaadapter",
version=VERSION,
url="https://github.com/AtsushiSakai/PyRoombaAdapter",
author="Atsushi Sakai",
author_email="[email protected]",
maintainer='Atsushi Sakai',
maintainer_email='[email protected]',
description="A Python library for Roomba Open Interface",
long_description=readme,
long_description_content_type="text/markdown",
python_requires='>3.6.0',
license="MIT",
keywords="python roomba",
packages=find_packages(),
install_requires=['pyserial'],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
],
test_suite='tests'
)