-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
51 lines (36 loc) · 1.49 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
from setuptools import setup
from deviceidentifier import __version__
PACKAGE_NAME = 'deviceidentifier'
def markdown2rst(path):
try:
import pypandoc
return pypandoc.convert(path, 'rst', 'md')
except ImportError:
with open(path, 'r') as f:
return f.read()
def extract_requirements(path):
with open(path) as fp:
return [x.strip() for x in fp.read().split('\n') if not x.startswith('#')]
setup(
name=PACKAGE_NAME,
version=__version__,
description="Utils to manipulate and learn from assorted device identifier formats via Reincubate's DeviceIdentifier API.",
long_description=markdown2rst('README.md'),
url='https://github.com/reincubate/deviceidentifier-py',
author='Reincubate',
author_email='enterprise@reincubate.com',
license='Proprietary',
packages=[PACKAGE_NAME, ],
package_data={PACKAGE_NAME: [PACKAGE_NAME + '/*']},
include_package_data=True,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Utilities'],
install_requires=extract_requirements('requirements.txt'),
)