This repository was archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (77 loc) · 2.3 KB
/
setup.py
File metadata and controls
86 lines (77 loc) · 2.3 KB
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
from setuptools import setup
try:
from pip.req import parse_requirements
except ImportError:
from pip._internal.req import parse_requirements
import sys
if sys.version_info == (3.3):
import warnings
warnings.warn(
"Warning: Python 3.3 is no longer officially supported by agutil"
)
elif sys.version_info<(3,4):
print("This python version is not supported:")
print(sys.version)
print("agutil requires python 3.4 or greater")
sys.exit(1)
long_desc = "A collection of python utilities"
import re, os
if os.path.isfile('README.rst'):
reader = open("README.rst", mode='r')
else:
reader = open("README.md", mode='r')
long_desc = reader.read()
reader.close()
from agutil import __version__ as version
setup(
name="agutil",
version=version,
packages=[
"agutil",
"agutil.io",
"agutil.io.src",
"agutil.parallel",
"agutil.parallel.src",
"agutil.security",
"agutil.security.src",
"agutil.src",
],
entry_points={
"console_scripts":[
"agutil-secure = agutil.security.console:main"
]
},
install_requires=[
str(package.req) for package in parse_requirements(
'requirements.txt',
session=''
)
],
tests_require=[
str(package.req) for package in parse_requirements(
'tests/requirements.txt',
session=''
)
],
test_suite='tests',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Security :: Cryptography',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only"
],
author = "Aaron Graubert",
author_email = "captianjroot@live.com",
description = "A collection of python utilities",
long_description = long_desc,
license = "MIT",
keywords = "range progress bar loading encryption decryption RSA AES io sockets utilities",
url = "https://github.com/agraubert/agutil", #
)