-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
70 lines (61 loc) · 1.95 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
from setuptools import setup
import os
try:
from stringify import stringify_py
except ImportError:
pass
requirements = []
with open('requirements.txt', 'r') as f:
for line in f.readlines():
requirements.append(line.strip())
# these are generally only used by devs
setup_requirements = [
'flake8 >= 3.5.0',
'stringify >= 0.1.1',
'sphinx >= 1.6',
'pytest >= 3.5'
]
# provide correct path for version
__version__ = None
here = os.path.dirname(os.path.dirname(__file__))
try:
exec(open(os.path.join(here, 'tk_tools/version.py')).read())
except FileNotFoundError:
# this is the path when installing into venv through pycharm
exec(open(os.path.join(here, 'tk_tools/tk_tools/version.py')).read())
with open('readme.md', 'r') as f:
readme = f.read()
# archive the _image files into 'tk_tools/images.py'
try:
stringify_py('images', 'tk_tools/images.py')
except NameError:
print('warning: stringify not present at time of install,'
' you may wish to run this script if tk_tools.images'
' needs to be regenerated')
setup(
name='tk_tools',
version=__version__,
description='Tkinter-native toolset and widget library',
long_description=readme,
long_description_content_type='text/markdown',
author='Jason R. Jones',
author_email='slightlynybbled@gmail.com',
url='https://github.com/slightlynybbled/tk_tools',
packages=['tk_tools'],
include_package_data=True,
install_requires=requirements,
setup_requires=setup_requirements,
zip_safe=True,
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Natural Language :: English'
],
keywords='tkinter gui widgets'
)