-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
38 lines (34 loc) · 1.26 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
from setuptools import find_packages, setup
import os
version = {}
with open(os.path.abspath("src"+os.path.sep+"pyawscron"+os.path.sep+"version.py")) as fp:
exec(fp.read(), version)
try:
assert "." in version['__version__']
except AssertionError:
raise AssertionError("Failed to obtain version.")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
if __name__ == "__main__":
setup(
name="pyawscron",
version=version['__version__'],
author="Michael Martin",
author_email="[email protected]",
description="An AWS Cron Parser",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pitchblack408/pyawscron",
project_urls={
"Bug Tracker": "https://github.com/pitchblack408/pyawscron/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6",
install_requires=["python-dateutil>=2.8.1"],
)