Skip to content

Commit a062df0

Browse files
authored
Merge pull request #120 from bird-house/upstream-changes
Upstream changes
2 parents 231d17e + 6ac70a8 commit a062df0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1522
-998
lines changed

.coveragerc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ updates:
99
directory: "/"
1010
schedule:
1111
interval: "monthly"
12+
13+
- package-ecosystem: "pip"
14+
directory: "/CI"
15+
schedule:
16+
interval: "monthly"

.github/workflows/main.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ on:
77
pull_request:
88

99
concurrency:
10-
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on master.
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
10+
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on main.
11+
group: "${{ github.workflow }}-${{ github.ref }}"
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
jobs:
1515
test:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
1919
include:
20-
- tox-env: py37
21-
python-version: "3.7"
22-
- tox-env: py38
23-
python-version: "3.8"
2420
- tox-env: py39
2521
python-version: "3.9"
2622
- tox-env: py310
@@ -29,24 +25,26 @@ jobs:
2925
python-version: "3.11"
3026
- tox-env: py312
3127
python-version: "3.12"
32-
- tox-env: pypy38-nogdal
33-
python-version: "pypy-3.8"
34-
- tox-env: pypy310-nogdal
28+
- tox-env: pypy39
29+
python-version: "pypy-3.9"
30+
- tox-env: pypy310
3531
python-version: "pypy-3.10"
3632
steps:
3733
- name: Checkout repository and submodules
38-
uses: actions/checkout@v4
34+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3935
with:
4036
submodules: recursive
4137
- name: Install packages
4238
run: |
4339
sudo apt-get -y install pandoc
4440
- name: Set up Python ${{ matrix.python-version }}
45-
uses: actions/setup-python@v5
41+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
4642
with:
4743
python-version: ${{ matrix.python-version }}
48-
- name: Install tox
44+
cache: "pip"
45+
- name: Install CI dependencies
4946
run: |
50-
pip install tox
47+
python -m pip install --require-hashes -r CI/requirements_ci.txt
5148
- name: Test with pytest and tox ⚙️
52-
run: tox -e ${{ matrix.tox-env }}
49+
run: |
50+
python -m tox -e ${{ matrix.tox-env }}

CHANGES.rst renamed to CHANGELOG.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
CHANGES
22
********
33

4-
0.6.0
5-
=====
4+
1.0.0 (2024-10-03)
5+
==================
66

77
Changes:
88

