-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
74 lines (65 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- coding: utf-8 -*-
"""
This module contains mr.migrator
"""
from setuptools import setup, find_packages
version = '1.3.dev0'
install_requires = [
'collective.transmogrifier',
'setuptools',
'z3c.autoinclude',
'zc.recipe.egg',
]
ploneui_requires = [
'plone.app.z3cform >=0.7.7,!=1.0' # handle group.__name__ being None
]
try:
# If we are using Python 2.5 or greater we can require configparser
eval("1 if True else 2") # http://stackoverflow.com/questions/446052
install_requires.append('configparser')
install_requires.append('zope.app.component') # BBB Only needed in
# Plone >= 4?
except SyntaxError:
# If we are using Python 2.4 or lower we cannot require configparser
pass
long_description = (
open('README.rst').read()
+ '\n' +
open('CONTRIBUTORS.rst').read()
+ '\n' +
open('CHANGES.rst').read()
)
entry_point = ''
entry_points = {"zc.buildout": ["default = mr.migrator.recipe:Recipe"],
'console_scripts': ['migrate = mr.migrator.runner:runner'],
"z3c.autoinclude.plugin": ["target = plone"],
}
tests_require = ['zope.testing', 'zc.buildout']
setup(
name='mr.migrator',
version=version,
description="Drive-by transmogrifiction made easy!",
long_description=long_description,
classifiers=[
'Framework :: Buildout',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: Zope Public License',
],
keywords='buildout crawler spider plone transmogrifierless',
author='Dylan Jay',
author_email='[email protected]',
maintainer='Alex Clark',
maintainer_email='[email protected]',
url='https://github.com/collective/mr.migrator',
license='GPL',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['mr'],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
# tests_require=tests_require,
extras_require=dict(plone=ploneui_requires),
# test_suite='mr.migrator.recipe.tests.test_docs.test_suite',
entry_points=entry_points,
)