forked from altendky/pyqt-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 1.5 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
import os
import sys
import build
import setuptools
import vcversioner
version = vcversioner.find_version(
version_module_paths=['_version.py'],
vcs_args=['git', '--git-dir', '%(root)s/.git', 'describe',
'--tags', '--long', '--abbrev=999'],
)
def pad_version(v):
split = v.split('.')
return '.'.join(split + ['0'] * (3 - len(split)))
version = '.'.join((
pad_version(os.environ['PYQT5_VERSION']),
version.version,
))
sys.stderr.write('another stderr test from {}\n'.format(__file__))
build.main()
with open('README.rst') as f:
readme = f.read()
setuptools.setup(
name="pyqt5-tools",
description="Tools to supplement the official PyQt5 wheels",
long_description=readme,
long_description_content_type='text/x-rst',
url='https://github.com/altendky/pyqt5-tools',
author="Kyle Altendorf",
author_email='[email protected]',
license='GPLv3',
classifiers=[
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
("License :: OSI Approved :: "
"GNU General Public License v3 (GPLv3)"),
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Topic :: Software Development',
'Topic :: Utilities'
],
keywords='pyqt5 qt designer',
packages=['pyqt5-tools'],
version=version,
include_package_data=True,
# data_files=buildinfo.data_files()
# scripts=[
# {scripts}
# 'pyqt5-tools/designer.exe'
# ]
)