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

Config with pure python #49

Merged
merged 14 commits into from
Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 0 additions & 19 deletions .coveragerc

This file was deleted.

39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
#
# 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,zcml}]
# 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
63 changes: 63 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
name: tests

on:
push:
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"]
- ["2.7", "py27"]
- ["3.5", "py35"]
- ["3.6", "py36"]
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["pypy2", "pypy"]
- ["pypy3", "pypy3"]
- ["3.8", "docs"]
- ["3.8", "coverage"]

runs-on: ${{ matrix.os }}-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 }}
41 changes: 27 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
*.dll
*.egg-info/
*.profraw
*.pyc
*.pyo
*.so
*.dll
*.mo
__pycache__
src/*.egg-info

.installed.cfg
.tox
bin
build
develop-eggs
parts
docs/_build/
.coverage
.coverage.*
.eggs/
.installed.cfg
.mr.developer.cfg
.tox/
.vscode/
__pycache__/
bin/
build/
coverage.xml
nosetests.xml
htmlcov/
develop-eggs/
develop/
dist/
docs/_build
eggs/
etc/
lib/
lib64
log/
parts/
pyvenv.cfg
var/
44 changes: 44 additions & 0 deletions .meta.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "7f5b73fe9d2bcbabafaef5f69dd97408a142d42a"

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

[tox]
use-flake8 = true

[coverage]
fail-under = 99

[manifest]
additional-rules = [
"recursive-include docs *.bat",
"recursive-include src *.dtd",
"recursive-include src *.html",
"recursive-include src *.in",
"recursive-include src *.po",
"recursive-include src *.rst",
"recursive-include src *.txt",
"recursive-include src *.xml",
"recursive-include src *.zcml",
]

[check-manifest]
ignore-bad-ideas = [
"src/zope/i18n/tests/de-default.mo",
"src/zope/i18n/tests/en-alt.mo",
"src/zope/i18n/tests/en-default.mo",
"src/zope/i18n/tests/locale/de/LC_MESSAGES/zope-i18n.mo",
"src/zope/i18n/tests/locale/en/LC_MESSAGES/zope-i18n.mo",
"src/zope/i18n/tests/locale2/en/LC_MESSAGES/zope-i18n.mo",
"src/zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n.mo",
"src/zope/i18n/tests/pl-default.mo",
]
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
4.7.1 (unreleased)
==================

- Nothing changed yet.
- Support and test Python 3.8 and 3.9.
Full supported list is now: 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, PyPy, PyPy3.


4.7.0 (2019-07-10)
Expand Down
29 changes: 13 additions & 16 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
include *.txt
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
include *.rst
include *.py
include *.ini
include *.txt
include buildout.cfg
include .travis.yml
include tox.ini
include .coveragerc

recursive-include src *.txt *.py *.dtd *.xml *.html *.po *.mo *.in *.zcml
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs *.txt
recursive-include docs Makefile

recursive-include src *.py
recursive-include docs *.bat
recursive-include src *.dtd
recursive-include src *.xml
recursive-include src *.html
recursive-include src *.po
recursive-include src *.mo
recursive-include src *.in
recursive-include src *.zcml
recursive-include src *.po
recursive-include src *.rst

recursive-include src/zope/i18n/tests *.mo
recursive-include docs *.rst
recursive-include docs *.py
recursive-include docs *.bat
recursive-include docs Makefile
recursive-include src *.txt
recursive-include src *.xml
recursive-include src *.zcml
Loading