-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·72 lines (56 loc) · 2.35 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
#!/usr/bin/env python3
import re
from codecs import open
from sys import argv
from setuptools import find_packages, setup
def main():
if len(argv) >= 2 and argv[1] == 'pypi':
from subprocess import run
from shutil import rmtree
for x in ('build', 'dist', 'autoit.egg-info'):
rmtree(x, ignore_errors=True)
run('python3 setup.py sdist', shell=True)
run('python3 setup.py bdist_wheel', shell=True)
run('twine upload dist/*', shell=True)
for x in ('build', 'dist', 'autoit.egg-info'):
rmtree(x, ignore_errors=True)
else:
# Get the long description from the README file
with open('README.rst', 'r', encoding='utf-8') as f:
long_description = f.read()
with open('ait/version.py', 'r', encoding='utf-8') as f:
version = re.search(r"^__version__\s*=\s*'(.*)'.*$",
f.read(), flags=re.MULTILINE).group(1)
setup(
name='autoit',
version=version,
description="Automate it with Python",
long_description=long_description,
url='https://github.com/Lonami/autoit',
download_url='https://github.com/Lonami/autoit/releases',
author='Lonami Exo',
author_email='[email protected]',
license='MIT',
# See https://stackoverflow.com/a/40300957/4759433
# -> https://www.python.org/dev/peps/pep-0345/#requires-python
# -> http://setuptools.readthedocs.io/en/latest/setuptools.html
python_requires='>=3.5',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Communications :: Chat',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='gui mouse keyboard automation automate',
packages=find_packages(),
install_requires=[]
)
if __name__ == '__main__':
main()