|
1 |
| -#!/usr/bin/env python |
| 1 | +#!/usr/bin/env python3 |
2 | 2 |
|
3 | 3 | from setuptools import setup, Extension
|
4 |
| -from os.path import dirname, join, abspath |
5 |
| - |
6 |
| - |
7 |
| -def get_text(name): |
8 |
| - root = abspath(dirname(__file__)) |
9 |
| - with open(join(root, 'src', name), 'rt') as f: |
10 |
| - return eval(f.read().strip()) |
11 |
| - |
12 | 4 |
|
13 | 5 | extra_compile_args = [
|
14 | 6 | '-std=c++11', '-O3', '-fPIC', '-ggdb1', '-pipe',
|
15 | 7 | '-fomit-frame-pointer', '-fstack-protector-strong',
|
16 | 8 | ]
|
17 | 9 |
|
18 |
| -name = 'pyjson5' |
19 |
| - |
20 | 10 | setup(
|
21 |
| - name=name, |
22 |
| - version=get_text('VERSION.inc'), |
23 |
| - long_description=get_text('DESCRIPTION.inc'), |
24 |
| - description='JSON5 serializer and parser for Python 3 written in Cython.', |
25 |
| - author='René Kijewski', |
26 |
| - |
27 |
| - maintainer='René Kijewski', |
28 |
| - maintainer_email='[email protected]', |
29 |
| - url='https://github.com/Kijewski/pyjson5', |
30 |
| - python_requires='~= 3.5', |
31 |
| - zip_safe=False, |
32 | 11 | ext_modules=[Extension(
|
33 |
| - name + '.' + name, |
34 |
| - sources=[name + '.pyx'], |
| 12 | + 'pyjson5.pyjson5', |
| 13 | + sources=['pyjson5.pyx'], |
35 | 14 | include_dirs=['src'],
|
36 | 15 | extra_compile_args=extra_compile_args,
|
37 | 16 | extra_link_args=extra_compile_args,
|
38 | 17 | language='c++',
|
39 | 18 | )],
|
40 |
| - platforms=['any'], |
41 |
| - license='Apache 2.0', |
42 |
| - classifiers=[ |
43 |
| - 'Development Status :: 5 - Production/Stable', |
44 |
| - 'Intended Audience :: Developers', |
45 |
| - 'Intended Audience :: System Administrators', |
46 |
| - 'License :: OSI Approved :: Apache Software License', |
47 |
| - 'Operating System :: OS Independent', |
48 |
| - 'Programming Language :: Cython', |
49 |
| - 'Programming Language :: JavaScript', |
50 |
| - 'Programming Language :: Python :: 3', |
51 |
| - 'Programming Language :: Python :: 3.5', |
52 |
| - 'Programming Language :: Python :: 3.6', |
53 |
| - 'Programming Language :: Python :: 3.7', |
54 |
| - 'Programming Language :: Python :: 3.8', |
55 |
| - 'Programming Language :: Python :: 3.9', |
56 |
| - 'Programming Language :: Python :: 3.10', |
57 |
| - 'Programming Language :: Python :: 3 :: Only', |
58 |
| - 'Programming Language :: Python :: Implementation :: CPython', |
59 |
| - 'Topic :: Text Processing :: General', |
60 |
| - ], |
61 |
| - packages=[name], |
62 |
| - package_dir={ |
63 |
| - '': 'src', |
64 |
| - }, |
65 |
| - package_data = { |
66 |
| - name: [ |
67 |
| - '__init__.pyi', |
68 |
| - 'py.typed', |
69 |
| - ], |
70 |
| - }, |
71 | 19 | )
|
0 commit comments