/
setup.py
39 lines (36 loc) · 1.26 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
from setuptools import setup, Extension
import os
with open('xxtea.c') as f:
for line in f:
if line.startswith("#define VERSION "):
VERSION = eval(line.rsplit(None, 1)[-1])
extension = Extension('xxtea', ['xxtea.c'])
setup(
name="xxtea",
version=VERSION,
author='Yue Du',
author_email='ifduyue@gmail.com',
url='https://github.com/ifduyue/xxtea',
description="xxtea is a simple block cipher",
long_description=open('README.rst', 'rb').read().decode('utf8'),
license="BSD",
keywords="xxtea",
ext_modules=[extension],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'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 :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
python_requires=">=3.6",
test_suite="tests",
)