-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize the package and prepare for a final release (#49)
- Fixed classifiers - Fixed version - Modernize imports - Switch to GitHub actions Closes #47
- Loading branch information
Showing
15 changed files
with
183 additions
and
86 deletions.
There are no files selected for viewing
File renamed without changes.
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,54 @@ | ||
# Inspired by: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
schedule: | ||
- cron: "0 12 * * 0" # run once a week on Sunday | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
config: | ||
- ["Py2.7-Plone5.1", "2.7", "5.1"] | ||
- ["Py2.7-Plone5.2", "2.7", "5.2"] | ||
- ["Py3.6-Plone5.2", "3.6", "5.2"] | ||
- ["Py3.7-Plone5.2", "3.7", "5.2"] | ||
- ["Py3.8-Plone5.2", "3.8", "5.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.config[1] }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.config[1] }} | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
**/eggs | ||
**/downloads | ||
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }} | ||
restore-keys: | | ||
${{ runner.os }}-cache- | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install libxml2-dev libxslt-dev xvfb | ||
mkdir -p $HOME/buildout-cache/{eggs,downloads} | ||
mkdir $HOME/.buildout | ||
echo "[buildout]" > $HOME/.buildout/default.cfg | ||
echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg | ||
echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg | ||
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz | ||
mkdir geckodriver && tar zxvf geckodriver-v0.26.0-linux64.tar.gz -C geckodriver | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
sed -ie "s#plone-x.x.x.cfg#plone-${{ matrix.config[2] }}.x.cfg#" .gha.cfg | ||
buildout -c .gha.cfg | ||
- name: Test | ||
run: PATH=$PATH:$PWD/geckodriver ROBOT_HTTP_PORT=55001 xvfb-run --server-args="-screen 0 1600x1200x24" ./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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,53 @@ | ||
[buildout] | ||
extends = | ||
base.cfg | ||
https://dist.plone.org/release/5.2.1/versions.cfg | ||
https://dist.plone.org/release/5.2.3/versions.cfg | ||
find-links += https://dist.plone.org/thirdparty/ | ||
versions=versions | ||
show-picked-versions = true | ||
|
||
[versions] | ||
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 | ||
|
||
# cryptography 3.4 requires a rust compiler installed on the system: | ||
# https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07 | ||
cryptography = 3.3.2 | ||
|
||
PyYAML = 5.3 | ||
argh = 0.26.2 | ||
flake8 = 3.8.3 | ||
flake8-coding = 1.3.2 | ||
flake8-debugger = 3.2.1 | ||
flake8-print = 3.1.4 | ||
mccabe = 0.6.1 | ||
pathtools = 0.1.2 | ||
plone.recipe.codeanalysis = 3.0.1 | ||
prompt-toolkit = 1.0.18 | ||
pyflakes = 2.2.0 | ||
pyroma = 2.6 | ||
readme = 0.7.1 | ||
watchdog = 0.9.0 | ||
zest.pocompile = 1.5.0 | ||
|
||
# Required by: | ||
# plone.recipe.codeanalysis==3.0.1 | ||
check-manifest = 0.42 | ||
|
||
# Required by: | ||
# flake8-debugger==3.2.1 | ||
# flake8-print==3.1.4 | ||
pycodestyle = 2.6.0 | ||
|
||
# Required by: | ||
# prompt-toolkit==1.0.18 | ||
wcwidth = 0.2.5 | ||
|
||
SecretStorage = 3.1.2 | ||
jeepney = 0.4.3 | ||
keyring = 21.2.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,3 +1,4 @@ | ||
# 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 | ||
wheel |
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ def setUp(self): | |
self.request = self.layer["request"] | ||
zope.login(self.app["acl_users"], SITE_OWNER_NAME) | ||
self.user1 = api.user.create( | ||
email="[email protected]", username="user1", password="123" | ||
email="[email protected]", username="user1", password="Plone123" | ||
) | ||
self.workspace = api.content.create( | ||
container=self.portal, type="Workspace", id="a-workspace" | ||
|
@@ -127,7 +127,7 @@ def test_reparent_team_member(self): | |
user=self.user1.getId(), groups=(u"Admins",), | ||
) | ||
user2 = api.user.create( | ||
email="[email protected]", username="user2", password="123" | ||
email="[email protected]", username="user2", password="Plone123" | ||
) | ||
self.ws[self.user1.getId()].update({"user": user2.getId()}) | ||
self.assertNotIn(self.user1.getId(), self.workspace._team) | ||
|
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