-
Notifications
You must be signed in to change notification settings - Fork 2
Modernize package #28
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0bc037f
Modernize codebase according to the latest cookieplone templates.
ericof 8aa0f5d
Increate test coverage.
ericof 26cb760
Test on Plone 6.2
ericof cb10a19
Update changelog
ericof 4a7eba0
GHa: Update Python to version 3.13
ericof 0485a4a
Fix typo in the description of an attribute of the behavior
ericof db63729
Remove requirements.txt from repository
ericof 1eb28f5
Restore images used in the readme file
ericof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,28 @@ | ||
| name: Change log check | ||
| on: | ||
| pull_request: | ||
| types: [assigned, opened, synchronize, reopened, labeled, unlabeled] | ||
| branches: | ||
| - main | ||
|
|
||
| env: | ||
| python-version: 3.13 | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| # Fetch all history | ||
| fetch-depth: '0' | ||
|
|
||
| - name: Setup uv | ||
| uses: plone/meta/.github/actions/setup_uv@2.x | ||
| with: | ||
| python-version: ${{ env.python-version }} | ||
| - name: Check for presence of a Change Log fragment (only pull requests) | ||
| if: github.event_name == 'pull_request' | ||
| run: | | ||
| git fetch --no-tags origin ${{ github.base_ref }} | ||
| uvx towncrier check --compare-with origin/${{ github.base_ref }} --config pyproject.toml --dir . |
This file contains hidden or 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,70 @@ | ||
| name: 'Compute Config variables' | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| python-version: | ||
| required: false | ||
| type: string | ||
| default: "3.12" | ||
| plone-version: | ||
| required: false | ||
| type: string | ||
| default: "6.1.4" | ||
| outputs: | ||
| backend: | ||
| description: "Flag reporting if we should run the backend jobs" | ||
| value: ${{ jobs.config.outputs.backend }} | ||
| docs: | ||
| description: "Flag reporting if we should run the docs jobs" | ||
| value: ${{ jobs.config.outputs.docs }} | ||
| base-tag: | ||
| description: "Base tag to be used when creating container images" | ||
| value: ${{ jobs.config.outputs.base-tag }} | ||
| python-version: | ||
| description: "Python version to be used" | ||
| value: ${{ inputs.python-version }} | ||
| plone-version: | ||
| description: "Plone version to be used" | ||
| value: ${{ inputs.plone-version }} | ||
|
|
||
| jobs: | ||
| config: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| backend: ${{ steps.filter.outputs.backend }} | ||
| docs: ${{ steps.filter.outputs.docs }} | ||
| base-tag: ${{ steps.vars.outputs.BASE_TAG }} | ||
| plone-version: ${{ steps.vars.outputs.plone-version }} | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Compute several vars needed for the CI | ||
| id: vars | ||
| run: | | ||
| echo "base-tag=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
| echo "plone-version=${{ inputs.plone-version }}" >> $GITHUB_OUTPUT | ||
|
|
||
| - uses: dorny/paths-filter@v3.0.2 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| backend: | ||
| - '**' | ||
| - '.github/workflows/config.yml' | ||
| - '.github/workflows/main.yml' | ||
| docs: | ||
| - '.readthedocs.yaml' | ||
| - 'docs/**' | ||
| - '.github/workflows/docs.yaml' | ||
|
|
||
| - name: Test vars | ||
| run: | | ||
| echo "base-tag: ${{ steps.vars.outputs.base-tag }}" | ||
| echo 'plone-version: ${{ steps.vars.outputs.plone-version }}' | ||
| echo 'event-name: ${{ github.event_name }}' | ||
| echo "ref-name: ${{ github.ref_name }}" | ||
| echo 'Paths - backend: ${{ steps.filter.outputs.backend }}' | ||
| echo 'Paths - docs: ${{ steps.filter.outputs.docs }}' | ||
This file contains hidden or 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,61 @@ | ||
| name: kitconcept.seo CI | ||
|
|
||
| on: | ||
| push: | ||
|
|
||
| jobs: | ||
|
|
||
| config: | ||
| name: "Compute configuration values" | ||
| uses: ./.github/workflows/config.yml | ||
| lint: | ||
| name: "Lint codebase" | ||
| uses: plone/meta/.github/workflows/backend-lint.yml@2.x | ||
| needs: | ||
| - config | ||
| with: | ||
| python-version: ${{ needs.config.outputs.python-version }} | ||
| plone-version: ${{ needs.config.outputs.plone-version }} | ||
| test: | ||
| name: "Test codebase" | ||
| uses: plone/meta/.github/workflows/backend-pytest.yml@2.x | ||
| needs: | ||
| - config | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.13", "3.12", "3.11", "3.10"] | ||
| plone-version: ["6.2-latest", "6.1-latest", "6.0-latest"] | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| plone-version: ${{ matrix.plone-version }} | ||
|
|
||
| coverage: | ||
| name: "Backend: Coverage" | ||
| uses: plone/meta/.github/workflows/backend-pytest-coverage.yml@2.x | ||
| needs: | ||
| - config | ||
| - test | ||
| with: | ||
| python-version: ${{ needs.config.outputs.python-version }} | ||
| plone-version: ${{ needs.config.outputs.plone-version }} | ||
|
|
||
| report: | ||
| name: "Final report" | ||
| if: ${{ always() }} | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - config | ||
| - lint | ||
| - test | ||
| - coverage | ||
| steps: | ||
| - name: Report | ||
| shell: bash | ||
| run: | | ||
| echo '# Workflow Report' >> $GITHUB_STEP_SUMMARY | ||
| echo '| Job ID | Conclusion |' >> $GITHUB_STEP_SUMMARY | ||
| echo '| --- | --- |' >> $GITHUB_STEP_SUMMARY | ||
| echo '| Config | ${{ needs.config.result }} |' >> $GITHUB_STEP_SUMMARY | ||
| echo '| Lint | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY | ||
| echo '| Test | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY | ||
| echo '| Coverage | ${{ needs.coverage.result }} |' >> $GITHUB_STEP_SUMMARY |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,55 +1,45 @@ | ||
| # Generated from: | ||
| # https://github.com/plone/meta/tree/master/config/default | ||
| # See the inline comments on how to expand/tweak this configuration file | ||
| # python related | ||
| *.egg-info | ||
| *.pyc | ||
| *.pyo | ||
|
|
||
| # tools related | ||
| build/ | ||
| __pycache__/ | ||
| .coverage | ||
| .mypy_cache | ||
| .pytest_cache | ||
| .ruff_cache | ||
| /build/ | ||
| coverage.xml | ||
| dist/ | ||
| docs/_build | ||
| __pycache__/ | ||
| .tox | ||
| .vscode/ | ||
| node_modules/ | ||
|
|
||
| # venv / buildout related | ||
| .eggs/ | ||
| .installed.cfg | ||
| .mr.developer.cfg | ||
| .venv/ | ||
| bin/ | ||
| develop-eggs/ | ||
| eggs/ | ||
| .eggs/ | ||
| etc/ | ||
| .installed.cfg | ||
| include/ | ||
| lib/ | ||
| lib64 | ||
| .mr.developer.cfg | ||
| parts/ | ||
| pyvenv.cfg | ||
| var/ | ||
|
|
||
| # mxdev | ||
| /instance/ | ||
| .installed.txt | ||
| .lock | ||
| /.mxdev_cache/ | ||
| /.make-sentinels/ | ||
| /*-mxdev.txt | ||
| /instance/ | ||
| /reports/ | ||
| /sources/ | ||
| /venv/ | ||
| .installed.txt | ||
| *.mo | ||
|
|
||
| # pipforester | ||
| forest.dot | ||
| forest.json | ||
|
|
||
| ## | ||
| # Add extra configuration options in .meta.toml: | ||
| # [gitignore] | ||
| # extra_lines = """ | ||
| # _your own configuration lines_ | ||
| # """ | ||
| ## | ||
| constraints*.txt | ||
| requirements*.txt |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.