9-
* Replace `search` by `parse` in the bumpversion config for `docs/conf.py` to support the `version|release` expression.
9+
* Replace `search` by `parse` in the bumpversion config for `docs/conf.py` to support the `version|release` expression. (#107, #108).
10+
* Dropped Travis CI and migrated to using GitHub Actions for CI/CD (#112).
11+
* Updated PyWPS to 4.5.0 (#112).
12+
* Ported upstream changes from `cookiecutter-pypackage` and re-enabled testing (#115).
13+
* Added a Makefile command for running `nb-val` with `lax` flags (#116).
14+
* Updated the package metadata to reflect the current state of the project (#117).
15+
* Dropped support for Python2 as well as Python3.8 and below (#120).
16+
* Top-level documentation has been updated to reflect the changes in the project (#120).
17+
* Now using `bump-my-version` for version management and `pre-commit` for code formatting (#120).
18+
* Projects now use a `src`-based directory structure (#120).
19+
* Both the top-level package and rendered templates are now PEP 517 and PEP 621 compliant (`pyproject.toml`) (#120).
1020

1121
0.5.0 (2020-10-07)
1222
==================

CI/requirements_ci.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tox==4.18.0

CI/requirements_ci.txt

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
4+
#
5+
# pip-compile --generate-hashes --output-file=CI/requirements_ci.txt CI/requirements_ci.in
6+
#
7+
cachetools==5.4.0 \
8+
--hash=sha256:3ae3b49a3d5e28a77a0be2b37dbcb89005058959cb2323858c2657c4a8cab474 \
9+
--hash=sha256:b8adc2e7c07f105ced7bc56dbb6dfbe7c4a00acce20e2227b3f355be89bc6827
10+
# via tox
11+
chardet==5.2.0 \
12+
--hash=sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7 \
13+
--hash=sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970
14+
# via tox
15+
colorama==0.4.6 \
16+
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
17+
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
18+
# via tox
19+
distlib==0.3.8 \
20+
--hash=sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784 \
21+
--hash=sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64
22+
# via virtualenv
23+
filelock==3.15.4 \
24+
--hash=sha256:2207938cbc1844345cb01a5a95524dae30f0ce089eba5b00378295a17e3e90cb \
25+
--hash=sha256:6ca1fffae96225dab4c6eaf1c4f4f28cd2568d3ec2a44e15a08520504de468e7
26+
# via
27+
# tox
28+
# virtualenv
29+
packaging==24.1 \
30+
--hash=sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002 \
31+
--hash=sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
32+
# via
33+
# pyproject-api
34+
# tox
35+
platformdirs==4.2.2 \
36+
--hash=sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee \
37+
--hash=sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3
38+
# via
39+
# tox
40+
# virtualenv
41+
pluggy==1.5.0 \
42+
--hash=sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1 \
43+
--hash=sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669
44+
# via tox
45+
pyproject-api==1.7.1 \
46+
--hash=sha256:2dc1654062c2b27733d8fd4cdda672b22fe8741ef1dde8e3a998a9547b071eeb \
47+
--hash=sha256:7ebc6cd10710f89f4cf2a2731710a98abce37ebff19427116ff2174c9236a827
48+
# via tox
49+
tomli==2.0.1 \
50+
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
51+
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
52+
# via
53+
# pyproject-api
54+
# tox
55+
tox==4.18.0 \
56+
--hash=sha256:0a457400cf70615dc0627eb70d293e80cd95d8ce174bb40ac011011f0c03a249 \
57+
--hash=sha256:5dfa1cab9f146becd6e351333a82f9e0ade374451630ba65ee54584624c27b58
58+
# via -r requirements_ci.in
59+
virtualenv==20.26.3 \
60+
--hash=sha256:4c43a2a236279d9ea36a0d76f98d84bd6ca94ac4e0f4a3b9d46d05e10fea542a \
61+
--hash=sha256:8cc4a31139e796e9a7de2cd5cf2489de1217193116a8fd42328f1bd65f434589
62+
# via tox

CONTRIBUTING.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ development. Please note this documentation assumes you already have
116116

117117
.. code-block:: bash
118118
119-
$ pip install -rrequirements_dev.txt
119+
$ pip install -r requirements_dev.txt
120120
$ pytest ./tests
121121
122122
If you get any errors while installing cryptography package (something like
@@ -233,4 +233,3 @@ To write and run your new test, follow these steps:
233233
.. cookiecutter: https://github.com/audreyr/cookiecutter-pypackage
234234
.. virtualenv: https://virtualenv.pypa.io/en/stable/installation
235235
.. git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
236-

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright (c) Audrey Roy Greenfeld and individual contributors.
1+
Copyright (c) 2018, Audrey Roy Greenfeld and individual contributors.
2+
3+
Copyright (c) 2019, Carsten Ehbrecht, Long Vu, Trevor James Smith, David Huard, and individual contributors.
24

35
All rights reserved.
46

MANIFEST.in

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1+
include CHANGELOG.rst
2+
include CONTRIBUTING.rst
3+
include LICENSE
14
include Makefile
2-
include requirements_dev.txt
5+
include README.rst
6+
include cookiecutter.json
7+
include tox.ini
8+
9+
exclude .editorconfig
10+
exclude .gitignore
11+
exclude .readthedocs.yml
12+
13+
recursive-include {{cookiecutter.project_slug}} *
14+
recursive-include docs *.rst conf.py Makefile *.svg *.ico
15+
recursive-include hooks *.py
16+
recursive-include tests *.py
17+
recursive-exclude * __pycache__
18+
recursive-exclude * *.py[co]
19+
recursive-exclude .github *

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
COOKIES_DIR=$(CURDIR)/cookies
2-
BAKE_OPTIONS=--no-input --output-dir $(COOKIES_DIR)
1+
COOKIES_DIR = $(CURDIR)/cookies
2+
BAKE_OPTIONS ?= --no-input
3+
NO_CRUFT = generated_with_cruft=n
34

45
.DEFAULT_GOAL := all
56

@@ -30,7 +31,8 @@ clean:
3031
.PHONY: bake
3132
bake:
3233
@echo "Creating a new project with default settings"
33-
@bash -c 'cookiecutter $(BAKE_OPTIONS) . --overwrite-if-exists'
34+
@mkdir -p "cookies"
35+
@bash -c 'cookiecutter $(BAKE_OPTIONS) . --output-dir $(COOKIES_DIR) --overwrite-if-exists $(NO_CRUFT)'
3436

3537
.PHONY: docs
3638
docs:
@@ -40,8 +42,8 @@ docs:
4042
@-bash -c 'xdg-open $(CURDIR)/docs/build/html/index.html'
4143

4244
# generate project using defaults and watch for changes
43-
# watch: bake
44-
# watchmedo shell-command -p '*.*' -c 'make bake -e BAKE_OPTIONS=$(BAKE_OPTIONS)' -W -R -D \{{cookiecutter.project_slug}}/
45+
watch: bake
46+
watchmedo shell-command -p '*.*' -c 'make bake -e BAKE_OPTIONS=$(BAKE_OPTIONS)' -W -R -D \{{cookiecutter.project_slug}}/
4547
#
4648
# replay last cookiecutter run and watch for changes
4749
# replay: BAKE_OPTIONS=--replay

0 commit comments

Comments
 (0)