Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Configuring for pure-python
Browse files Browse the repository at this point in the history
  • Loading branch information
jugmac00 committed May 15, 2020
1 parent 88d857b commit 3c53307
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 222 deletions.
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
33 changes: 23 additions & 10 deletions .gitignore
@@ -1,11 +1,24 @@
*.egg
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
*.egg-info/
*.profraw
*.pyc
/*.egg-info
/.coverage
/.installed.cfg
/.tox
/bin
/develop-eggs
/doc.txt
/eggs
/parts
*.pyo
.coverage
.coverage.*
.installed.cfg
.mr.developer.cfg
.tox/
__pycache__/
bin/
build/
coverage.xml
develop-eggs/
dist/
docs/_build
eggs/
htmlcov/
lib/
lib64
parts/
pyvenv.cfg
7 changes: 7 additions & 0 deletions .meta.cfg
@@ -0,0 +1,7 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = pure-python
commit-id = 05894360cac01f1027889dd14a23ae372e808b3f
fail-under = 0

35 changes: 33 additions & 2 deletions .travis.yml
@@ -1,3 +1,34 @@
version: ~> 1.0
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
language: python
import: zopefoundation/meta:travis-ci-config/minimal.yml
python:
- 2.7
- pypy
- 3.5
- 3.6
- 3.7
- 3.8
- pypy3

matrix:
include:
- name: "lint"
python: 3.7
env: TOXENV="lint"
- 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
20 changes: 16 additions & 4 deletions MANIFEST.in
@@ -1,7 +1,19 @@
include *.py
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
include *.rst
include *.txt
include buildout.cfg
include tox.ini

recursive-include zc *.txt
exclude MANIFEST.in

global-exclude *.pyc
global-exclude *.pyo
recursive-include docs *.bat
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile

recursive-include src *.pt
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.xml
recursive-include src *.zcml
189 changes: 0 additions & 189 deletions bootstrap.py

This file was deleted.

11 changes: 11 additions & 0 deletions setup.cfg
@@ -1,2 +1,13 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[bdist_wheel]
universal = 1

[flake8]
doctests = 1

[check-manifest]
ignore =
.editorconfig
.meta.cfg
.travis.yml

0 comments on commit 3c53307

Please sign in to comment.