forked from joaotgoncalves/python-hcl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (46 loc) · 1.7 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
import os.path
from setuptools import setup, find_packages
this_directory = os.path.abspath(os.path.dirname(__file__))
def get_long_description():
"""Reads the long description from the README"""
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as file:
return file.read()
def get_requirements():
"""Reads the installation requirements from requirements.txt"""
with open(
os.path.join(this_directory, "requirements.txt"), encoding="utf8"
) as reqfile:
return [
line
for line in reqfile.read().split("\n")
if not line.startswith(("#", "-"))
]
setup(
name="glitch-python-hcl2",
version="0.2.2",
author="João Gonçalves",
author_email="[email protected]",
url="https://github.com/joaotgoncalves/python-hcl2",
license="MIT",
classifiers=[
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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="",
python_requires=">=3.7",
packages=find_packages(),
include_package_data=True,
description="A parser for HCL2",
long_description=get_long_description(),
long_description_content_type="text/markdown",
install_requires=get_requirements(),
)