-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (46 loc) · 1.59 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
""" Setup file for machineconfig package.
"""
import setuptools # type: ignore
from src.machineconfig import __version__
import platform
# this is a comment
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
install_requires = [
"rich", # required for pretty printing of many scripts.
"paramiko", # required by SSH
"gitpython", # required by repo commands
"pudb", # required by fire command
"pyfzf",
"clipboard",
"psutil",
"pydantic",
"fire", # required by fire command
"call-function-with-timeout",
"openai"
]
if platform.system() == "Windows":
# _ = install_n_import("win32api", "pywin32") # this is crucial for windows to pop up the concent window in case python was not run as admin.
install_requires.append("pywin32")
setuptools.setup(
name="machineconfig",
version=__version__,
author="Alex Al-Saffar",
author_email="[email protected]",
description="Dotfiles management package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/thisismygitrepo/machineconfig",
project_urls={
"Bug Tracker": "https://github.com/thisismygitrepo/machineconfig/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.9",
install_requires=install_requires,
)