forked from mtianyan/django-react-tyadmin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
41 lines (35 loc) · 1.23 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
from setuptools import setup, find_packages
from os.path import join, isfile
from os import walk
def package_files(directories):
paths = []
for item in directories:
if isfile(item):
paths.append(join('..', item))
continue
for (path, directories, filenames) in walk(item):
for filename in filenames:
paths.append(join('..', path, filename))
# print(paths)
return paths
setup(
name="tyadmin_api_cli",
version="0.8.0",
keywords=("pip", "mtianyan", "xadmin", "Django", "Antd", "Antd Design Pro"),
description="modern base on models django admin powered by Antd Design Pro",
long_description="modern base on models django admin powered by Antd Design Pro",
license="MIT Licence",
url="https://github.com/mtianyan/tyadmin_api_cli",
author="mtianyan",
author_email="[email protected]",
packages=find_packages(),
package_data={
'': package_files([
'tyadmin_api_cli/antd_full_templates/',
'tyadmin_api_cli/antd_page_templates/',
'tyadmin_api_cli/tyadmin_api_init/'
])
},
platforms="any",
install_requires=["django", "django-simple-captcha", "djangorestframework", "demjson"]
)