-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (58 loc) · 2.28 KB
/
setup.py
File metadata and controls
70 lines (58 loc) · 2.28 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for DjConChart.
After install the package you can use the command
djconchart_testserver
to instance of the django dev server with test data for DjConChart to see how
DjConChart works.
"""
from os import listdir, sep
from os.path import isfile
from setuptools import setup
from pip.req import parse_requirements
def get_files_in_dir(path):
"""
Return a list of filenames in a directory
"""
def filepath(path, filename):
"""
Creates full file path with path and filename
"""
return path + sep + filename
return (path,
[filepath(path, lfi) for lfi in listdir(path)
if isfile(filepath(path, lfi))])
INSTALL_REPS = parse_requirements('requirements.txt', session=False)
REPS = [str(ir.req) for ir in INSTALL_REPS]
setup(name='DjConChart',
version='0.1',
description='DjConChart is a Django based statistic '
'process control (SPC) server',
author='RedBeardCode',
author_email='s.farmbauer@red-beard-code.de',
url='https://github.com/RedBeardCode/DjConChart',
packages=['djcon_chart', 'control_chart', 'control_chart.tests'],
py_modules=['manage', 'conftest'],
install_requires=REPS,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
],
entry_points={'console_scripts':
['djconchart_test = manage:run_test_server']},
data_files=[get_files_in_dir('templates'),
get_files_in_dir('control_chart/templates'),
get_files_in_dir('samples_rsc'),
get_files_in_dir('static/css'),
get_files_in_dir('static/css/images'),
get_files_in_dir('static/fonts'),
get_files_in_dir('static/js'),
get_files_in_dir('static/js/vendor'),
get_files_in_dir('static/js/vendor/snippets'), ])