Skip to content

Commit 500c9e6

Browse files
Updated files with 'repo_helper'.
1 parent 652b099 commit 500c9e6

34 files changed

+908
-438
lines changed

.bumpversion.cfg

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ current_version = 0.2.5
33
commit = True
44
tag = True
55

6-
[bumpversion:file:__pkginfo__.py]
7-
86
[bumpversion:file:domdf_wxpython_tools/__init__.py]
97

8+
search = : str = "{current_version}"
9+
replace = : str = "{new_version}"
10+
1011
[bumpversion:file:README.rst]
1112

1213
[bumpversion:file:doc-source/index.rst]
1314

1415
[bumpversion:file:repo_helper.yml]
16+
17+
[bumpversion:file:pyproject.toml]
18+
search = version = "{current_version}"
19+
replace = version = "{new_version}"
20+
21+
[bumpversion:file:setup.cfg]
22+
search = version = {current_version}
23+
replace = version = {new_version}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
1717

1818

1919
## Steps to Reproduce
20-
<!--Please add a series of steps to reproduce the issue-->
20+
<!--Please add a series of steps to reproduce the issue.
21+
22+
If possible, please include a small, self-contained reproduction.
23+
-->
2124

2225
1.
2326
2.
@@ -41,7 +44,7 @@ THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
4144
* domdf_wxpython_tools:
4245

4346
## Installation source
44-
<!-- e.g. Github repository, Github Releases, PyPI/pip, Anaconda/conda -->
47+
<!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda -->
4548

4649

4750
## Other Additional Information:

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
version: 2
4+
updates:
5+
- package-ecosystem: pip
6+
directory: /
7+
schedule:
8+
interval: weekly
9+
reviewers:
10+
- domdfcoding

.github/milestones.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python
2+
3+
# stdlib
4+
import os
5+
import sys
6+
7+
# 3rd party
8+
from github3 import GitHub
9+
from github3.repos import Repository
10+
from packaging.version import InvalidVersion, Version
11+
12+
latest_tag = os.environ["GITHUB_REF_NAME"]
13+
14+
try:
15+
current_version = Version(latest_tag)
16+
except InvalidVersion:
17+
sys.exit()
18+
19+
gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"])
20+
repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1))
21+
22+
for milestone in repo.milestones(state="open"):
23+
try:
24+
milestone_version = Version(milestone.title)
25+
except InvalidVersion:
26+
continue
27+
if milestone_version == current_version:
28+
sys.exit(not milestone.update(state="closed"))

.github/stale.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ daysUntilStale: 180
77

88
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
99
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
10-
daysUntilClose: 180
10+
daysUntilClose: false
1111

1212
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
1313
onlyLabels: []
@@ -28,13 +28,13 @@ exemptMilestones: false
2828
exemptAssignees: false
2929

3030
# Label to use when marking as stale
31-
staleLabel: wontfix
31+
staleLabel: stale
3232

3333
# Comment to post when marking as stale. Set to `false` to disable
34-
markComment: >
35-
This issue has been automatically marked as stale because it has not had
36-
recent activity. It will be closed if no further activity occurs. Thank you
37-
for your contributions.
34+
markComment: false
35+
# This issue has been automatically marked as stale because it has not had
36+
# recent activity. It will be closed if no further activity occurs. Thank you
37+
# for your contributions.
3838

3939
# Comment to post when removing the stale label.
4040
# unmarkComment: >

.github/workflows/cleanup.yml

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

.github/workflows/docs_test_action.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22
---
33
name: "Docs Check"
44
on:
5-
- pull_request
6-
- push
5+
push:
6+
branches-ignore:
7+
- 'repo-helper-update'
8+
- 'pre-commit-ci-update-config'
9+
- 'imgbot'
10+
pull_request:
11+
12+
permissions:
13+
contents: read
714

815
jobs:
916
docs:
1017
runs-on: ubuntu-latest
1118
steps:
1219
- name: Checkout 🛎️
13-
uses: "actions/checkout@v1"
20+
uses: "actions/checkout@v3"
21+
1422
- name: Install and Build 🔧
15-
uses: ammaraskar/sphinx-action@master
23+
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
24+
1625
with:
17-
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
26+
pre-build-command: python -m pip install tox
1827
docs-folder: "doc-source/"
1928
build-command: "tox -e docs -- "

.github/workflows/flake8.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Flake8
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
Run:
18+
name: "Flake8"
19+
runs-on: "ubuntu-20.04"
20+
21+
steps:
22+
- name: Checkout 🛎️
23+
uses: "actions/checkout@v3"
24+
25+
- name: Check for changed files
26+
uses: dorny/paths-filter@v2
27+
id: changes
28+
with:
29+
list-files: "json"
30+
filters: |
31+
code:
32+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
33+
34+
- name: Setup Python 🐍
35+
if: steps.changes.outputs.code == 'true'
36+
uses: "actions/setup-python@v4"
37+
with:
38+
python-version: "3.6"
39+
40+
- name: Install dependencies 🔧
41+
if: steps.changes.outputs.code == 'true'
42+
run: |
43+
python -VV
44+
python -m site
45+
python -m pip install --upgrade pip setuptools wheel
46+
python -m pip install tox~=3.0
47+
48+
- name: "Run Flake8"
49+
if: steps.changes.outputs.code == 'true'
50+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: mypy
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
Run:
18+
name: "mypy / ${{ matrix.os }}"
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
os: ['ubuntu-20.04', 'windows-2019']
24+
fail-fast: false
25+
26+
steps:
27+
- name: Checkout 🛎️
28+
uses: "actions/checkout@v3"
29+
30+
- name: Check for changed files
31+
uses: dorny/paths-filter@v2
32+
id: changes
33+
with:
34+
list-files: "json"
35+
filters: |
36+
code:
37+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
38+
39+
- name: Setup Python 🐍
40+
if: steps.changes.outputs.code == 'true'
41+
uses: "actions/setup-python@v4"
42+
with:
43+
python-version: "3.6"
44+
45+
- name: Install dependencies 🔧
46+
run: |
47+
python -VV
48+
python -m site
49+
python -m pip install --upgrade pip setuptools wheel
50+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
51+
52+
- name: "Run mypy"
53+
if: steps.changes.outputs.code == 'true'
54+
run: "python -m tox -e mypy -s false"

.github/workflows/octocheese.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
name: "GitHub Releases"
55
on:
6-
push:
76
schedule:
8-
- cron: 0 12 * * 2,4,6
7+
- cron: 0 12 * * *
98

109
jobs:
1110
Run:
@@ -16,3 +15,4 @@ jobs:
1615
pypi_name: "domdf_wxpython_tools"
1716
env:
1817
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
18+
if: startsWith(github.ref, 'refs/tags/') != true

0 commit comments

Comments
 (0)