Skip to content

Commit ad1847a

Browse files
Updated files with 'repo_helper'. (#28)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 7a0099e commit ad1847a

19 files changed

+209
-63
lines changed

.bumpversion.cfg

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ current_version = 0.2.1
33
commit = True
44
tag = True
55

6-
[bumpversion:file:__pkginfo__.py]
7-
86
[bumpversion:file:README.rst]
97

108
[bumpversion:file:doc-source/index.rst]
@@ -15,4 +13,11 @@ tag = True
1513

1614
[bumpversion:file:flake8_sphinx_links/__init__.py]
1715

16+
search = : str = "{current_version}"
17+
replace = : str = "{new_version}"
18+
1819
[bumpversion:file:pyproject.toml]
20+
search = version = "{current_version}"
21+
replace = version = "{new_version}"
22+
23+
[bumpversion:file:.github/workflows/conda_ci.yml]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If possible, please include a small, self-contained reproduction.
4444
* flake8_sphinx_links:
4545

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

4949

5050
## Other Additional Information:

.github/actions_build_conda.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@
33

44
set -e -x
55

6-
python -m repo_helper make-recipe || exit 1
6+
python -m mkrecipe --type wheel || exit 1
77

88
# Switch to miniconda
99
source "/home/runner/miniconda/etc/profile.d/conda.sh"
1010
hash -r
1111
conda activate base
1212
conda config --set always_yes yes --set changeps1 no
13-
conda update -q conda
14-
conda install conda-build
15-
conda install anaconda-client
13+
conda install conda=4.8.5 conda-build=3.18.11
1614
conda info -a
1715

1816
conda config --add channels conda-forge || exit 1
1917
conda config --add channels domdfcoding || exit 1
18+
conda config --remove channels defaults
2019

2120
conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist --skip-existing
2221

.github/actions_deploy_conda.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ source "/home/runner/miniconda/etc/profile.d/conda.sh"
88
hash -r
99
conda activate base
1010
conda config --set always_yes yes --set changeps1 no
11-
conda update -q conda
12-
conda install anaconda-client
11+
conda install conda=4.8.5 anaconda-client
1312
conda info -a
1413

1514
for f in conda/dist/noarch/flake8_sphinx_links-*.tar.bz2; do

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ 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
3434
markComment: >

.github/workflows/conda_ci.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ name: Conda Tests
44

55
on:
66
push:
7-
pull_request:
87
branches: ["master"]
98

9+
permissions:
10+
contents: read
11+
1012
jobs:
1113
tests:
1214
name: "Conda"
13-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-18.04
1416

1517
steps:
1618
- name: Checkout 🛎️
@@ -26,19 +28,30 @@ jobs:
2628
python -VV
2729
python -m site
2830
python -m pip install --upgrade pip setuptools wheel
29-
python -m pip install --upgrade repo_helper
31+
python -m pip install --upgrade whey-conda
3032
# $CONDA is an environment variable pointing to the root of the miniconda directory
3133
$CONDA/bin/conda update -q conda
3234
$CONDA/bin/conda install conda-build=3.21.0
3335
3436
$CONDA/bin/conda config --add channels conda-forge
3537
$CONDA/bin/conda config --add channels domdfcoding
3638
37-
- name: "Build and install package"
39+
- name: "Build and index channel"
3840
run: |
39-
# This mess is only necessary because conda won't fix it themselves
40-
# https://github.com/conda/conda/issues/1884
41-
42-
python -m repo_helper build --conda --out-dir conda-bld/noarch
41+
python -m whey --builder whey_conda --out-dir conda-bld/noarch
4342
$CONDA/bin/conda index ./conda-bld || exit 1
44-
$CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8_sphinx_links -y || exit 1
43+
44+
- name: "Search for package"
45+
run: |
46+
$CONDA/bin/conda search -c file://$(pwd)/conda-bld flake8_sphinx_links
47+
$CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels flake8_sphinx_links
48+
49+
- name: "Install package"
50+
run: |
51+
$CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8_sphinx_links=0.2.1=py_1 -y || exit 1
52+
53+
- name: "Run Tests"
54+
run: |
55+
rm -rf flake8_sphinx_links
56+
$CONDA/bin/pip install -r tests/requirements.txt
57+
$CONDA/bin/pytest tests/

.github/workflows/docs_test_action.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,35 @@
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+
pull_request:
10+
11+
permissions:
12+
contents: read
713

814
jobs:
915
docs:
1016
runs-on: ubuntu-latest
1117
steps:
1218
- name: Checkout 🛎️
1319
uses: "actions/checkout@v1"
20+
21+
- name: Check for changed files
22+
uses: dorny/paths-filter@v2
23+
id: changes
24+
with:
25+
list-files: "json"
26+
filters: |
27+
code:
28+
- '!tests/**'
29+
1430
- name: Install and Build 🔧
15-
uses: ammaraskar/sphinx-action@master
31+
uses: sphinx-toolbox/[email protected]
32+
if: steps.changes.outputs.code == 'true'
1633
with:
17-
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
34+
pre-build-command: python -m pip install tox
1835
docs-folder: "doc-source/"
19-
build-command: "tox -e docs -- "
36+
build-command: "tox -e docs -- -W "

.github/workflows/flake8.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ name: Flake8
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
710
pull_request:
8-
branches: ["master"]
11+
12+
permissions:
13+
contents: read
914

1015
jobs:
1116
Run:
@@ -16,17 +21,29 @@ jobs:
1621
- name: Checkout 🛎️
1722
uses: "actions/checkout@v2"
1823

24+
- name: Check for changed files
25+
uses: dorny/paths-filter@v2
26+
id: changes
27+
with:
28+
list-files: "json"
29+
filters: |
30+
code:
31+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
32+
1933
- name: Setup Python 🐍
34+
if: steps.changes.outputs.code == 'true'
2035
uses: "actions/setup-python@v2"
2136
with:
22-
python-version: "3.8"
37+
python-version: "3.6"
2338

2439
- name: Install dependencies 🔧
40+
if: steps.changes.outputs.code == 'true'
2541
run: |
2642
python -VV
2743
python -m site
2844
python -m pip install --upgrade pip setuptools wheel
2945
python -m pip install tox
3046
3147
- name: "Run Flake8"
32-
run: "python -m tox -e lint -- --format github"
48+
if: steps.changes.outputs.code == 'true'
49+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ name: mypy
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
710
pull_request:
8-
branches: ["master"]
11+
12+
permissions:
13+
contents: read
914

1015
jobs:
1116
Run:
@@ -14,14 +19,24 @@ jobs:
1419

1520
strategy:
1621
matrix:
17-
os: ['windows-2019', 'macos-latest', 'ubuntu-20.04']
22+
os: ['ubuntu-20.04', 'windows-2019']
1823
fail-fast: false
1924

2025
steps:
2126
- name: Checkout 🛎️
2227
uses: "actions/checkout@v2"
2328

29+
- name: Check for changed files
30+
uses: dorny/paths-filter@v2
31+
id: changes
32+
with:
33+
list-files: "json"
34+
filters: |
35+
code:
36+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
37+
2438
- name: Setup Python 🐍
39+
if: steps.changes.outputs.code == 'true'
2540
uses: "actions/setup-python@v2"
2641
with:
2742
python-version: "3.6"
@@ -34,4 +49,5 @@ jobs:
3449
python -m pip install --upgrade tox virtualenv
3550
3651
- name: "Run mypy"
37-
run: "python -m tox -e mypy"
52+
if: steps.changes.outputs.code == 'true'
53+
run: "python -m tox -e mypy -s false"

.github/workflows/octocheese.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
name: "GitHub Releases"
55
on:
6-
push:
7-
branches: ["master"]
86
schedule:
9-
- cron: 0 12 * * 2,4,6
7+
- cron: 0 12 * * *
108

119
jobs:
1210
Run:

0 commit comments

Comments
 (0)