Skip to content

Commit

Permalink
Apply the new pypackage cookiecutter template
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Aug 29, 2022
1 parent 774617b commit 6784175
Show file tree
Hide file tree
Showing 36 changed files with 654 additions and 684 deletions.
15 changes: 0 additions & 15 deletions .cookiecutter.json

This file was deleted.

23 changes: 23 additions & 0 deletions .cookiecutter/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"template": "https://github.com/hypothesis/cookiecutters",
"checkout": null,
"directory": "pypackage",
"ignore": ["src/h_vialib/core.py", "tests/unit/h_vialib/core_test.py"],
"extra_context": {
"name": "h-vialib",
"package_name": "h_vialib",
"slug": "h-vialib",
"short_description": "Library functions for use with Via.",
"python_versions": "3.9.4,3.8.9",
"github_owner": "hypothesis",
"copyright_holder": "Hypothesis",
"visibility": "public",
"console_script": "no",
"devdata": "no",
"services": "no",
"dependabot_pip_interval": "monthly",
"__entry_point": "h-vialib",
"__github_url": "https://github.com/hypothesis/h-vialib",
"__pypi_url": "https://pypi.org/project/h-vialib"
}
}
10 changes: 10 additions & 0 deletions .cookiecutter/includes/README/head.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Usage
-----

This is an internal library, mostly of interest to maintainers of
[Via](https://github.com/hypothesis/via) and related components.

Some items of interest:

* [Configuration](https://github.com/hypothesis/h-vialib/blob/main/src/h_vialib/configuration.py) - Configuration parameter management
2 changes: 2 additions & 0 deletions .cookiecutter/includes/setuptools/install_requires
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pyjwt
webob
21 changes: 0 additions & 21 deletions .coveragerc

This file was deleted.

9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
day: "sunday"
time: "00:00"
timezone: "Europe/London"
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: CI
on:
push:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
Format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: python -m pip install tox
- run: tox -e checkformatting
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: python -m pip install tox
- run: tox -e lint
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.8']
name: Unit tests with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install tox
- run: tox -e tests
- name: Upload coverage file
uses: actions/upload-artifact@v3
with:
name: coverage
path: .coverage.*
Coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download coverage files
uses: actions/download-artifact@v3
with:
name: coverage
- run: python -m pip install tox
- run: tox -e coverage
Functests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.8']
name: Functional tests with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install tox
- run: tox -e functests
8 changes: 8 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: PyPI
on:
release:
types: [published]
jobs:
PyPI:
uses: hypothesis/workflows/.github/workflows/pypi.yml@main
secrets: inherit
161 changes: 0 additions & 161 deletions .github/workflows/pythonpackage.yml

This file was deleted.

20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
*.pyc
.coverage
.coverage.*
build
coverage
node_modules
yarn-error.log
.coverage*
.tox
.idea

build/
dist/
*.egg-info/
.eggs/
*.egg-info
*.pyc
supervisord.log
supervisord.pid
.DS_Store
.devdata.env
11 changes: 0 additions & 11 deletions .isort.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions .pydocstyle

This file was deleted.

Loading

0 comments on commit 6784175

Please sign in to comment.