Skip to content

Commit 315be32

Browse files
Merge pull request #39 from plone/pep-420-native-namespace
PEP 420 native namespace
2 parents e7e278c + 21ab13f commit 315be32

File tree

89 files changed

+989
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+989
-282
lines changed

.editorconfig

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
34
#
45
# EditorConfig Configuration file, for more details see:
56
# http://EditorConfig.org
@@ -12,7 +13,8 @@
1213
root = true
1314

1415

15-
[*] # For All Files
16+
[*]
17+
# Default settings for all files.
1618
# Unix-style newlines with a newline ending every file
1719
end_of_line = lf
1820
insert_final_newline = true
@@ -28,12 +30,27 @@ max_line_length = off
2830
# 4 space indentation
2931
indent_size = 4
3032

31-
[*.{yml,zpt,pt,dtml}]
33+
[*.{yml,zpt,pt,dtml,zcml,html,xml}]
3234
# 2 space indentation
3335
indent_size = 2
3436

37+
[*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}]
38+
# Frontend development
39+
# 2 space indentation
40+
indent_size = 2
41+
max_line_length = 80
42+
3543
[{Makefile,.gitmodules}]
3644
# Tab indentation (no size specified, but view as 4 spaces)
3745
indent_style = tab
3846
indent_size = unset
3947
tab_width = unset
48+
49+
50+
##
51+
# Add extra configuration options in .meta.toml:
52+
# [editorconfig]
53+
# extra_lines = """
54+
# _your own configuration lines_
55+
# """
56+
##

.flake8

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
[flake8]
5+
doctests = 1
6+
ignore =
7+
# black takes care of line length
8+
E501,
9+
# black takes care of where to break lines
10+
W503,
11+
# black takes care of spaces within slicing (list[:])
12+
E203,
13+
# black takes care of spaces after commas
14+
E231,
15+
16+
##
17+
# Add extra configuration options in .meta.toml:
18+
# [flake8]
19+
# extra_lines = """
20+
# _your own configuration lines_
21+
# """
22+
##

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
# Check for updates to GitHub Actions every week
11+
interval: "weekly"

.github/workflows/meta.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
name: Meta
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- main
10+
pull_request:
11+
branches:
12+
- master
13+
- main
14+
workflow_dispatch:
15+
16+
##
17+
# To set environment variables for all jobs, add in .meta.toml:
18+
# [github]
19+
# env = """
20+
# debug: 1
21+
# image-name: 'org/image'
22+
# image-tag: 'latest'
23+
# """
24+
##
25+
26+
jobs:
27+
qa:
28+
uses: plone/meta/.github/workflows/[email protected]
29+
coverage:
30+
uses: plone/meta/.github/workflows/[email protected]
31+
release_ready:
32+
uses: plone/meta/.github/workflows/[email protected]
33+
circular:
34+
uses: plone/meta/.github/workflows/[email protected]
35+
36+
##
37+
# To modify the list of default jobs being created add in .meta.toml:
38+
# [github]
39+
# jobs = [
40+
# "qa",
41+
# "coverage",
42+
# "dependencies",
43+
# "release_ready",
44+
# "circular",
45+
# ]
46+
##
47+
48+
##
49+
# To request that some OS level dependencies get installed
50+
# when running tests/coverage jobs, add in .meta.toml:
51+
# [github]
52+
# os_dependencies = "git libxml2 libxslt"
53+
##
54+
55+
56+
##
57+
# Specify additional jobs in .meta.toml:
58+
# [github]
59+
# extra_lines = """
60+
# another:
61+
# uses: org/repo/.github/workflows/file.yml@main
62+
# """
63+
##

.github/workflows/test-matrix.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
name: Tests
5+
6+
on:
7+
push:
8+
9+
jobs:
10+
build:
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
strategy:
15+
# We want to see all failures:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- ["ubuntu", "ubuntu-latest"]
20+
config:
21+
# [Python version, visual name, tox env]
22+
- ["3.13", "6.2 on py3.13", "py313-plone62"]
23+
- ["3.10", "6.2 on py3.10", "py310-plone62"]
24+
25+
runs-on: ${{ matrix.os[1] }}
26+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
27+
name: ${{ matrix.config[1] }}
28+
steps:
29+
- uses: actions/checkout@v6
30+
with:
31+
persist-credentials: false
32+
- name: Set up Python
33+
uses: actions/setup-python@v6
34+
with:
35+
python-version: ${{ matrix.config[0] }}
36+
allow-prereleases: true
37+
38+
##
39+
# Add extra configuration options in .meta.toml:
40+
# [github]
41+
# extra_lines_after_os_dependencies = """
42+
# _your own configuration lines_
43+
# """
44+
##
45+
- name: Pip cache
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.cache/pip
49+
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
50+
restore-keys: |
51+
${{ runner.os }}-pip-${{ matrix.config[0] }}-
52+
${{ runner.os }}-pip-
53+
- name: Install dependencies
54+
run: |
55+
python -m pip install --upgrade pip
56+
pip install tox
57+
- name: Initialize tox
58+
# the bash one-liner below does not work on Windows
59+
if: contains(matrix.os, 'ubuntu')
60+
run: |
61+
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
62+
- name: Test
63+
run: tox -e ${{ matrix.config[2] }}
64+
65+
66+
##
67+
# Add extra configuration options in .meta.toml:
68+
# [github]
69+
# extra_lines = """
70+
# _your own configuration lines_
71+
# """
72+
##

.github/workflows/tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Generated from:
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
3-
name: tests
3+
# plone.autoinclude has a really specific test setup, and can only really be
4+
# tested on its own, not on Jenkins in combination with other plone packages.
5+
name: Unit/integration
46

57
on:
68
push:
@@ -19,17 +21,14 @@ jobs:
1921
config:
2022
# [Python version, tox env]
2123
- ["3.10", "lint", "ubuntu-latest"]
22-
- ["3.9", "py39-unit", "ubuntu-latest"]
2324
- ["3.10", "py310-unit", "ubuntu-latest"]
2425
- ["3.11", "py311-unit", "ubuntu-latest"]
2526
- ["3.12", "py312-unit", "ubuntu-latest"]
2627
- ["3.13", "py313-unit", "ubuntu-latest"]
27-
- ["3.9", "py39-integration", "ubuntu-latest"]
2828
- ["3.10", "py310-integration", "ubuntu-latest"]
2929
- ["3.11", "py311-integration", "ubuntu-latest"]
3030
- ["3.12", "py312-integration", "ubuntu-latest"]
3131
- ["3.13", "py313-integration", "ubuntu-latest"]
32-
- ["3.9", "buildout", "ubuntu-latest"]
3332
- ["3.13", "buildout", "ubuntu-latest"]
3433
- ["3.13", "buildout5", "ubuntu-latest"]
3534
- ["3.10", "coverage", "ubuntu-latest"]

.gitignore

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,58 @@
11
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
3-
*.egg-info/
4-
*.profraw
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
# python related
5+
*.egg-info
56
*.pyc
67
*.pyo
7-
*.swp
8-
.coverage
9-
.coverage.*
10-
.eggs/
11-
.installed.cfg
12-
.mr.developer.cfg
13-
.tox/
14-
__pycache__/
15-
bin/
8+
9+
# translation related
10+
*.mo
11+
12+
# tools related
1613
build/
14+
.coverage
15+
.*project
1716
coverage.xml
18-
develop-eggs/
19-
develop/
2017
dist/
2118
docs/_build
19+
__pycache__/
20+
.tox
21+
.vscode/
22+
node_modules/
23+
forest.dot
24+
forest.json
25+
26+
# venv / buildout related
27+
bin/
28+
develop-eggs/
2229
eggs/
30+
.eggs/
2331
etc/
32+
.installed.cfg
33+
include/
2434
lib/
2535
lib64
26-
log/
36+
.mr.developer.cfg
2737
parts/
2838
pyvenv.cfg
2939
var/
40+
local.cfg
41+
42+
# mxdev
43+
/instance/
44+
/.make-sentinels/
45+
/*-mxdev.txt
46+
/reports/
47+
/sources/
48+
/venv/
49+
.installed.txt
50+
51+
52+
##
53+
# Add extra configuration options in .meta.toml:
54+
# [gitignore]
55+
# extra_lines = """
56+
# _your own configuration lines_
57+
# """
58+
##

0 commit comments

Comments
 (0)