-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (48 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
52
from setuptools import setup, Extension
import os
try:
from Cython.Build import cythonize
except ImportError:
cython_modules = [
Extension('arrex.dtypes', ['arrex/dtypes.c']),
Extension('arrex.list', ['arrex/list.c']),
Extension('arrex.numbers', ['arrex/numbers.c']),
]
else:
cython_modules = cythonize(['arrex/dtypes.pyx', 'arrex/list.pyx', 'arrex/numbers.pyx'], annotate=True)
setup(
# package declaration
name = 'arrex',
version = '0.5.2',
python_requires='>=3.8',
tests_require = [
'pnprint>=1.1',
'pyglm>=1.2',
'numpy>=1.1',
],
# sources declaration
packages = ["arrex"],
package_data = {
"arrex": ['*.h', '*.c', '*.cpp', '*.pyx', '*.pxd'],
'': ['COPYING', 'COPYING.LESSER', 'README'],
},
ext_modules = cython_modules,
# metadata for pypi
author = 'Jimy Byerley',
author_email = '[email protected]',
url = 'https://github.com/jimy-byerley/arrex',
license = "GNU LGPL v3",
description = "typed arrays using any custom type as element type",
long_description = open('README.md', encoding='utf-8').read(),
long_description_content_type = 'text/markdown',
keywords='buffer array list dynamic dtype serialization numeric',
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)