-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (49 loc) · 1.75 KB
/
setup.py
File metadata and controls
54 lines (49 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
"""Setup script for miniupdate."""
from pathlib import Path
from setuptools import setup, find_packages
# Read README
readme_path = Path(__file__).parent / "README.md"
if readme_path.exists():
with open(readme_path, "r", encoding="utf-8") as f:
long_description = f.read()
else:
long_description = "Minimal patch check script for virtual guests"
# Read requirements
requirements_path = Path(__file__).parent / "requirements.txt"
if requirements_path.exists():
with open(requirements_path, "r", encoding="utf-8") as f:
requirements = [
line.strip() for line in f if line.strip() and not line.startswith("#")
]
else:
requirements = ["paramiko>=3.0.0", "PyYAML>=6.0", "toml>=0.10.2", "click>=8.0.0"]
setup(
name="miniupdate",
version="0.1.0",
author="Matt C",
description="Minimal patch check script for virtual guests",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.7",
install_requires=requirements,
entry_points={
"console_scripts": [
"miniupdate=miniupdate.main:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
"Topic :: System :: Systems Administration",
"Topic :: System :: Monitoring",
],
)