This repository was archived by the owner on Feb 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
71 lines (63 loc) · 2.31 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
"""The setup script."""
import os
from io import open
from setuptools import setup, find_packages
REQUIREMENTS = ["Click>=8.1.1", "heroku3>=5.1.4", "colorama>=0.4.4"]
curr_dir = os.path.abspath(os.path.dirname(__file__))
def get_file_text(file_name):
with open(os.path.join(curr_dir, file_name), "r", encoding="utf-8") as in_file:
return in_file.read()
_version = {}
_version_file = os.path.join(curr_dir, "heroku_env", "__init__.py")
with open(_version_file) as fp:
exec(fp.read(), _version)
version = _version["__version__"]
setup(
name="heroku.env",
version=version,
description="CLI tool to manipulate environment variables on Heroku with local .env files",
long_description=get_file_text("README.rst")
+ "\n\n"
+ get_file_text("CHANGELOG.rst"),
long_description_content_type="text/x-rst",
author="Visesh Prasad",
author_email="[email protected]",
maintainer="Visesh Prasad",
maintainer_email="[email protected]",
license="MIT license",
packages=find_packages(include=["heroku_env"]),
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/viseshrp/heroku.env",
project_urls={
"Documentation": "https://github.com/viseshrp/heroku.env",
"Changelog": "https://github.com/viseshrp/heroku.env/blob/main/CHANGELOG.rst",
"Bug Tracker": "https://github.com/viseshrp/heroku.env/issues",
"Source Code": "https://github.com/viseshrp/heroku.env",
},
python_requires=">=3.7",
keywords="heroku.env heroku env herokuenv heroku_env environment variables load",
test_suite="tests",
tests_require=[
"pytest",
],
install_requires=REQUIREMENTS,
entry_points={
"console_scripts": [
"heroku.env=heroku_env.__main__:main",
],
},
)