-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
50 lines (44 loc) · 1.69 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
from setuptools import setup
import pathlib
base_dir = pathlib.Path(__file__).parent.resolve()
long_description = (base_dir / 'README.md').read_text(encoding='utf-8')
def get_version(location: str) -> str:
with open((base_dir / location).absolute().resolve()) as file:
for line in file.readlines():
if line.startswith('__version__'):
return line.split(' = ')[-1].strip().replace("\"", "")
else:
raise RuntimeError('Unable to find version string.')
setup(
name='whodap',
version=get_version('whodap/__init__.py'),
description='Simple RDAP Utility for Python',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/pogzyb/whodap',
author='Joseph Obarzanek',
author_email='[email protected]',
python_requires='>=3.6, <4',
keywords='security, whois, rdap, research',
install_requires=[
'httpx>=0.20.0',
'async_generator>=1.10; python_version < "3.7.0"'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Security',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
],
packages=['whodap'],
package_dir={'whodap': 'whodap'},
)