Skip to content

Commit

Permalink
Merge f4d6fba into cf13425
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Sep 15, 2020
2 parents cf13425 + f4d6fba commit 5bae990
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 219 deletions.
1 change: 0 additions & 1 deletion .codacy.yml
@@ -1,4 +1,3 @@
exclude_paths:
- bootstrap.py
- setup.py
- src/collective/cover/static/js/vendor/*
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -24,13 +24,11 @@ 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
- virtualenv -p `which python` .
- bin/pip install -r requirements.txt
- bin/buildout $VERSIONS annotate
- bin/buildout $VERSIONS
before_script:
Expand Down
210 changes: 0 additions & 210 deletions bootstrap.py

This file was deleted.

4 changes: 3 additions & 1 deletion buildout.cfg
Expand Up @@ -6,7 +6,6 @@ extends =

package-name = collective.cover
package-extras = [relations, test]
newest = false

parts +=
checkversions
Expand Down Expand Up @@ -86,3 +85,6 @@ initialization +=

[versions]
sc.recipe.staticresources = 1.1b5
# Keep the same as in requirements.txt:
setuptools = 40.8.0
zc.buildout = 2.13.1
4 changes: 4 additions & 0 deletions requirements.txt
@@ -0,0 +1,4 @@
# Use constraints from the newest Plone version we support.
-c https://dist.plone.org/release/5.1-latest/requirements.txt
setuptools
zc.buildout
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -11,7 +11,6 @@ ignore =
.csslintrc
.jshintignore
.travis.yml
bootstrap.py

[isort]
force_alphabetical_sort = True
Expand Down
4 changes: 2 additions & 2 deletions src/collective/cover/tests/test_setup.py
Expand Up @@ -25,7 +25,7 @@ def test_installed(self):
self.assertTrue(self.qi.isProductInstalled(PROJECTNAME))

def test_addon_layer(self):
layers = [l.getName() for l in registered_layers()]
layers = [layer.getName() for layer in registered_layers()]
self.assertIn('ICoverLayer', layers)

@unittest.skipIf(IS_PLONE_5, 'No easy way to test this under Plone 5')
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_uninstalled(self):
self.assertFalse(self.qi.isProductInstalled(PROJECTNAME))

def test_addon_layer_removed(self):
layers = [l.getName() for l in registered_layers()]
layers = [layer.getName() for layer in registered_layers()]
self.assertNotIn('ICoverLayer', layers)

@unittest.skipIf(IS_PLONE_5, 'No easy way to test this under Plone 5')
Expand Down

0 comments on commit 5bae990

Please sign in to comment.