Skip to content

Commit

Permalink
Configuring for pure-python-without-pypy (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 19, 2020
1 parent 45478e0 commit 80cc521
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 232 deletions.
10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

36 changes: 36 additions & 0 deletions .editorconfig
@@ -0,0 +1,36 @@
# EditorConfig Configurtaion 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
31 changes: 13 additions & 18 deletions .gitignore
@@ -1,22 +1,17 @@
bin
build
/develop-eggs/
/eggs
dist
lib
parts
/src/zope.testrunner
.eggs
.tox
*.egg-info
*.profraw
*.pyc
*.pyo
.coverage
.installed.cfg
.mr.developer.cfg
.tox/
bin/
coverage.xml
nosetests.xml
htmlcov

*.dll
*.pyc
*.pyo
*.so
*.egg-info
develop-eggs/
dist/
htmlcov/
lib/
lib64
parts/
pyvenv.cfg
33 changes: 31 additions & 2 deletions .travis.yml
@@ -1,3 +1,32 @@
version: ~> 1.0
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python-without-pypy
language: python
import: zopefoundation/meta:travis-ci-config/minimal-no-pypy.yml
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8

matrix:
include:
- name: "flake8"
python: 3.7
env: TOXENV="flake8"
- name: "coverage"
python: 3.7
env: TOXENV="coverage"
after_success:
- coveralls

install:
- pip install -U pip
- pip install -U tox-travis coveralls

script:
- tox

notifications:
email: false

cache: pip
7 changes: 2 additions & 5 deletions MANIFEST.in
@@ -1,7 +1,4 @@
include *.rst
include *.txt

recursive-include src *

global-exclude *.pyc
global-exclude *.pyo
include buildout.cfg
include tox.ini
189 changes: 0 additions & 189 deletions bootstrap.py

This file was deleted.

5 changes: 5 additions & 0 deletions setup.cfg
@@ -0,0 +1,5 @@
[zest.releaser]
create-wheel = yes

[flake8]
doctests = 1
28 changes: 20 additions & 8 deletions tox.ini
Expand Up @@ -13,16 +13,28 @@ commands =
zope-testrunner --test-path=src []
extras = test

[testenv:coverage]
basepython = python3
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=100
deps =
coverage

[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
commands = flake8 src setup.py

[testenv:coverage]
basepython = python3
deps =
coverage
commands =
coverage run -m zope.testrunner --test-path=src []
coverage html
coverage report

[coverage:run]
branch = True
source = src

[coverage:report]
precision = 2
exclude_lines = pragma: no cover

[coverage:html]
directory = htmlcov

0 comments on commit 80cc521

Please sign in to comment.