|
2 | 2 | """Setup script for pompy package.""" |
3 | 3 |
|
4 | 4 | from setuptools import setup |
| 5 | +from os import path |
| 6 | +from io import open |
5 | 7 |
|
6 | | -if __name__ == '__main__': |
7 | | - setup(name='pompy', |
8 | | - description='Puff-based odour plume model', |
9 | | - author='Matt Graham', |
10 | | - url='https://github.com/InsectRobotics/pompy', |
11 | | - packages=['pompy']) |
12 | 8 |
|
| 9 | +here = path.abspath(path.dirname(__file__)) |
| 10 | + |
| 11 | +with open(path.join(here, 'docs', 'description.rst'), encoding='utf-8') as fh: |
| 12 | + long_description = fh.read() |
| 13 | + |
| 14 | +setup( |
| 15 | + name='pompy', |
| 16 | + version='0.1.0', |
| 17 | + description='Puff-based odour plume model', |
| 18 | + long_description=long_description, |
| 19 | + long_description_content_type='text/x-rst', |
| 20 | + author='Matt Graham', |
| 21 | + url='https://github.com/InsectRobotics/pompy', |
| 22 | + packages=['pompy'], |
| 23 | + install_requires=['numpy', 'scipy'], |
| 24 | + classifiers=[ |
| 25 | + 'Programming Language :: Python :: 2', |
| 26 | + 'Programming Language :: Python :: 2.7', |
| 27 | + 'Programming Language :: Python :: 3', |
| 28 | + 'Programming Language :: Python :: 3.4', |
| 29 | + 'Programming Language :: Python :: 3.5', |
| 30 | + 'Programming Language :: Python :: 3.6', |
| 31 | + 'Programming Language :: Python :: 3.7', |
| 32 | + 'License :: OSI Approved :: MIT License', |
| 33 | + 'Topic :: Scientific/Engineering', |
| 34 | + 'Intended Audience :: Science/Research', |
| 35 | + ], |
| 36 | + keywords='simulation plume navigation', |
| 37 | + project_urls={ |
| 38 | + 'Documentation': 'https://pompy-docs.readthedocs.io/en/latest/', |
| 39 | + 'Source': 'https://github.com/InsectRobotics/pompy', |
| 40 | + } |
| 41 | +) |
0 commit comments