Skip to content

Commit

Permalink
Merge pull request #11 from zopefoundation/config-with-pure-python
Browse files Browse the repository at this point in the history
Config with pure python
  • Loading branch information
Michael Howitz committed Feb 16, 2021
2 parents 2f67c36 + eea5e20 commit 6d516a8
Show file tree
Hide file tree
Showing 23 changed files with 1,630 additions and 1,626 deletions.
6 changes: 0 additions & 6 deletions .bzrignore

This file was deleted.

11 changes: 0 additions & 11 deletions .coveragerc

This file was deleted.

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

on:
push:
branches: [ master ]
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"]
- ["pypy2", "pypy"]
- ["pypy3", "pypy3"]
- ["3.8", "docs"]
- ["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 }}
31 changes: 26 additions & 5 deletions .gitignore
@@ -1,8 +1,29 @@
*.egg-info
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
*.egg-info/
*.profraw
*.pyc
.tox/
*.pyo
.coverage
.coverage.*
.eggs/
.installed.cfg
.mr.developer.cfg
.tox/
.vscode/
__pycache__/
bin/
build/
coverage.xml
nosetests.xml
htmlcov/
docs/_build/
develop-eggs/
develop/
dist/
docs/_build
eggs/
etc/
lib/
lib64
log/
parts/
pyvenv.cfg
var/
22 changes: 22 additions & 0 deletions .meta.toml
@@ -0,0 +1,22 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "8da7f1dd846036183b551ce1a617931151e44a33"

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

[coverage]
fail-under = 99

[flake8]
additional-config = [
"# E501 line too long",
"per-file-ignores =",
" src/zope/datetime/timezones.py: E501",
]
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions CHANGES.rst
Expand Up @@ -2,12 +2,12 @@
CHANGES
=========

5.0 (unreleased)
4.3.0 (unreleased)
==================

- Drop support for Python 3.4.

- Add support for Python 3.7.
- Add support for Python 3.7, 3.8 and 3.9.


4.2.0 (2017-08-14)
Expand Down
15 changes: 11 additions & 4 deletions MANIFEST.in
@@ -1,11 +1,18 @@
include *.txt
include *.py
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
include *.rst
include *.txt
include buildout.cfg
include tox.ini
include .travis.yml
include .coveragerc

recursive-include docs *.bat
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs *.txt
recursive-include docs Makefile

recursive-include src *.pt
recursive-include src *.py
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.zcml
6 changes: 4 additions & 2 deletions README.rst
Expand Up @@ -10,11 +10,13 @@
:target: https://pypi.org/project/zope.datetime/
:alt: Supported Python versions

.. image:: https://travis-ci.com/zopefoundation/zope.datetime.svg?branch=master
:target: https://travis-ci.com/zopefoundation/zope.datetime
.. image:: https://github.com/zopefoundation/zope.datetime/workflows/tests/badge.svg
:target: https://github.com/zopefoundation/zope.datetime/actions?query=workflow%3Atests
:alt: CI status

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.datetime/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.datetime?branch=master
:alt: Coverage

.. image:: https://readthedocs.org/projects/zopedatetime/badge/?version=latest
:target: https://zopedatetime.readthedocs.io/en/latest/
Expand Down

0 comments on commit 6d516a8

Please sign in to comment.