Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Plone 6.0 #6

Merged
merged 6 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/workflows/ci.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Code Analysis
on:
push:

jobs:
black:
name: Black
runs-on: ubuntu-latest

steps:
- name: Checkout codebase
uses: actions/checkout@v3

- name: Run check
uses: plone/code-analysis-action@v2
with:
check: 'black'

flake8:
name: flake8
runs-on: ubuntu-latest

steps:
- name: Checkout codebase
uses: actions/checkout@v2

- name: Run check
uses: plone/code-analysis-action@v2
with:
check: 'flake8'

isort:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v2

- name: Run check
uses: plone/code-analysis-action@v2
with:
check: 'isort'

pyroma:
name: pyroma
runs-on: ubuntu-latest

steps:
- name: Checkout codebase
uses: actions/checkout@v2

- name: Run check
uses: plone/code-analysis-action@v2
with:
check: 'pyroma'

zpretty:
name: zpretty
runs-on: ubuntu-latest

steps:
- name: Checkout codebase
uses: actions/checkout@v2

- name: Run check
uses: plone/code-analysis-action@v2
with:
check: 'zpretty'
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
plone: ["6.0-latest", "5.2-latest"]
exclude:
- plone: "5.2-latest"
python: "3.9"
- plone: "5.2-latest"
python: "3.10"
- plone: "5.2-latest"
python: "3.11"
- plone: "6.0-latest"
python: "3.7"

steps:
# git checkout
- uses: actions/checkout@v3

- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }}
id: setup
uses: plone/setup-plone@v2.0.0
with:
python-version: ${{ matrix.python }}
plone-version: ${{ matrix.plone }}

- name: Install package
run: |
pip install -e ".[test]"

# test
- name: test
run: |
zope-testrunner --auto-color --auto-progress --test-path src
42 changes: 21 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
.*project
.coverage
.coverage.*
.installed.cfg
.mr.developer.cfg
.tox/
.vscode/
*.egg-info
*.log
*.mo
*.py?
*.swp
.*project
.coverage.*
/.settings
/compiled-doc.rst
/local.cfg
/pyvenv.cfg
/src/collective*
# dirs
.settings
# files
bin/
buildout-cache/
develop-eggs/
dist/*
eggs/
etc
htmlcov/
include/
inituser
lib/
local/
node_modules/
parts/
dist/*
test.plone_addon/
var/
# files
.installed.cfg
.mr.developer.cfg
lib64
local/
log.html
node_modules/
output.xml
parts/
pip-selfcheck.json
report.html
.vscode/
.tox/
reports/
docs/Makefile
docs/make.bat
docs/doctrees
docs/html
/pyvenv.cfg
local.cfg
/src/collective.transmogrifier*
test.plone_addon/
var/
venv/
25 changes: 15 additions & 10 deletions CHANGES.rst → CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
0.3.2 (unreleased)
------------------
## 1.0.0 (unreleased)

- Nothing changed yet.
- Add support to Plone 6.0.
[wesleybl]

- Add support to Python 3.9, 3.10 and 3.11.
[wesleybl]

- Drop support to Python 2.7.
[wesleybl]

- Drop support to Plone 4.3 and 5.1.
[wesleybl]


0.3.1 (2023-04-28)
------------------
## 0.3.1 (2023-04-28)

- Fix python_requires, in order to allow the package to be installed with pip.
[wesleybl]


0.3.0 (2021-09-28)
------------------
## 0.3.0 (2021-09-28)

- Add support to Python 3.7 and Python 3.8.
[wesleybl]
Expand All @@ -24,8 +31,6 @@
[wesleybl]


0.2.0 (2015-06-07)
------------------
## 0.2.0 (2015-06-07)

- Fixed MANIFEST.in

3 changes: 1 addition & 2 deletions CONTRIBUTORS.rst → CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Contributors
============
## Contributors

- Rok Garbas, rok@garbas.si
- Wesley Barroso, wesleybl@gmail.com
42 changes: 0 additions & 42 deletions DEVELOP.rst

This file was deleted.

File renamed without changes.
Loading
Loading