-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (31 loc) · 1.1 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
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import re, 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 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.6',
'Intended Audience :: System Administrators'
],
url='https://github.com/proh4cktive/upki-cli',
packages=find_packages(),
license='MIT',
install_requires=requirements
)