-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
50 lines (44 loc) · 1.51 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
import os
import re
import subprocess
import setuptools
jamf_version = (
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.strip()
)
try:
jamf_version = re.match("^[^-]*", jamf_version).group(0)
except:
print("No version found")
assert os.path.isfile("python_jamf/version.py")
if jamf_version != "":
with open("python_jamf/VERSION", "w", encoding="utf-8") as fh:
fh.write(f"{jamf_version}\n")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="python-jamf",
version=jamf_version,
author="The University of Utah",
author_email="mlib-its-mac@lists.utah.edu",
description="Python wrapper for Jamf Pro API",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/univ-of-utah-marriott-library-apple/python-jamf",
packages=setuptools.find_packages(),
package_data={"python_jamf": ["*.json", "VERSION"]},
include_package_data=True,
entry_points={"console_scripts": ["conf-python-jamf=python_jamf.setconfig:main"]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
],
python_requires=">=3.6",
install_requires=["requests>=2.24.0", "keyring>=23.0.0", "jps_api_wrapper>=1.0.6"],
)