-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (39 loc) · 1.33 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
import os
from setuptools import find_packages, setup
def get_requirements(file_path: str) -> list[str]:
"This function will return the list of packages"
print(f"Looking for requirements file at: {os.path.abspath(file_path)}")
requirements = []
with open(file_path) as file_obj:
requirements = file_obj.readlines()
requirements = [
requirement.replace("\n", "") for requirement in requirements
] # noqa
if "-e ." in requirements:
requirements.remove("-e .")
return requirements
setup(
name="SecureLogs",
version="0.0.2",
description="A logging library with trace ID support and FastAPI middleware.", # noqa
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Happy Sharma",
author_email="happycse54@gmail.com",
url="https://github.com/Happy-Kumar-Sharma/trace-logger",
keywords=[
"secure logging",
"SecureLogs",
"python logging module",
"best logging library",
"mask sensitive values",
],
packages=find_packages(),
install_requires=get_requirements("requirements.txt"),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)