-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.29 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.29 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
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
Setup script for UPKI CLI Client.
"""
import re
import os
from setuptools import setup, find_packages
# Meta information
dirname = os.path.dirname(__file__)
# Retrieve all metadata from project
with open(os.path.join(dirname, "__metadata.py"), "rt") as meta_file:
metadata = dict(
re.findall(r"^__([a-z]+)__ = ['\"]([^'\"]*)['\"]", meta_file.read(), re.M)
)
# Get required packages from requirements.txt
# Make it compatible with setuptools and pip
with open(os.path.join(dirname, "requirements.txt")) as f:
requirements = f.read().splitlines()
setup(
name="upki-cli",
description="µPKI CLI client",
long_description=open("README.md").read(),
author=metadata["author"],
author_email=metadata["authoremail"],
version=metadata["version"],
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: System Administrators",
],
url="https://github.com/circle-rd/upki-cli",
packages=find_packages(),
license="MIT",
install_requires=requirements,
python_requires=">=3.11",
)