forked from okke-formsma/django-chronograph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·56 lines (50 loc) · 1.79 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/python
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
import chronograph
import os
app_name = 'django-inoa-chronograph'
package_dir = 'chronograph'
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
packages = []
data_files = []
for dirpath, dirnames, filenames in os.walk(package_dir):
# Ignore PEP 3147 cache dirs and those whose names start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.') or dirname == '__pycache__':
del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(dirpath.split(os.sep)))
elif filenames:
data_files.append([os.sep.join(dirpath.split(os.sep)), [os.path.join(dirpath, f) for f in filenames]])
try:
readme_filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'pypi-readme.rst')
long_description = open(readme_filename).read()
except IOError:
long_description = None
description='Chronograph, a Django library for managing scheduled tasks (version mantained by Inoa)'
setup(
name=app_name,
version=chronograph.__version__,
description=description,
long_description=long_description or description,
url='https://github.com/joaofrancese/django-chronograph',
author='Inoa Sistemas',
author_email='[email protected]',
packages=packages,
install_requires=[
"Django >= 1.11.0",
],
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
data_files=data_files
)