-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make update * Pin httpie to last py2 compatible version * Fix Plone 5.2 buildout with version pins. * Fix p 5.2 buildout * Properly pin httpie * make update * make update * Remove httpie * Add gh actions * black * pin check-manifest * pin check-manifest * pin urllib3 * Exclude 3.7 with plone 5.1 * Pin idna * Remove Travis
- Loading branch information
Showing
19 changed files
with
183 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: plone.rest CI | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7, 2.7] | ||
plone-version: [5.2, 5.1, 4.3] | ||
exclude: | ||
- python-version: 3.7 | ||
plone-version: 4.3 | ||
- python-version: 3.7 | ||
plone-version: 5.1 | ||
|
||
steps: | ||
|
||
# git checkout | ||
- uses: actions/checkout@v2 | ||
|
||
# python setup | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# python cache | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
# python install | ||
- run: pip install virtualenv | ||
- run: pip install wheel | ||
- name: pip install | ||
run: pip install -r requirements.txt | ||
- name: choose Plone version | ||
run: sed -ie "s#plone-x.x.x.cfg#plone-${{ matrix.plone-version }}.x.cfg#" ci.cfg | ||
|
||
# buildout | ||
- name: buildout | ||
run: buildout -t 10 -c ci.cfg | ||
env: | ||
CI: true | ||
|
||
# black | ||
- name: black | ||
run: if [ "${{ matrix.plone-version }}" == "5.2" ] && [ ${{ matrix.python-version }} == '3.7' ]; then pip install black && black src/ --check; fi | ||
|
||
# code analysis | ||
- name: black | ||
run: bin/code-analysis | ||
|
||
# test | ||
- name: test | ||
run: bin/test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[buildout] | ||
extends = plone-x.x.x.cfg | ||
|
||
[code-analysis] | ||
recipe = plone.recipe.codeanalysis | ||
pre-commit-hook = False | ||
return-status-codes = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,30 @@ | ||
[buildout] | ||
extends = | ||
base.cfg | ||
http://dist.plone.org/release/4.3.19/versions.cfg | ||
https://dist.plone.org/release/4.3.20/versions.cfg | ||
versions.cfg | ||
|
||
[versions] | ||
plone.testing = 5.0.0 | ||
pytz = 2017.3 | ||
zope.interface = 4.1.0 | ||
|
||
# fixes zlib failure: https://stackoverflow.com/questions/34631806/fail-during-installation-of-pillow-python-module-in-linux | ||
# Pillow = 5.4.1 | ||
future = 0.17.1 | ||
six = 1.11.0 | ||
|
||
# Required for Python 2.7 compatibility | ||
more-itertools = <6.0.0 | ||
zipp = >=0.5, <2a | ||
|
||
# plone.restapi specific | ||
plone.schema = 1.2.0 | ||
# fixes: SyntaxError: invalid syntax (more.py, line 340) | ||
zipp = 0.5.2 | ||
|
||
# zest.releaser | ||
zest.releaser = 6.20.1 | ||
twine = 1.11.0 | ||
requests = 2.22.0 | ||
towncrier = 19.2.0 | ||
zestreleaser.towncrier = 1.1.0 | ||
# docutils = 0.13.1 | ||
# more-itertools >= 6.0.0 dropped python2.7 support | ||
more-itertools = 5.0.0 | ||
|
||
# Sphinx | ||
Sphinx = 1.6.5 | ||
docutils = 0.14 | ||
# Error: The requirement ('Pygments>=2.5.1') is not allowed by your [versions] constraint (2.2.0) | ||
Pygments = 2.5.2 | ||
sphinxcontrib-httpexample = 0.7.0 | ||
sphinxcontrib-httpdomain = 1.5.0 | ||
sphinx-rtd-theme = 0.2.4 | ||
Jinja2 = 2.10 | ||
Babel = 2.5.1 | ||
astunparse = 1.6.2 | ||
|
||
# Last pyrsistent version that is python 2 compatible: | ||
pyrsistent = 0.15.7 | ||
|
||
# Error: The requirement ('distlib<1,>=0.3.1') is not allowed by your [versions] constraint (0.3.0) | ||
distlib = 0.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,41 @@ | ||
[buildout] | ||
extends = | ||
base.cfg | ||
http://dist.plone.org/release/5.1.6/versions.cfg | ||
https://dist.plone.org/release/5.1.7/versions.cfg | ||
versions.cfg | ||
|
||
[versions] | ||
plone.testing = 5.0.0 | ||
|
||
# Error: The requirement ('virtualenv>=20.0.35') is not allowed by your [versions] constraint (20.0.26) | ||
virtualenv = 20.0.35 | ||
|
||
# Error: The requirement ('distlib<1,>=0.3.1') is not allowed by your [versions] constraint (0.3.0) | ||
distlib = 0.3.1 | ||
|
||
# fixes: SyntaxError: invalid syntax (more.py, line 340) | ||
zipp = 0.5.2 | ||
|
||
# plone.restapi specific | ||
plone.schema = 1.2.0 | ||
# Error: The requirement ('urllib3<1.23,>=1.21.1') is not allowed by your [versions] constraint (1.25.10) | ||
urllib3 = 1.21.1 | ||
|
||
# Error: The requirement ('idna<2.7,>=2.5') is not allowed by your [versions] constraint (2.10) | ||
idna = 2.5 | ||
|
||
# zest.releaser | ||
zest.releaser = 6.20.1 | ||
twine = 1.11.0 | ||
requests = 2.22.0 | ||
towncrier = 19.2.0 | ||
zestreleaser.towncrier = 1.1.0 | ||
# docutils = 0.13.1 | ||
|
||
# Sphinx | ||
Sphinx = 1.6.5 | ||
docutils = 0.14 | ||
Pygments = 2.5.2 | ||
Pygments = 2.5.1 | ||
sphinxcontrib-httpexample = 0.7.0 | ||
sphinxcontrib-httpdomain = 1.5.0 | ||
sphinx-rtd-theme = 0.2.4 | ||
Jinja2 = 2.10 | ||
Babel = 2.5.1 | ||
astunparse = 1.6.2 | ||
astunparse = 1.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
[buildout] | ||
extends = | ||
base.cfg | ||
http://dist.plone.org/release/5.2.1/versions.cfg | ||
find-links += http://dist.plone.org/thirdparty/ | ||
https://dist.plone.org/release/5.2.3/versions.cfg | ||
find-links += https://dist.plone.org/thirdparty/ | ||
versions=versions | ||
|
||
[versions] | ||
# httpie depdendency, Pygments conflicts with | ||
Pygments = 2.5.2 | ||
black = 20.8b1 | ||
|
||
# Error: The requirement ('virtualenv>=20.0.35') is not allowed by your [versions] constraint (20.0.26) | ||
virtualenv = 20.0.35 | ||
|
||
# Error: The requirement ('pep517>=0.9') is not allowed by your [versions] constraint (0.8.2) | ||
pep517 = 0.9.1 | ||
|
||
# Error: The requirement ('importlib-metadata>=1') is not allowed by your [versions] constraint (0.23) | ||
importlib-metadata = 2.0.0 | ||
|
||
# last py2 compatible version | ||
check-manifest = 0.41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Keep this file in sync with: https://github.com/kitconcept/buildout/edit/master/requirements.txt | ||
setuptools==42.0.2 | ||
zc.buildout==2.13.2 | ||
zc.buildout==2.13.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.