-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
56 lines (50 loc) · 1.72 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
import os
import sys
from setuptools import find_packages, setup
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
about = {}
with open(os.path.join(here, 'pyuac', '__version__.py'), 'r', encoding='utf-8') as fh:
exec(fh.read(), about)
install_requires = ['tee', 'decorator']
if "win" in sys.platform:
try:
import win32file
except ImportError:
# Only require pywin32 if not already installed
# version 223 introduced ability to install from pip
# TODO: not working as automatic dependency?
install_requires.append("pywin32>=224")
setup(
name=about['__title__'],
version=about['__version__'],
packages=find_packages(include=['pyuac']),
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
install_requires=install_requires,
test_suite='tests',
url=about['__url__'],
license=about['__license__'],
author=about['__author__'],
author_email=about['__author_email__'],
description=about['__description__'],
long_description=long_description,
long_description_content_type="text/markdown",
project_urls={
# 'Documentation': '',
'Source': 'https://github.com/Preston-Landers/pyuac',
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
# "Topic :: System :: Shells",
# "Topic :: Utilities",
],
)