-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (34 loc) · 1.07 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
from os import path
from subprocess import check_output
from setuptools import setup
__version__ = '1.2.0'
with open('./requirements.txt') as f:
required = f.read().splitlines()
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
try:
__version__ = (
check_output(['git', 'describe', '--tags']).strip().decode().replace('v', '')
)
except Exception:
pass
setup(
name='ipams',
version=__version__,
description='Tool to query multiple IPAMs.',
long_description=long_description,
long_description_content_type='text/markdown',
author='rwxd',
author_email='rwxd@pm.me',
url='https://github.com/rwxd/ipams',
license='MIT',
packages=['ipams'],
install_requires=required,
entry_points={'console_scripts': ['ipams = ipams.__main__:main']},
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)