forked from arruda/django-structurer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (38 loc) · 1.56 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
import os
from distutils.core import setup
structurer_dir = 'django_structurer'
data_folder= os.path.join(structurer_dir,'data')
data_files = []
def helper_package_data(pkg,folder):
data = {pkg : []}
size = pkg.__len__() + 1
for dirpath, dirnames, filenames in os.walk(os.path.join(pkg,folder)):
temp = os.path.join(dirpath,"*.*")
data[pkg].append(temp[size:])
# print data
return data
for dirpath, dirnames, filenames in os.walk(data_folder):
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
setup(
name = "django_structurer",
version = "0.3.1",
author = "Felipe Arruda Pontes",
author_email = "[email protected]",
description = ("This app allow you to create your own custom django project structure, and then use it as you please."),
license = "MIT",
keywords = "django project structure",
url = "https://github.com/arruda/django-structurer",
packages=['django_structurer'],
scripts = ['bin/django-structure.py'],
package_data=helper_package_data('django_structurer','data'),
long_description="""The purpose of this app is to enable some custom script for manage.py and for django-admin.py(maybe?) that creates a different folder structure for Django.
This structure what I thought of a good one for projects that I'm working, and that possibly you are working too.""",
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
install_requires=[
'PyYAML==3.09'
],
)