|
1 | 1 | #!/usr/bin/env python
|
2 | 2 | # -*- coding: utf-8 -*-
|
3 | 3 |
|
4 |
| -import re |
5 | 4 | import sys
|
6 | 5 | import platform
|
7 | 6 |
|
8 |
| -from os.path import join, dirname |
| 7 | +from setuptools import setup, find_packages, Extension |
9 | 8 |
|
10 |
| -from setuptools import setup, find_packages |
11 |
| -from setuptools.extension import Extension |
12 |
| - |
13 |
| -with open(join(dirname(__file__), 'thriftpy2', '__init__.py'), 'r') as f: |
14 |
| - version = re.match(r".*__version__ = '(.*?)'", f.read(), re.S).group(1) |
15 | 9 |
|
16 | 10 | install_requires = [
|
17 | 11 | "ply>=3.4,<4.0",
|
|
39 | 33 | "pytest>=6.1.1,<8.2.0",
|
40 | 34 | ] + tornado_requires
|
41 | 35 |
|
42 |
| - |
43 | 36 | cmdclass = {}
|
44 | 37 | ext_modules = []
|
45 | 38 |
|
|
74 | 67 | ["thriftpy2/protocol/cybin/cybin.c"],
|
75 | 68 | libraries=libraries))
|
76 | 69 |
|
77 |
| -setup(name="thriftpy2", |
78 |
| - version=version, |
79 |
| - description="Pure python implementation of Apache Thrift.", |
80 |
| - keywords="thrift python thriftpy thriftpy2", |
81 |
| - author="ThriftPy Organization", |
82 |
| - |
| 70 | +setup( |
83 | 71 | packages=find_packages(exclude=['benchmark', 'docs', 'tests']),
|
84 |
| - entry_points={}, |
85 |
| - url="https://thriftpy2.readthedocs.io/", |
86 |
| - project_urls={ |
87 |
| - "Source": "https://github.com/Thriftpy/thriftpy2", |
88 |
| - }, |
89 |
| - license="MIT", |
90 | 72 | zip_safe=False,
|
91 | 73 | long_description=open("README.rst").read(),
|
92 | 74 | install_requires=install_requires,
|
93 |
| - tests_require=tornado_requires, |
94 |
| - python_requires='>=3.6', |
95 | 75 | extras_require={
|
96 | 76 | "dev": dev_requires,
|
97 | 77 | "tornado": tornado_requires
|
98 | 78 | },
|
99 | 79 | cmdclass=cmdclass,
|
100 | 80 | ext_modules=ext_modules,
|
101 | 81 | include_package_data=True,
|
102 |
| - classifiers=[ |
103 |
| - "Topic :: Software Development", |
104 |
| - "Development Status :: 4 - Beta", |
105 |
| - "Intended Audience :: Developers", |
106 |
| - "License :: OSI Approved :: MIT License", |
107 |
| - "Programming Language :: Python :: 3", |
108 |
| - "Programming Language :: Python :: 3.6", |
109 |
| - "Programming Language :: Python :: 3.7", |
110 |
| - "Programming Language :: Python :: 3.8", |
111 |
| - "Programming Language :: Python :: 3.9", |
112 |
| - "Programming Language :: Python :: 3.10", |
113 |
| - "Programming Language :: Python :: 3.11", |
114 |
| - "Programming Language :: Python :: 3.12", |
115 |
| - "Programming Language :: Python :: Implementation :: CPython", |
116 |
| - "Programming Language :: Python :: Implementation :: PyPy", |
117 |
| - ]) |
| 82 | +) |
0 commit comments