Commit c4961738 authored by Hanno Schlichting's avatar Hanno Schlichting

Split versions into prod and dev versions.

Automatically create a pip requirements file based on the prod versions.
parent 4034752b
......@@ -16,6 +16,7 @@ parts =
sphinx
checkversions
wsgi
requirements
sources-dir = develop
auto-checkout =
AccessControl
......@@ -151,3 +152,11 @@ eggs =
Paste
PasteDeploy
PasteScript
[requirements]
recipe = plone.recipe.command
command =
${zopepy:bin-directory}/${zopepy:interpreter} util.py
update-command = ${:command}
stop-on-error = yes
-e git+https://github.com/zopefoundation/Zope.git@master#egg=Zope2
AccessControl==3.0.12
Acquisition==4.2.2
BTrees==4.3.1
DateTime==4.1.1
DocumentTemplate==2.13.2
ExtensionClass==4.1.2
Missing==3.1
MultiMapping==3.0
Paste==2.0.3
PasteDeploy==1.5.2
PasteScript==2.0.2
Persistence==3.0a1
Products.BTreeFolder2==3.0
Products.ExternalMethod==3.0
Products.MailHost==3.0
Products.OFSP==3.0
Products.PythonScripts==3.0
Products.SiteErrorLog==3.0
Products.StandardCacheManagers==3.0
Products.ZCTextIndex==3.0
Products.ZCatalog==3.2
Record==3.1
RestrictedPython==3.6.0
WebOb==1.6.1
WebTest==2.0.21
ZConfig==3.1.0
ZEO==4.1.0
ZODB==4.3.1
ZopeUndo==4.1
docutils==0.12
five.globalrequest==1.0
initgroups==3.0
mechanize==0.2.5
persistent==4.2.1
python-gettext==3.0
pytz==2016.6.1
repoze.retry==1.4
repoze.tm2==2.1
repoze.who==2.3
six==1.10.0
tempstorage==3.0
transaction==1.6.1
unittest2==1.1.0
zExceptions==3.0
zLOG==3.0
zc.lockfile==1.2.1
zdaemon==4.1.0
zodbpickle==0.6.0
zope.annotation==4.4.1
zope.browser==2.1.0
zope.browsermenu==4.1.1
zope.browserpage==4.1.0
zope.browserresource==4.1.0
zope.cachedescriptors==4.1.0
zope.component==4.2.2
zope.componentvocabulary==2.0.0
zope.configuration==4.0.3
zope.container==4.1.0
zope.contentprovider==4.0.0
zope.contenttype==4.1.0
zope.deferredimport==4.1.0
zope.deprecation==4.1.2
zope.dottedname==4.1.0
zope.event==4.2.0
zope.exceptions==4.0.8
zope.filerepresentation==4.1.0
zope.formlib==4.3.0
zope.globalrequest==1.2
zope.i18n==4.1.0
zope.i18nmessageid==4.0.3
zope.interface==4.2.0
zope.lifecycleevent==4.1.0
zope.location==4.0.3
zope.pagetemplate==4.2.1
zope.processlifetime==2.1.0
zope.proxy==4.2.0
zope.ptresource==4.0.0
zope.publisher==4.3.0
zope.ramcache==2.1.0
zope.schema==4.4.2
zope.security==4.0.3
zope.sendmail==4.0.1
zope.sequencesort==4.0.1
zope.site==4.0.0
zope.size==4.1.0
zope.structuredtext==4.1.0
zope.tal==4.2.0
zope.tales==4.1.1
zope.testbrowser==4.0.4
zope.testing==4.5.0
zope.testrunner==4.5.1
zope.traversing==4.0.0
zope.viewlet==4.0.0
from ConfigParser import RawConfigParser
import os
HERE = os.path.abspath(os.path.dirname(__file__))
class CaseSensitiveParser(RawConfigParser):
def optionxform(self, value):
return value
def generate(in_, out):
in_file = os.path.join(HERE, in_)
out_file = os.path.join(HERE, out)
parser = CaseSensitiveParser()
parser.read(in_file)
requirements = []
versions = parser.items('versions')
zope_requirement = (
'-e git+https://github.com/zopefoundation/Zope.git@master#egg=Zope2\n')
for name, pin in versions:
if name == 'Zope2':
if pin:
zope_requirement = 'Zope2==%s\n' % pin
continue
if not pin:
continue
requirements.append('%s==%s\n' % (name, pin))
with open(out_file, 'wb') as fd:
fd.write(zope_requirement)
for req in sorted(requirements):
fd.write(req)
def main():
generate('versions-prod.cfg', 'requirements.txt')
if __name__ == '__main__':
main()
# Version pins for required dependencies.
[versions]
Zope2 =
AccessControl = 3.0.12
Acquisition = 4.2.2
BTrees = 4.3.1
DateTime = 4.1.1
DocumentTemplate = 2.13.2
docutils = 0.12
ExtensionClass = 4.1.2
five.globalrequest = 1.0
initgroups = 3.0
mechanize = 0.2.5
Missing = 3.1
MultiMapping = 3.0
Paste = 2.0.3
PasteDeploy = 1.5.2
PasteScript = 2.0.2
Persistence = 3.0a1
persistent = 4.2.1
Products.BTreeFolder2 = 3.0
Products.ExternalMethod = 3.0
Products.MailHost = 3.0
Products.OFSP = 3.0
Products.PythonScripts = 3.0
Products.SiteErrorLog = 3.0
Products.StandardCacheManagers = 3.0
Products.ZCatalog = 3.2
Products.ZCTextIndex = 3.0
python-gettext = 3.0
pytz = 2016.6.1
Record = 3.1
repoze.retry = 1.4
repoze.tm2 = 2.1
repoze.who = 2.3
RestrictedPython = 3.6.0
six = 1.10.0
tempstorage = 3.0
transaction = 1.6.1
unittest2 = 1.1.0
WebOb = 1.6.1
WebTest = 2.0.21
zc.lockfile = 1.2.1
ZConfig = 3.1.0
zdaemon = 4.1.0
ZEO = 4.1.0
zExceptions = 3.0
zLOG = 3.0
ZODB = 4.3.1
zodbpickle = 0.6.0
zope.annotation = 4.4.1
zope.browser = 2.1.0
zope.browsermenu = 4.1.1
zope.browserpage = 4.1.0
zope.browserresource = 4.1.0
zope.cachedescriptors = 4.1.0
zope.component = 4.2.2
zope.componentvocabulary = 2.0.0
zope.configuration = 4.0.3
zope.container = 4.1.0
zope.contentprovider = 4.0.0
zope.contenttype = 4.1.0
zope.deferredimport = 4.1.0
zope.deprecation = 4.1.2
zope.dottedname = 4.1.0
zope.event = 4.2.0
zope.exceptions = 4.0.8
zope.filerepresentation = 4.1.0
zope.formlib = 4.3.0
zope.globalrequest = 1.2
zope.i18n = 4.1.0
zope.i18nmessageid = 4.0.3
zope.interface = 4.2.0
zope.lifecycleevent = 4.1.0
zope.location = 4.0.3
zope.pagetemplate = 4.2.1
zope.processlifetime = 2.1.0
zope.proxy = 4.2.0
zope.ptresource = 4.0.0
zope.publisher = 4.3.0
zope.ramcache = 2.1.0
zope.schema = 4.4.2
zope.security = 4.0.3
zope.sendmail = 4.0.1
zope.sequencesort = 4.0.1
zope.site = 4.0.0
zope.size = 4.1.0
zope.structuredtext = 4.1.0
zope.tal = 4.2.0
zope.tales = 4.1.1
zope.testbrowser = 4.0.4
zope.testing = 4.5.0
zope.testrunner = 4.5.1
zope.traversing = 4.0.0
zope.viewlet = 4.0.0
ZopeUndo = 4.1
[buildout]
extends =
versions-prod.cfg
versions = versions
[versions]
# Zope specific dependencies
Zope2 =
AccessControl = 3.0.12
Acquisition = 4.2.2
DateTime = 4.1.1
DocumentTemplate = 2.13.2
ExtensionClass = 4.1.2
Missing = 3.1
MultiMapping = 3.0
Persistence = 3.0a1
Products.OFSP = 3.0
Products.ZCatalog = 3.2
Products.ZCTextIndex = 3.0
Record = 3.1
tempstorage = 3.0
zExceptions = 3.0
zLOG = 3.0
ZopeUndo = 4.1
# Additional dependencies
# Version pins for development and optional dependencies.
alabaster = 0.7.8
Babel = 2.3.4
beautifulsoup4 = 4.4.1
BTrees = 4.3.1
collective.recipe.cmd = 0.11
collective.recipe.sphinxbuilder = 1.0
coverage = 4.1
docutils = 0.12
extras = 1.0.0
five.globalrequest = 1.0
imagesize = 0.7.1
initgroups = 3.0
Jinja2 = 2.8
lxml = 3.6.0
MarkupSafe = 0.23
mechanize = 0.2.5
mr.developer = 1.34
nose = 1.3.7
Paste = 2.0.3
PasteDeploy = 1.5.2
PasteScript = 2.0.2
persistent = 4.2.1
Products.BTreeFolder2 = 3.0
Products.ExternalMethod = 3.0
Products.MailHost = 3.0
Products.PythonScripts = 3.0
Products.SiteErrorLog = 3.0
Products.StandardCacheManagers = 3.0
plone.recipe.command = 1.1
Pygments = 2.1.3
python-gettext = 3.0
python-subunit = 1.2.0
pytz = 2016.6.1
repoze.retry = 1.4
repoze.tm2 = 2.1
repoze.who = 2.3
RestrictedPython = 3.6.0
setuptools = 24.0.3
six = 1.10.0
snowballstemmer = 1.2.1
Sphinx = 1.4.5
testtools = 2.2.0
transaction = 1.6.1
unittest2 = 1.1.0
waitress = 0.9.0
WebOb = 1.6.1
WebTest = 2.0.21
z3c.checkversions = 0.5
ZConfig = 3.1.0
zc.buildout = 2.5.2
zc.lockfile = 1.2.1
zc.recipe.egg = 2.0.3
zc.recipe.testrunner = 2.0.0
zdaemon = 4.1.0
ZEO = 4.1.0
ZODB = 4.3.1
zodbpickle = 0.6.0
zope.globalrequest = 1.2
zope.sequencesort = 4.0.1
zope.testbrowser = 4.0.4
# ZTK
zope.annotation = 4.4.1
zope.applicationcontrol = 4.0.1
zope.authentication = 4.2.1
zope.browser = 2.1.0
zope.browsermenu = 4.1.1
zope.browserpage = 4.1.0
zope.browserresource = 4.1.0
zope.cachedescriptors = 4.1.0
zope.catalog = 4.1.0
zope.component = 4.2.2
zope.componentvocabulary = 2.0.0
zope.configuration = 4.0.3
zope.container = 4.1.0
zope.contentprovider = 4.0.0
zope.contenttype = 4.1.0
zope.copy = 4.0.3
zope.copypastemove = 4.0.0
zope.datetime = 4.1.0
zope.deferredimport = 4.1.0
zope.deprecation = 4.1.2
zope.dottedname = 4.1.0
zope.dublincore = 4.1.1
zope.error = 4.3.0
zope.event = 4.2.0
zope.exceptions = 4.0.8
zope.filerepresentation = 4.1.0
zope.formlib = 4.3.0
zope.hookable = 4.0.4
zope.i18n = 4.1.0
zope.i18nmessageid = 4.0.3
zope.index = 4.2.0
zope.interface = 4.2.0
zope.intid = 4.1.0
zope.keyreference = 4.1.0
zope.lifecycleevent = 4.1.0
zope.location = 4.0.3
zope.login = 2.0.0
zope.mimetype = 2.0.0
zope.minmax = 2.1.0
zope.pagetemplate = 4.2.1
zope.password = 4.2.0
zope.pluggableauth = 2.1.0
zope.principalannotation = 4.1.1
zope.principalregistry = 4.0.0
zope.processlifetime = 2.1.0
zope.proxy = 4.2.0
zope.ptresource = 4.0.0
zope.publisher = 4.3.0
zope.ramcache = 2.1.0
zope.schema = 4.4.2
zope.security = 4.0.3
zope.securitypolicy = 4.0.0
zope.sendmail = 4.0.1
zope.session = 4.1.0
zope.site = 4.0.0
zope.size = 4.1.0
zope.structuredtext = 4.1.0
zope.tal = 4.2.0
zope.tales = 4.1.1
zope.testing = 4.5.0
zope.testrunner = 4.5.1
zope.traversing = 4.0.0
zope.viewlet = 4.0.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment