-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
85 lines (78 loc) · 2.09 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from setuptools import setup
from setuptools.extension import Extension
setup_requires = [
'cython>=0.x',
'pytest-runner',
]
install_requires = [
'ujson',
]
tests_require = [
'hypothesis',
'pytest-benchmark',
'pytest',
]
extensions = [
Extension(
"jsonsubset.deps.xxhash_cython.xxhash",
[
'jsonsubset/deps/xxhash_cython/xxhash.pyx',
'jsonsubset/deps/xxhash_cython/xxHash/xxhash.c'
],
include_dirs = ["jsonsubset/deps/xxhash_cython/xxHash"],
extra_compile_args=["-O3"]
),
Extension(
"jsonsubset.subset",
['jsonsubset/subset.pyx'],
language='c++',
extra_compile_args=["-O3"]
),
Extension(
"jsonsubset.json_parser",
['jsonsubset/json_parser.pyx'],
language='c++',
extra_compile_args=["-O3"]
),
]
setup(
name='jsonsubset',
version='0.1.1',
url='https://github.com/kawmarco/jsonsubset',
description="Extract and parse specific fields from a JSON string ",
author="Marco Kawajiri",
keywords=[
'jsonsubset',
'json',
'select',
],
license="MIT license",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Cython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=[
"jsonsubset",
"jsonsubset.deps.xxhash_cython",
],
package_data={
'jsonsubset': ['*.pxd'],
"jsonsubset.deps.xxhash_cython": ['*.pxd'],
},
package_dir={
'jsonsubset': 'jsonsubset',
'jsonsubset.deps.xxhash_cython': 'jsonsubset/deps/xxhash_cython',
},
ext_modules=extensions,
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_require,
)