Skip to content

Commit

Permalink
Configuring for zope-product (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Sep 21, 2021
1 parent a85a5a4 commit d60c6c3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ max_line_length = off
# 4 space indentation
indent_size = 4

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

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ on:
pull_request:
schedule:
- cron: '0 12 * * 0' # run once a week on Sunday
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
strategy:
# We want to see all failures:
fail-fast: false
matrix:
os:
- ubuntu
config:
# [Python version, tox env]
- ["3.8", "lint"]
Expand All @@ -23,7 +29,7 @@ jobs:
- ["3.9", "py39"]
- ["3.8", "coverage"]

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
*.dll
*.egg-info/
*.profraw
*.pyc
*.pyo
*.so
.coverage
.coverage.*
.eggs/
Expand Down
8 changes: 5 additions & 3 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
[meta]
template = "zope-product"
commit-id = "d86cf2ed926cfc9661d7f6f7fb989bc77eb5db4e"
commit-id = "5b60e8235223c5c73427d4cdf66be5fb2cce3cea"

[python]
with-appveyor = false
with-pypy = false
with-legacy-python = true
with-docs = false
with-sphinx-doctests = false
with-windows = false
with-future-python = false

[isort]
known_first_party = "Products.CMFCore"
Expand All @@ -25,5 +25,7 @@ fail-under = 97
additional-rules = [
"include buildout4.cfg",
"recursive-include src *.gif",
"recursive-include src *.pt",
"recursive-include src *.xml",
"recursive-include src *.zcml",
]
6 changes: 2 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ include *.txt
include buildout.cfg
include tox.ini

recursive-include src *.pt
recursive-include src *.py
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.zcml
include buildout4.cfg
recursive-include src *.gif
recursive-include src *.pt
recursive-include src *.xml
recursive-include src *.zcml
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ commands =
[coverage:run]
branch = True
plugins = coverage_python_version
source = src
source = Products.CMFUid

[coverage:report]
precision = 2
Expand Down

0 comments on commit d60c6c3

Please sign in to comment.