-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·40 lines (37 loc) · 1.48 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
#!/usr/bin/env python2.7
import os
from setuptools import setup, find_packages
src_path = os.path.join('src', 'main', 'python')
def find_data_files(where='.'):
data_files = []
for dirpath, dirnames, filenames in os.walk(where):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if filenames and not '__init__.py' in filenames: #ignore package folders
for f in filenames:
if not f.startswith('.'): #ignore hidden files
data_files.append([dirpath.replace(src_path, '.'), [os.path.join(dirpath, f)]])
return data_files
setup(
version="0.0.1",
author="JobJobs",
author_email="jobjobs@c2f.com.br",
description=("Jobjobs"),
license="Proprietary",
url="http://www.jobjobs.com.br",
zip_safe=False,
package_dir={'c2f': os.path.join(src_path, 'c2f')},
packages=find_packages(src_path),
data_files=find_data_files(os.path.join(src_path, 'c2f', 'site')),
setup_requires=['nose>=1.0', 'nosexcover>=1.0', 'mockito>=0.5'],
install_requires=['setuptools', 'python-daemon>=1.5', 'jinja2>=2.5', 'bottle>=0.10', 'httplib2>=0.7'],
scripts=[os.path.join('src', 'main', 'scripts', 'run.sh')],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"Topic :: Internet :: WWW/HTTP",
"License :: Other/Proprietary License",
],
name="jobjobs"
)