-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from zopefoundation/config-with-zope-product
Reconfigure package with zopefoundation/meta/config
- Loading branch information
Showing
12 changed files
with
250 additions
and
147 deletions.
There are no files selected for viewing
This file contains 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,39 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
# | ||
# 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 | ||
|
||
|
||
[*] # 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,ini}] | ||
# 4 space indentation | ||
indent_size = 4 | ||
|
||
[*.{yml,zpt,pt,dtml}] | ||
# 2 space indentation | ||
indent_size = 2 | ||
|
||
[{Makefile,.gitmodules}] | ||
# Tab indentation (no size specified, but view as 4 spaces) | ||
indent_style = tab | ||
indent_size = unset | ||
tab_width = unset |
This file contains 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,54 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
name: tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 12 * * 0' # run once a week on Sunday | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
config: | ||
# [Python version, tox env] | ||
- ["3.8", "lint"] | ||
- ["2.7", "py27"] | ||
- ["3.5", "py35"] | ||
- ["3.6", "py36"] | ||
- ["3.7", "py37"] | ||
- ["3.8", "py38"] | ||
- ["3.9", "py39"] | ||
- ["3.8", "coverage"] | ||
|
||
runs-on: ubuntu-latest | ||
name: ${{ matrix.config[1] }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.config[0] }} | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.config[0] }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test | ||
run: tox -e ${{ matrix.config[1] }} | ||
- name: Coverage | ||
if: matrix.config[1] == 'coverage' | ||
run: | | ||
pip install coveralls coverage-python-version | ||
coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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,52 +1,29 @@ | ||
# mac cruft | ||
.DS_Store | ||
|
||
#emacs cruft | ||
*~ | ||
*#* | ||
*flymake.py | ||
.ropeproject | ||
|
||
# vim cruft | ||
*.swp | ||
|
||
# wing cruft | ||
*.wpr | ||
|
||
#buildout/virtualenv cruft | ||
bin | ||
lib | ||
src | ||
include | ||
parts | ||
develop-eggs | ||
.installed.cfg | ||
.mr.developer.cfg | ||
|
||
#python cruft | ||
*.egg | ||
*.egg-info | ||
.noseids | ||
*prof* | ||
pip-log.txt | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
*.egg-info/ | ||
*.profraw | ||
*.pyc | ||
dist | ||
pyvenv.cfg | ||
|
||
# test cruft | ||
*_test | ||
*.pyo | ||
.coverage | ||
.coverage.* | ||
.eggs/ | ||
.installed.cfg | ||
.mr.developer.cfg | ||
.tox/ | ||
.vscode/ | ||
__pycache__/ | ||
bin/ | ||
build/ | ||
coverage.xml | ||
# SQLite test db | ||
testdb | ||
|
||
# Sphinx cruft | ||
_build | ||
|
||
# backup cruft | ||
*.old | ||
*.orig | ||
|
||
# Misc cruft | ||
*.log | ||
*.pid | ||
develop-eggs/ | ||
develop/ | ||
dist/ | ||
docs/_build | ||
eggs/ | ||
etc/ | ||
lib/ | ||
lib64 | ||
log/ | ||
parts/ | ||
pyvenv.cfg | ||
var/ |
This file contains 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,29 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
[meta] | ||
template = "zope-product" | ||
commit-id = "1e429ac2cee8215eabfd77a45e1def750ebaa4a2" | ||
|
||
[python] | ||
with-appveyor = false | ||
with-pypy = false | ||
with-legacy-python = true | ||
with-docs = false | ||
with-sphinx-doctests = false | ||
|
||
[tox] | ||
use-flake8 = true | ||
|
||
[coverage] | ||
fail-under = 75 | ||
|
||
[isort] | ||
known_zope = "transaction" | ||
known_first_party = "z3c.sqlalchemy, zope.sqlalchemy" | ||
known_third_party = "mock, six, sqlalchemy, testfixtures" | ||
|
||
[manifest] | ||
additional-rules = [ | ||
"include buildout4.cfg", | ||
"recursive-include src *.zpt", | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains 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,9 +1,14 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
include *.rst | ||
include *.py | ||
include *.txt | ||
include buildout.cfg | ||
include zope4.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 *.zpt |
This file contains 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 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,5 @@ | ||
[buildout] | ||
extends = | ||
buildout.cfg | ||
http://zopefoundation.github.io/Zope/releases/4.x/versions.cfg | ||
|
This file contains 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,31 +1,25 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/zope-product | ||
[bdist_wheel] | ||
universal = 0 | ||
universal = 1 | ||
|
||
[flake8] | ||
doctests = 1 | ||
no-accept-encodings = True | ||
htmldir = parts/flake8 | ||
|
||
[check-manifest] | ||
ignore = | ||
.editorconfig | ||
.meta.toml | ||
|
||
[isort] | ||
force_single_line = True | ||
combine_as_imports = True | ||
sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER | ||
known_first_party = z3c.sqlalchemy | ||
known_third_party = mock, six, sqlalchemy, testfixtures | ||
known_zope = transaction | ||
known_first_party = z3c.sqlalchemy, zope.sqlalchemy | ||
default_section = ZOPE | ||
line_length = 79 | ||
lines_after_imports = 2 | ||
|
||
[flake8] | ||
no-accept-encodings = True | ||
|
||
|
||
[coverage:run] | ||
branch = True | ||
source = Products.SQLAlchemyDA | ||
omit = | ||
|
||
[coverage:report] | ||
precision = 2 | ||
show_missing = False | ||
sort = Name | ||
|
||
[coverage:html] | ||
directory = parts/coverage |
This file contains 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
Oops, something went wrong.