-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
110 lines (89 loc) · 3.18 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Always prefer setuptools over distutils
import os
from codecs import open
from glob import glob
import pyauth
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.rst'), encoding = 'utf-8') as f:
long_description = f.read()
# Icon files to add to system
icon_files = []
# Large program icons plus icon bundles
files = glob('pyauth/images/*.png')
entry = ('share/icons/hicolor/512x512/apps', files)
icon_files.append(entry)
# Specific sizes of icons
for s in [16, 24, 32, 48, 64, 128, 256]:
files = glob('pyauth/images/{0}x{0}/*.png'.format(str(s)))
entry = ('share/icons/hicolor/{0}x{0}/apps'.format(str(s)), files)
icon_files.append(entry)
setup(
name = pyauth.__program_name__,
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version = pyauth.__version__ + pyauth.__version_tag__,
description = 'Google Authenticator (TOTP) desktop client',
long_description = long_description,
# The project's main homepage.
url = 'https://github.com/tknarr/PyAuth',
# Author details
author = 'Todd Knarr',
author_email = 'tknarr@silverglass.org',
# Choose your license
license = 'GPLv3+',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
'Topic :: Security',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
# Other classifiers
'Environment :: X11 Applications',
'Operating System :: Unix',
],
keywords = 'authentication totp hotp 2fa',
packages = find_packages(exclude = ['contrib', 'docs', 'tests*']),
install_requires = [
'wxPython~=3.0',
'pyotp~=2.2',
'cryptography~=2.3',
'qrcode~=6.0',
'Pillow~=5.3',
'zbarlight~=2.1'
],
package_data = {
'pyauth': ['LICENSE.html',
'images/*.ico',
'images/PyAuth-systray*.png'
]
},
data_files = icon_files + [
('share/doc/' + pyauth.__program_name__,
['README.rst',
'pyauth/LICENSE.html',
'TODO.md',
'VERSIONS.md',
'PyAuth.desktop'
])
],
entry_points = {
'gui_scripts': [
'PyAuth=pyauth.__main__:main',
],
}
)