Skip to content

Commit 1cc671d

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

22 files changed

+101
-43
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ current_version = 0.3.2
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]
@@ -18,3 +16,5 @@ replace = : str = "{new_version}"
1816
[bumpversion:file:pyproject.toml]
1917
search = version = "{current_version}"
2018
replace = version = "{new_version}"
19+
20+
[bumpversion:file:.github/workflows/conda_ci.yml]

.github/actions_build_conda.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ 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_strftime-*.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: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
tests:
1414
name: "Conda"
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-18.04
1616

1717
steps:
1818
- name: Checkout 🛎️
@@ -28,19 +28,30 @@ jobs:
2828
python -VV
2929
python -m site
3030
python -m pip install --upgrade pip setuptools wheel
31-
python -m pip install --upgrade repo_helper
31+
python -m pip install --upgrade whey-conda
3232
# $CONDA is an environment variable pointing to the root of the miniconda directory
3333
$CONDA/bin/conda update -q conda
3434
$CONDA/bin/conda install conda-build=3.21.0
3535
3636
$CONDA/bin/conda config --add channels conda-forge
3737
$CONDA/bin/conda config --add channels domdfcoding
3838
39-
- name: "Build and install package"
39+
- name: "Build and index channel"
4040
run: |
41-
# This mess is only necessary because conda won't fix it themselves
42-
# https://github.com/conda/conda/issues/1884
43-
44-
python -m repo_helper build --conda --out-dir conda-bld/noarch
41+
python -m whey --builder whey_conda --out-dir conda-bld/noarch
4542
$CONDA/bin/conda index ./conda-bld || exit 1
46-
$CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8_strftime -y || exit 1
43+
44+
- name: "Search for package"
45+
run: |
46+
$CONDA/bin/conda search -c file://$(pwd)/conda-bld flake8_strftime
47+
$CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels flake8_strftime
48+
49+
- name: "Install package"
50+
run: |
51+
$CONDA/bin/conda install -c file://$(pwd)/conda-bld flake8_strftime=0.3.2=py_1 -y || exit 1
52+
53+
- name: "Run Tests"
54+
run: |
55+
rm -rf flake8_strftime
56+
$CONDA/bin/pip install -r tests/requirements.txt
57+
$CONDA/bin/pytest tests/

.github/workflows/docs_test_action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
---
33
name: "Docs Check"
44
on:
5-
- push
5+
push:
6+
branches-ignore:
7+
- 'repo-helper-update'
8+
- 'pre-commit-ci-update-config'
9+
pull_request:
610

711
permissions:
812
contents: read

.github/workflows/flake8.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: Flake8
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
pull_request:
711

812
permissions:
913
contents: read

.github/workflows/mypy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: mypy
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
pull_request:
711

812
permissions:
913
contents: read

.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:

.github/workflows/python_ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ name: Windows
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
11+
pull_request:
712

813
permissions:
914
actions: write
@@ -15,7 +20,7 @@ jobs:
1520
runs-on: "windows-2019"
1621
continue-on-error: ${{ matrix.config.experimental }}
1722
env:
18-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
23+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-rc.1,pypy-3.6,pypy-3.7'
1924

2025
strategy:
2126
fail-fast: False
@@ -25,7 +30,7 @@ jobs:
2530
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2631
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2732
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
28-
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
33+
- {python-version: "3.10.0-rc.1", testenvs: "py310-dev,build", experimental: True}
2934
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3035
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3136

0 commit comments

Comments
 (0)