-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (50 loc) · 1.8 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from systems_manager.version import __version__, __author__
from pathlib import Path
import os
import re
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
readme = Path("README.md").read_text()
version = __version__
requirements = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"), session=PipSession()
)
readme = re.sub(r"Version: [0-9]*\.[0-9]*\.[0-9][0-9]*", f"Version: {version}", readme)
with open("README.md", "w") as readme_file:
readme_file.write(readme)
description = (
"Systems-Manager will update your system and install/upgrade applications."
)
setup(
name="systems-manager",
version=f"{version}",
description=description,
long_description=f"{readme}",
long_description_content_type="text/markdown",
url="https://github.com/Knuckles-Team/systems-manager",
author=__author__,
author_email="[email protected]",
license="MIT",
packages=["systems_manager"],
include_package_data=True,
install_requires=[str(requirement.requirement) for requirement in requirements],
py_modules=["systems_manager"],
package_data={"systems_manager": ["systems_manager"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: Public Domain",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
entry_points={
"console_scripts": ["systems-manager = systems_manager.systems_manager:main"]
},
)