This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
56 lines (50 loc) · 1.85 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
#!/usr/bin/env python3
# Author: mozman
# Copyright (c) 2010-2020 by Manfred Moitzi
# License: MIT License
# `python setup.py install` should build the C extension if you have installed Cython
import os
from setuptools import setup
from setuptools import Extension
try:
from Cython.Distutils import build_ext
ext_modules = [Extension("bintrees.cython_trees", ["bintrees/ctrees.c", "bintrees/cython_trees.pyx"]),
]
commands = {'build_ext': build_ext}
except ImportError:
ext_modules = []
commands = {}
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='bintrees',
version='2.2.0',
description='Package provides Binary-, RedBlack- and AVL-Trees in Python and Cython.',
author='mozman',
url='https://github.com/mozman/bintrees.git',
download_url='https://github.com/mozman/bintrees/releases',
author_email='[email protected]',
python_requires='>=3.6',
cmdclass=commands,
ext_modules=ext_modules,
packages=['bintrees'],
long_description=read('README.rst')+read('NEWS.rst'),
platforms="OS Independent",
license="MIT License",
classifiers=[
"Development Status :: 7 - Inactive",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Cython",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)