-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (67 loc) · 2.24 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
73
74
75
76
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MPL-2.0
# Copyright 2021 John Mille<[email protected]>
"""The setup script for SFTP Composer"""
import os
import re
from setuptools import setup, find_packages
DIR_HERE = os.path.abspath(os.path.dirname(__file__))
# REMOVE UNSUPPORTED RST syntax
REF_REGX = re.compile(r"(\:ref\:)")
try:
with open(f"{DIR_HERE}/README.rst", encoding="utf-8") as readme_file:
readme = readme_file.read()
readme = REF_REGX.sub("", readme)
except FileNotFoundError:
readme = "ECS ComposeX"
try:
with open(f"{DIR_HERE}/HISTORY.rst", encoding="utf-8") as history_file:
history = history_file.read()
except FileNotFoundError:
history = "Latest packaged version."
requirements = []
with open(f"{DIR_HERE}/requirements.txt", "r") as req_fd:
for line in req_fd:
requirements.append(line.strip())
test_requirements = []
try:
with open(f"{DIR_HERE}/requirements_dev.txt", "r") as req_fd:
for line in req_fd:
test_requirements.append(line.strip())
except FileNotFoundError:
print("Failed to load dev requirements. Skipping")
setup_requirements = []
setup(
author="John Preston",
author_email="[email protected]",
python_requires=">=3.7",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
description="Render Secrets for AWS SFTP integration",
entry_points={
"console_scripts": [
"sftp_composer=sftp_composer.cli:main",
],
},
install_requires=requirements,
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="sftp_composer",
name="sftp_composer",
packages=find_packages(include=["sftp_composer", "sftp_composer.*"], where="src"),
package_dir={"": "src"},
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/johnpreston/sftp_composer",
version="0.0.1",
zip_safe=False,
)