Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (48 loc) · 1.75 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (48 loc) · 1.75 KB
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
import os
from setuptools import find_packages, setup
description = "Enhance your secret management with encrypted storage and flexible, user-friendly features."
readme = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme) as fh:
long_description = fh.read()
# Read install requirements from requirements.txt
def read_requirements(path: str) -> list[str]:
reqs = []
req_file = os.path.join(os.path.dirname(__file__), path)
if not os.path.exists(req_file):
return reqs
with open(req_file) as f:
for raw in f:
line = raw.strip()
if not line or line.startswith('#'):
continue
if line.startswith('-') or line.startswith('--'):
# Skip options like -r, --find-links, etc.
continue
if ' #' in line:
# Drop inline comments added by pip-compile
line = line.split(' #', 1)[0].strip()
reqs.append(line)
return reqs
setup(
name='netbox-secrets',
version='3.0.2',
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/Onemind-Services-LLC/netbox-secrets/',
author='Abhimanyu Saharan',
author_email='asaharan@onemindservices.com',
maintainer="Prince Kumar",
maintainer_email="pkumar@onemindservices.com",
license='Apache 2.0',
install_requires=read_requirements('requirements.txt'),
packages=find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
zip_safe=False,
)