-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
54 lines (48 loc) · 1.62 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
from glob import glob
from setuptools import setup, Extension
version = "0.4.3"
def readme():
with open("README.rst") as f:
return f.read()
include_dirs = ["include"]
sources = glob("*.pyx") + glob("src/*.c")
libraries = ["dl"]
setup(
name="greenify",
version=version,
description="Make C module compatible with gevent at runtime.",
long_description=readme(),
platforms=["Linux"],
classifiers=[
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Libraries",
],
author="Zhongbo Tian",
author_email="[email protected]",
url="https://github.com/douban/greenify",
download_url="https://github.com/douban/greenify/archive/%s.tar.gz" % version,
setup_requires=["Cython"],
install_requires=["gevent"],
ext_modules=[
Extension(
"greenify",
sources,
include_dirs=include_dirs,
libraries=libraries,
)
],
)