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

Refactor Package with plone/meta - introduce only Plone 6 support #26

Merged
merged 45 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2dabfa0
delete unused files
1letter Apr 19, 2024
fdc0a97
update with plone/meta
1letter Apr 19, 2024
4b3ee17
format with black
1letter Apr 19, 2024
77e28ec
format via zpretty
1letter Apr 19, 2024
fae8617
add browserlayer
1letter Apr 19, 2024
e10a949
update test
1letter Apr 19, 2024
e8caed7
update test
1letter Apr 19, 2024
e6b4ecd
update widget markup to bs5 floating labels
1letter Apr 19, 2024
0fd5f13
refactor setup.py
1letter Apr 19, 2024
3902bb6
add pip install support incl. mxdev
1letter Apr 19, 2024
51f9d5f
add sample instance.yml for cookiecutter
1letter Apr 19, 2024
542b4d8
Update MANIFEST.in
1letter Apr 19, 2024
bb20d42
Update README
1letter Apr 19, 2024
85f1b08
Update tox
1letter Apr 19, 2024
d172983
add codecov sample workflow but disabled
1letter Apr 19, 2024
980f9f1
Update README
1letter Apr 19, 2024
6a35871
Update README
1letter Apr 19, 2024
385a28c
Update README
1letter Apr 19, 2024
970cfd8
Update README
1letter Apr 19, 2024
04fc689
add codecov workflow
1letter Apr 22, 2024
9946a05
Update README
1letter Apr 22, 2024
edcd4b3
Update Screenshots
1letter Apr 22, 2024
6800e77
Update README
1letter Apr 22, 2024
d0c9b4b
Update README
1letter Apr 22, 2024
89e1819
Update README
1letter Apr 22, 2024
56807d9
Update README
1letter Apr 22, 2024
c10e4dd
Fix Testlayer Name
1letter Apr 22, 2024
23c4b2b
Enable sample package for tests
1letter Apr 22, 2024
e73fe15
linting
1letter Apr 22, 2024
65b1ea4
add tests for sample plone form package
1letter Apr 22, 2024
8fe0f98
add test for controlpanel
1letter Apr 22, 2024
91eaaa7
Update .gitignore
1letter Apr 29, 2024
091ef67
use mxdev in tox
1letter Apr 29, 2024
621e1cb
Update configuration
1letter Apr 29, 2024
7cb8594
Update deprecated interface in sample package
1letter Apr 29, 2024
26c6198
update dependencies
1letter Apr 29, 2024
b04b9f3
Refactor norobot macro to bootstrap5 form floating input field
1letter Apr 29, 2024
1131008
Add test for Macro
1letter Apr 29, 2024
76cefcf
Update Version to 3.0.dev0
1letter Apr 29, 2024
0d6b8e0
Update CHANGES
1letter Apr 29, 2024
2d82deb
add plone matrix workflow for tests
1letter May 7, 2024
bf9bbcb
Fix MANIFEST rules
1letter May 7, 2024
f2eb181
Update project configuration
1letter May 8, 2024
ac2246f
Update .meta.toml
1letter May 8, 2024
ee910d0
Update project configuration
1letter May 8, 2024
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
49 changes: 45 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,56 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
#
# EditorConfig Configuration file, for more details see:
# http://EditorConfig.org
# EditorConfig is a convention description, that could be interpreted
# by multiple editors to enforce common coding conventions for specific
# file types

# top-most EditorConfig file:
# Will ignore other EditorConfig files in Home directory or upper tree level.
root = true


[*]
indent_style = space
# Default settings for all files.
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Set default charset
charset = utf-8
# Indent style default
indent_style = space
# Max Line Length - a hard line wrap, should be disabled
max_line_length = off

[{*.py,*.cfg}]
[*.{py,cfg,ini}]
# 4 space indentation
indent_size = 4

[{*.html,*.dtml,*.pt,*.zpt,*.xml,*.zcml,*.js}]
[*.{yml,zpt,pt,dtml,zcml,html,xml}]
# 2 space indentation
indent_size = 2

[Makefile]
[*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}]
# Frontend development
# 2 space indentation
indent_size = 2
max_line_length = 80

[{Makefile,.gitmodules}]
# Tab indentation (no size specified, but view as 4 spaces)
indent_style = tab
indent_size = unset
tab_width = unset


##
# Add extra configuration options in .meta.toml:
# [editorconfig]
# extra_lines = """
# _your own configuration lines_
# """
##
22 changes: 22 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
[flake8]
doctests = 1
ignore =
# black takes care of line length
E501,
# black takes care of where to break lines
W503,
# black takes care of spaces within slicing (list[:])
E203,
# black takes care of spaces after commas
E231,

##
# Add extra configuration options in .meta.toml:
# [flake8]
# extra_lines = """
# _your own configuration lines_
# """
##
35 changes: 0 additions & 35 deletions .github/workflows/black.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
name: Codecov
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:

jobs:
coveralls:
name: Codecov
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install OS packages
if: inputs.os-packages != ''
run: sudo apt-get install -y ${{ inputs.os-packages }}
- name: Cache packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: python -m pip install tox
- name: Initialize tox
run: |
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
- name: Run coverage
run: |
tox -q -e coverage >> $GITHUB_STEP_SUMMARY
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
35 changes: 0 additions & 35 deletions .github/workflows/flake8.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
name: Meta
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:

##
# To set environment variables for all jobs, add in .meta.toml:
# [github]
# env = """
# debug: 1
# image-name: 'org/image'
# image-tag: 'latest'
# """
##

jobs:
qa:
uses: plone/meta/.github/workflows/qa.yml@main
test:
uses: plone/meta/.github/workflows/test.yml@main
coverage:
uses: plone/meta/.github/workflows/coverage.yml@main
dependencies:
uses: plone/meta/.github/workflows/dependencies.yml@main
release_ready:
uses: plone/meta/.github/workflows/release_ready.yml@main
circular:
uses: plone/meta/.github/workflows/circular.yml@main

##
# To modify the list of default jobs being created add in .meta.toml:
# [github]
# jobs = [
# "qa",
# "test",
# "coverage",
# "dependencies",
# "release_ready",
# "circular",
# ]
##

##
# To request that some OS level dependencies get installed
# when running tests/coverage jobs, add in .meta.toml:
# [github]
# os_dependencies = "git libxml2 libxslt"
##


##
# Specify additional jobs in .meta.toml:
# [github]
# extra_lines = """
# another:
# uses: org/repo/.github/workflows/file.yml@main
# """
##
63 changes: 0 additions & 63 deletions .github/workflows/tests.yml

This file was deleted.

Loading