-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (65 loc) · 2.13 KB
/
setup.py
File metadata and controls
79 lines (65 loc) · 2.13 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
# @Author: JanKinCai
# @Date: 2019-12-12 21:04:25
# @Last Modified by: JanKinCai
# @Last Modified time: 2019-12-26 11:57:41
import os
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
def read_requirements(path: str) -> list:
"""
read requirements/
:param path(str): path
:return: list
"""
requires = []
with open(path) as f:
install_requires = f.read().split("\n")
for ir in install_requires:
if "-r" in ir:
path = os.path.join(os.path.split(path)[0], ir.split(" ")[1])
requires.extend(read_requirements(path))
else:
ir and requires.append(ir)
return requires
setup(
name="interact-cli",
version="0.5.0",
author="jankincai",
author_email="jankincai12@gmail.com",
maintainer="jankincai",
maintainer_email="jankincai12@gmail.com",
url="https://github.com/caizhengxin/interact-cli",
download_url="https://github.com/caizhengxin/interact-cli.git",
license="BSD",
description="Interactive command line tool.",
long_description=long_description,
keywords=[
"interact-cli",
"interact",
"cli",
],
zip_safe=False,
packages=find_packages(),
install_requires=read_requirements("requirements/publish.txt"),
include_package_data=True, # MANIFEST.in
project_urls={
"Documentation": "https://interact-cli.readthedocs.io",
"Source Code": "https://github.com/caizhengxin/interact-cli",
},
platforms="any",
classifiers=[
'Development Status :: 4 - Beta',
"Environment :: Console",
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)