-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (42 loc) · 1.46 KB
/
Copy pathsetup.py
File metadata and controls
47 lines (42 loc) · 1.46 KB
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
from setuptools import setup, find_packages, Extension
from cdatastructs import __version__ as VERSION
_description = (
'Simple data structures accessible from both Python and C. '
'Data in structures are stored as a primitive C types, so in '
'C you can compute data without Python overhead.'
)
try:
_long_description = open('README.rst', 'rb').read().decode('utf-8')
_long_description_content_type = 'text/x-rst'
except IOError:
_long_description = _description
_long_description_content_type = 'text/plain'
setup(
name='cdatastructs',
description=_description,
long_description=_long_description,
long_description_content_type=_long_description_content_type,
version=VERSION,
author='Jan Seifert',
author_email='jan.seifert@fotkyzcest.net',
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Programming Language :: C',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
zip_safe=False,
ext_modules=[
Extension(
name='cdatastructs.hashmap',
sources=['cdatastructs/_hashmap.c', 'cdatastructs/hashmap.c'],
),
],
)