-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
60 lines (54 loc) · 1.87 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
55
56
57
58
59
60
# -*- coding: utf-8 -*-
"""setup.py for python-gpsdshm."""
NAME = 'gpsdshm'
VERSION = '0.2'
LICENSE = 'BSD License'
AUTHOR = 'Markus Juenemann'
EMAIL = '[email protected]'
DESCRIPTION = 'Python interface to gpsd shared memory'
URL = 'https://github.com/mjuenema/python-gpsdshm'
from setuptools import setup, Extension
shmmodule = Extension('gpsdshm._shm', sources=['gpsdshm/shm.c', 'gpsdshm/shm_wrap.c'],)
from os.path import join, dirname
README = open(join(dirname(__file__), 'README.rst')).read()
HISTORY = open('HISTORY.rst').read().replace('.. :changelog:', '')
REQUIREMENTS = open(join(dirname(__file__), 'requirements.txt')).read().split()
TEST_REQUIREMENTS = open(join(dirname(__file__), 'test_requirements.txt')).read().split()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=README + '\n\n' + HISTORY,
author=AUTHOR,
author_email=EMAIL,
url=URL,
packages=[
NAME,
],
package_dir={NAME: NAME},
include_package_data=True,
install_requires=REQUIREMENTS,
ext_modules=[shmmodule],
py_modules=[NAME],
license=LICENSE,
zip_safe=False,
keywords='gpsd, shared memory',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: Unix',
'Topic :: Software Development :: Libraries',
'Programming Language :: C',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=TEST_REQUIREMENTS
)