-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
90 lines (78 loc) · 2.76 KB
/
setup.py
File metadata and controls
90 lines (78 loc) · 2.76 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#Gets setuptools
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import sys, os
readme=long_description=open("README.rst").read()
test_requirements = [
# TODO: put package test requirements here
]
#Needed to add to package_data
def add_to_package_data(pkg, roots):
"""Generic function to find package_data.
All of the files under each of the `roots` will be declared as package
data for package `pkg`.
"""
data = []
for root in roots:
for dirname, _, files in os.walk(os.path.join(pkg, root)):
for fname in files:
data.append(os.path.relpath(os.path.join(dirname, fname), pkg))
return {pkg: data}
setup(
name='modwsgideploy',
version='3.18.21',
keywords='apache2 modwsgi/libapache2-mod-wsgi-py3 pyramid deploy script',
author='Lukasz Szybalski',
author_email='szybalski@gmail.com',
url='http://lucasmanual.com/mywiki/modwsgideploy',
description="Deploy Pyramid via apache2 and modwsgi.",
long_description=readme,
license='BSD',
#packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
packages=[
'modwsgideploy',
],
package_dir={'modwsgideploy':
'modwsgideploy'},
#package_data=add_to_package_data("{{cookiecutter.folder_name}}")
#This causes to be included in bdist, vs Manifest.in only gets included in sdist
# data_files=[('{{cookiecutter.folder_name}}', ['*']),
# ('config', ['cfg/data.cfg']),
# ('/etc/init.d', ['init-script'])],
include_package_data=True,
zip_safe=False,
install_requires=[
#"cheetah>=2.0" ,
#"pastescript>=2.0",#Moving to cookiecutter
"cookiecutter>=1.5",
"mako",
'Click>=6.0',
# -*- Extra requirements: -*-
],
entry_points={
'console_scripts':[
'modwsgideploy=modwsgideploy.cli:main'
#'hello=modwsgideploy:say_hello'
],
},
classifiers=[ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
test_suite='tests',
tests_require=test_requirements
#"""
# [paste.global_paster_command]
# modwsgi_deploy = modwsgideploy.commands:ModwsgiCommand
#""",
)