|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -from distutils.core import setup |
| 2 | +from os import path |
| 3 | +from setuptools import setup |
| 4 | +from codecs import open |
| 5 | + |
| 6 | +here = path.abspath(path.dirname(__file__)) |
| 7 | +# Get the long description from the README file |
| 8 | +with open(path.join(here, 'README.rst'), encoding='utf-8') as readme: |
| 9 | + long_description = readme.read() |
3 | 10 |
|
4 | 11 | setup(
|
5 | 12 | name='pypozyx',
|
6 | 13 | packages=['pypozyx', 'pypozyx.definitions',
|
7 |
| - 'pypozyx.structures', 'pypozyx'], |
| 14 | + 'pypozyx.structures'], |
8 | 15 | version='1.1.0',
|
9 | 16 | description='Python library for Pozyx devices',
|
| 17 | + install_requires=[ |
| 18 | + 'pyserial>=3.0' |
| 19 | + ], |
| 20 | + long_description=long_description, |
10 | 21 | author='Laurent Van Acker',
|
| 22 | + license='GPLv3', |
11 | 23 |
|
12 |
| - url = 'https://github.com/pozyxLabs/Pozyx-Python-library', |
| 24 | + url='https://github.com/pozyxLabs/Pozyx-Python-library', |
13 | 25 | download_url='https://github.com/pozyxLabs/Pozyx-Python-library/archive/v1.0.tar.gz',
|
14 | 26 | keywords=['pozyx', 'serial', 'positioning', 'localisation'],
|
15 | 27 | classifiers=[
|
16 | 28 | 'Programming Language :: Python',
|
17 | 29 | 'Development Status :: 5 - Production/Stable',
|
18 | 30 | 'Intended Audience :: End Users/Desktop',
|
19 | 31 | 'Operating System :: OS Independent',
|
| 32 | + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', |
20 | 33 | 'Topic :: Software Development :: Libraries :: Python Modules',
|
21 | 34 | 'Topic :: Scientific/Engineering',
|
22 | 35 | ],
|
23 |
| - long_description="""\ |
24 |
| - Pozyx Python library, used to interface with the Pozyx without need of an arduino. |
25 |
| - Currently supports USB (serial), planned I2C support. |
26 | 36 |
|
27 |
| - Both Python 2 and 3 are supported. |
28 |
| - """ |
29 | 37 | )
|
0 commit comments