-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
50 lines (43 loc) · 1.46 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
import os
from setuptools import setup
base_dir = os.path.dirname(__file__)
about = {}
with open(os.path.join(base_dir, "destructify", "__init__.py")) as f:
exec(f.read(), about)
try:
long_description = open("README.rst", "r").read()
except Exception:
long_description = None
try:
import tkinter
except ImportError:
tkinter_available = False
else:
tkinter_available = True
setup(
name='destructify',
version=about['__version__'],
packages=['destructify',
'destructify.fields',
'destructify.structures',
'destructify.parsing'] +
['destructify.gui'] if tkinter_available else [],
url='https://github.com/ralphje/destructify',
download_url='https://github.com/ralphje/destructify/tarball/v' + about['__version__'],
license='MIT',
author='Ralph Broenink',
author_email='[email protected]',
description='A Pythonic way to define, parse and modify binary structures',
long_description=long_description,
keywords=['struct', 'bytes'],
install_requires=['lazy-object-proxy'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)