-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (48 loc) · 1.47 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
import os
from setuptools import setup, Extension, find_packages
version = "0.1.1"
install_requires = [
]
test_requires = [
'pytest',
]
setup(
name='prejudice',
version=version,
author='Souheil CHELFOUH',
author_email='[email protected]',
url='https://github.com/HorsemanWSGI/prejudice',
download_url='http://pypi.python.org/pypi/prejudice',
description='Python/Cython predicate/guard/validation system.',
long_description=(open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.rst")).read()),
license='ZPL',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
ext_modules=[
Extension(
"prejudice.errors",
["src/prejudice/errors.c"],
extra_compile_args=["-O3"], # Max optimization when compiling.
),
Extension(
"prejudice.utils",
["src/prejudice/utils.c"],
extra_compile_args=["-O3"], # Max optimization when compiling.
),
],
install_requires=install_requires,
extras_require={
'test': test_requires,
},
)