-
Notifications
You must be signed in to change notification settings - Fork 137
/
setup.py
56 lines (49 loc) · 1.83 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
51
52
53
54
55
56
#!/usr/bin/env python
# encoding: utf-8
'''
@author: 风起
@contact: [email protected]
@File: setup.py
@Time: 2021/7/24
'''
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
def find_packages(where='.'):
# os.walk -> list[(dirname, list[subdirs], list[files])]
return [folder.replace("/", ".").lstrip(".")
for (folder, _, fils) in os.walk(where)
if "__init__.py" in fils]
from kunyu.config.__version__ import __version__
DEPENDENCIES = open('requirements.txt', 'r', encoding='utf-8').read().split('\n')
README = open('README.md', 'r', encoding='utf-8').read()
setup(
name='kunyu',
version=__version__,
description='kunyu is Cyberspace Resources Surveying and Mapping auxiliary tools',
long_description=README,
long_description_content_type='text/markdown',
author='风起 <[email protected]>',
url='',
packages=find_packages(),
include_package_data=True,
entry_points={'console_scripts': ['kunyu=kunyu.console:main']},
install_requires=DEPENDENCIES,
keywords=['Cyberspace Resources', 'zoomeye', 'kunyu'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)