-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
executable file
·66 lines (58 loc) · 2.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
#!/usr/bin/env python
# vim: set filetype=python ts=4 sw=4
# -*- coding: utf-8 -*-
"""`tokendito` is in Github: <https://github.com/dowjones/tokendito>_."""
from codecs import open
import datetime
import os
import sys
from setuptools import find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding=sys.stdin.encoding) as f:
long_description = f.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
about = {}
with open(os.path.join(here, "tokendito", "__init__.py")) as f:
for line in f:
if line.startswith("__"):
split_line = line.strip().split(" = ")
about[split_line[0]] = "".join(split_line[1:]).replace('"', "")
if "DEVBUILD" in os.environ:
now = datetime.datetime.now()
about["__version__"] = about["__version__"] + ".dev" + now.strftime("%Y%m%d%H%M%S")
setup(
name="tokendito",
version=about["__version__"],
description=about["__description__"],
long_description=long_description,
long_description_content_type=about["__long_description_content_type__"],
url=about["__url__"],
author=about["__author__"],
author_email=about["__author_email__"],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Environment :: Console",
"Programming Language :: Python",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=["okta", "aws", "sts"],
packages=find_packages(exclude=["contrib", "docs", "tests", ".tox"]),
python_requires=">=3.7",
license=about["__license__"],
zip_safe=False,
install_requires=[required],
entry_points={
"console_scripts": ["tokendito=tokendito.__main__:main"],
},
)