Skip to content

Commit

Permalink
Merge pull request #179 from collective/pinnings
Browse files Browse the repository at this point in the history
Separate Plone 4 and Plone 5 versions
  • Loading branch information
ericof committed Dec 9, 2019
2 parents 4c9b794 + b24720d commit d7fff3f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 217 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,7 +9,9 @@ coverage/
develop-eggs/
downloads/
eggs/
local
parts/
share/
var/
include/
lib/
Expand Down
17 changes: 7 additions & 10 deletions .travis.yml
Expand Up @@ -14,18 +14,15 @@ env:
- PLONE_VERSION=5.1
matrix:
fast_finish: true
before_install:
# FIXME: I have no idea how and why six==1.11.0 is being installed
- pip uninstall -y six
install:
- sed -ie "s#test-4.3#test-$PLONE_VERSION#" buildout.cfg
- sed -ie "s#versions-4.3#versions-$PLONE_VERSION#" buildout.cfg
- python bootstrap.py
- bin/buildout buildout:test-eggs=$TEST_EGGS annotate
- bin/buildout buildout:test-eggs=$TEST_EGGS
- sed -ie "s#test-4.3#test-$PLONE_VERSION#" buildout.cfg
- sed -ie "s#versions-4.3#versions-$PLONE_VERSION#" buildout.cfg
- virtualenv .
- ./bin/pip install -r requirements.txt
- bin/buildout buildout:test-eggs=$TEST_EGGS annotate
- bin/buildout buildout:test-eggs=$TEST_EGGS
before_script:
- export CATALOG_OPTIMIZATION_DISABLED=true
- firefox -v
- firefox -v
script:
- bin/code-analysis
- bin/test
Expand Down
189 changes: 0 additions & 189 deletions bootstrap.py

This file was deleted.

25 changes: 9 additions & 16 deletions buildout.cfg
@@ -1,13 +1,14 @@
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg
https://raw.github.com/plone/plone.app.robotframework/master/versions.cfg
https://raw.github.com/collective/collective.cover/master/versions-4.3.x.cfg
https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg
https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
versions-4.3.x.cfg

package-name = sc.social.like
package-extras = [develop, test]

newest = true

parts +=
code-analysis
i18ndude
Expand Down Expand Up @@ -47,6 +48,7 @@ eggs = pylint < 2.0
[test]
initialization +=
os.environ['TZ'] = 'UTC'
os.environ['CATALOG_OPTIMIZATION_DISABLED'] = 'true'

[zopepy]
recipe = zc.recipe.egg
Expand All @@ -55,15 +57,6 @@ interpreter = zopepy
scripts = zopepy

[versions]
setuptools = 33.1.1
zc.buildout = 2.9.5

# code analysis
configparser = 3.5.3
enum34 = 1.1.6
flake8 = 3.5.0
mccabe = 0.6.1
pycodestyle = 2.3.1
pyflakes = 1.6.0
pylint = 1.9.3
lazy-object-proxy = 1.3.1
# FIXME: https://github.com/collective/buildout.plonetest/pull/61
flake8 =
pycodestyle =
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
setuptools==40.8.0
zc.buildout==2.13.1
4 changes: 2 additions & 2 deletions sc/social/like/tests/test_viewlets.py
Expand Up @@ -139,7 +139,7 @@ def render(times):
with capture() as out:
render(times)

timelapse = float(re.search('(\d+\.\d+)', out[1]).group())
timelapse = float(re.search(r'(\d+\.\d+)', out[1]).group())
self.assertLess(timelapse, limit)

# show rendering profile
Expand Down Expand Up @@ -226,7 +226,7 @@ def render(times):
with capture() as out:
render(times)

timelapse = float(re.search('(\d+\.\d+)', out[1]).group())
timelapse = float(re.search(r'(\d+\.\d+)', out[1]).group())
self.assertLess(timelapse, limit)

# show rendering profile
Expand Down
5 changes: 5 additions & 0 deletions versions-4.3.x.cfg
@@ -0,0 +1,5 @@
[versions]
setuptools = 40.8.0
zc.buildout = 2.13.1

collective.js.bootstrap = 2.3.1.1
1 change: 1 addition & 0 deletions versions-5.1.x.cfg
@@ -0,0 +1 @@
[versions]

0 comments on commit d7fff3f

Please sign in to comment.