-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
57 lines (49 loc) · 1.84 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
#!/usr/bin/env python
import pathlib
from setuptools import setup, find_packages
def get_requirement(name):
with open(f"requirements/{name}.txt") as fp:
return [line.strip() for line in fp.readlines() if not line.startswith("#")]
def get_requirements(requirements):
contents = []
for requirement in requirements:
contents.extend(get_requirement(requirement))
return contents
setup(
name="aws-log-parser",
version="2.3.0",
description="Parse AWS CloudFront and LoadBalancer logs into Python dataclasses",
long_description=(pathlib.Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/dpetzold/aws-log-parser",
author="Derrick Petzold",
author_email="[email protected]",
license="Apache",
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=get_requirement("install"),
setup_requires=get_requirement("setup"),
tests_require=get_requirement("test"),
extras_require={
"dev": (get_requirements(["dev", "test", "cli"])),
"cli": get_requirement("cli"),
},
entry_points={
"console_scripts": [
"aws-log-parser=aws_log_parser.cli.main:main",
]
},
)