Skip to content

Commit 2c2f26a

Browse files
authored
Merge pull request #42 from iterative/cruft-update
cruft update
2 parents d127a37 + c0779e4 commit 2c2f26a

13 files changed

+65
-100
lines changed

.cruft.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/iterative/py-template",
3-
"commit": "46ace5315b5c697135c690bdbc42fd4a898b259a",
3+
"commit": "f1ee970dd61d000f61cfd952a6578df645c518c8",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -13,13 +13,9 @@
1313
"version": "0.0.0",
1414
"copyright_year": "2022",
1515
"license": "Apache-2.0",
16+
"docs": "False",
1617
"short_description": "Common library for sending telemetry",
1718
"development_status": "Development Status :: 1 - Planning",
18-
"_copy_without_render": [
19-
".github/workflows/release.yaml",
20-
".github/workflows/tests.yaml",
21-
".github/workflows/update-template.yaml"
22-
],
2319
"_template": "https://github.com/iterative/py-template"
2420
}
2521
},

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,23 @@ updates:
77
interval: "weekly"
88
labels:
99
- "maintenance"
10+
# Update via cruft
11+
ignore:
12+
- dependency-name: "mkdocs*"
13+
- dependency-name: "pytest*"
14+
- dependency-name: "pylint"
15+
- dependency-name: "mypy"
1016

1117
- directory: "/"
1218
package-ecosystem: "github-actions"
1319
schedule:
1420
interval: "weekly"
1521
labels:
1622
- "maintenance"
23+
# Update via cruft
24+
ignore:
25+
- dependency-name: "actions/checkout"
26+
- dependency-name: "actions/setup-python"
27+
- dependency-name: "pypa/gh-action-pypi-publish"
28+
- dependency-name: "codecov/codecov-action"
29+
- dependency-name: "peter-evans/create-pull-request"

.github/workflows/docs.yml

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

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
8+
env:
9+
FORCE_COLOR: "1"
610

711
jobs:
812
release:
913
runs-on: ubuntu-latest
1014
steps:
1115
- name: Check out the repository
12-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1319

14-
- name: Set up Python 3.7
15-
uses: actions/setup-python@v2
20+
- name: Set up Python 3.10
21+
uses: actions/setup-python@v4
1622
with:
17-
python-version: '3.7'
23+
python-version: '3.10'
1824

1925
- name: Upgrade pip and nox
2026
run: |
@@ -26,6 +32,7 @@ jobs:
2632
run: nox -s build
2733

2834
- name: Upload package
35+
if: github.event_name == 'release'
2936
uses: pypa/gh-action-pypi-publish@release/v1
3037
with:
3138
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/tests.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
env:
10+
FORCE_COLOR: "1"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
415

516
jobs:
617
tests:
@@ -10,14 +21,16 @@ jobs:
1021
fail-fast: false
1122
matrix:
1223
os: [ubuntu-20.04, windows-latest, macos-latest]
13-
pyv: ['3.7', '3.8', '3.9', '3.10']
24+
pyv: ['3.8', '3.9', '3.10']
1425

1526
steps:
1627
- name: Check out the repository
17-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
29+
with:
30+
fetch-depth: 0
1831

1932
- name: Set up Python ${{ matrix.pyv }}
20-
uses: actions/setup-python@v2
33+
uses: actions/setup-python@v4
2134
with:
2235
python-version: ${{ matrix.pyv }}
2336

@@ -34,7 +47,7 @@ jobs:
3447
run: nox -s tests-${{ matrix.pyv }} -- --cov-report=xml
3548

3649
- name: Upload coverage report
37-
uses: codecov/codecov-action@v2.1.0
50+
uses: codecov/codecov-action@v3.1.0
3851

3952
- name: Build package
4053
run: nox -s build
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
21
name: Update template
32

43
on:
54
schedule:
65
- cron: '5 1 * * *' # every day at 01:05
7-
86
workflow_dispatch:
97

108
jobs:
119
update:
1210
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2
15-
- name: Install deps
16-
run: pip install cruft
17-
- name: Update template
12+
- name: Check out the repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Update template via cruft
1821
id: update
1922
run: |
23+
pip install cruft
2024
cruft update -y
2125
echo "::set-output name=changes::$(git diff)"
26+
2227
- name: Create PR
2328
if: ${{ steps.update.outputs.changes != '' }}
24-
uses: peter-evans/create-pull-request@v3
29+
uses: peter-evans/create-pull-request@v4
2530
with:
2631
commit-message: update template
2732
title: update template

CONTRIBUTING.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ welcomes contributions in the form of bug reports, feature requests, and pull re
88
Here is a list of important resources for contributors:
99

1010
- `Source Code`_
11-
- `Documentation`_
1211
- `Issue Tracker`_
1312
- `Code of Conduct`_
1413

1514
.. _Apache 2.0 license: https://opensource.org/licenses/Apache-2.0
1615
.. _Source Code: https://github.com/iterative/iterative-telemetry
17-
.. _Documentation: https://iterative-telemetry.readthedocs.io/
1816
.. _Issue Tracker: https://github.com/iterative/iterative-telemetry/issues
1917

2018
How to report a bug
@@ -43,7 +41,7 @@ Request features on the `Issue Tracker`_.
4341
How to set up your development environment
4442
------------------------------------------
4543

46-
You need Python 3.7+ and the following tools:
44+
You need Python 3.8+ and the following tools:
4745

4846
- Nox_
4947

docs/assets/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.md

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

mkdocs.yml

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

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
locations = "src", "tests"
1010

1111

12-
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
12+
@nox.session(python=["3.8", "3.9", "3.10"])
1313
def tests(session: nox.Session) -> None:
1414
session.install(".[tests]")
1515
session.run(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=48", "wheel", "setuptools_scm[toml]>=6.3.1"]
2+
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]

setup.cfg

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ authors = Iterative
1111
maintainer_email = [email protected]
1212
classifiers =
1313
Programming Language :: Python :: 3
14-
Programming Language :: Python :: 3.7
1514
Programming Language :: Python :: 3.8
1615
Programming Language :: Python :: 3.9
1716
Programming Language :: Python :: 3.10
18-
Development Status :: 1 - Planning
17+
Development Status :: 4 - Beta
1918

2019
[options]
21-
python_requires = >=3.7
20+
python_requires = >=3.8
2221
zip_safe = False
2322
package_dir=
2423
=src
@@ -30,25 +29,16 @@ install_requires=
3029
distro
3130

3231
[options.extras_require]
33-
docs =
34-
mkdocs==1.3.0
35-
mkdocs-gen-files==0.3.4
36-
mkdocs-material==8.2.11
37-
mkdocs-section-index==0.3.4
38-
mkdocstrings-python==0.6.6
39-
4032
tests =
4133
pytest==7.1.2
42-
pytest-sugar==0.9.4
34+
pytest-sugar==0.9.5
4335
pytest-cov==3.0.0
44-
pytest-mock==3.7.0
45-
pylint==2.13.7
46-
mypy==0.942
36+
pytest-mock==3.8.2
37+
pylint==2.14.5
38+
mypy==0.971
4739
types-requests
48-
4940
dev =
5041
%(tests)s
51-
%(docs)s
5242

5343
[options.packages.find]
5444
exclude =

0 commit comments

Comments
 (0)