This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
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 #14 from zopefoundation/config-with-pure-python
Config with pure python + Setup GHA + Lint the code. Add support for modern Python versions. Adapt package layout to defaults.
- Loading branch information
Showing
17 changed files
with
381 additions
and
266 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/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 |
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/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"] | ||
- ["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-${{ hashFiles('setup.*', 'tox.ini') }} | ||
restore-keys: | | ||
${{ 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 | ||
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,6 +1,24 @@ | ||
*.pyc | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
*.egg-info/ | ||
*.profraw | ||
*.pyc | ||
*.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 |
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,21 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
[meta] | ||
template = pure-python | ||
commit-id = 8b8b3d3a8e4e2aec65a3d06a20358f21cff98aa7 | ||
with-pypy = False | ||
fail-under = 0 | ||
additional-manifest-rules = | ||
exclude docs | ||
prune docs | ||
recursive-include bobodoctestumentation *.bat | ||
recursive-include bobodoctestumentation *.html | ||
recursive-include bobodoctestumentation *.ini | ||
recursive-include bobodoctestumentation *.png | ||
recursive-include bobodoctestumentation *.py | ||
recursive-include bobodoctestumentation *.svg | ||
recursive-include bobodoctestumentation *.test | ||
recursive-include bobodoctestumentation *.txt | ||
recursive-include bobodoctestumentation Makefile | ||
include bobodoctestumentation/src/bobodoctestumentation/htpasswd | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,33 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
include *.rst | ||
include *.txt | ||
include buildout.cfg | ||
include tox.ini | ||
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 *.gif | ||
recursive-include src *.pt | ||
recursive-include src *.py | ||
recursive-include src *.rst | ||
recursive-include src *.txt | ||
recursive-include src *.xml | ||
recursive-include src *.zcml | ||
exclude docs | ||
prune docs | ||
recursive-include bobodoctestumentation *.bat | ||
recursive-include bobodoctestumentation *.html | ||
recursive-include bobodoctestumentation *.ini | ||
recursive-include bobodoctestumentation *.png | ||
recursive-include bobodoctestumentation *.py | ||
recursive-include bobodoctestumentation *.svg | ||
recursive-include bobodoctestumentation *.test | ||
recursive-include bobodoctestumentation *.txt | ||
recursive-include bobodoctestumentation Makefile | ||
include bobodoctestumentation/src/bobodoctestumentation/htpasswd |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Bobo | ||
==== | ||
|
||
Bobo is a light-weight framework for creating WSGI web applications. | ||
|
||
Its goal is to be easy to use and remember. | ||
|
||
It addresses 2 problems: | ||
|
||
- Mapping URLs to objects | ||
|
||
- Calling objects to generate HTTP responses | ||
|
||
Bobo doesn't have a templating language, a database integration layer, | ||
or a number of other features that are better provided by WSGI | ||
middle-ware or application-specific libraries. | ||
|
||
Bobo builds on other frameworks, most notably WSGI and WebOb. | ||
|
||
To learn more. visit: http://bobo.readthedocs.io | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.