-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (36 loc) · 1.22 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
import os
from setuptools import find_packages, setup
def package_files(dirs):
paths = []
for directory in dirs:
for path, directories, filenames in os.walk(directory):
path = path.replace(directory, directory.split("/")[-1])
for filename in filenames:
paths.append(os.path.join(path, filename))
return paths
template_files = package_files(["cotidia/admin/templates", "cotidia/admin/static"])
setup(
name="cotidia-admin",
description="Admin tools for backend generation.",
version="1.0",
author="Guillaume Piot",
author_email="[email protected]",
url="https://code.cotidia.com/cotidia/admin/",
packages=find_packages(),
package_dir={"admin": "admin"},
package_data={"cotidia.admin": template_files},
namespace_packages=["cotidia"],
include_package_data=True,
install_requires=[
"django-betterforms==2.0",
"django-filter==2.4",
"django-extensions==2.1.*",
],
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Software Development",
],
)