Skip to content

Commit 91995c8

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

13 files changed

Lines changed: 89 additions & 83 deletions

.ci/actions_build_conda.sh

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

.ci/actions_deploy_conda.sh

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

.github/actions_build_conda.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# This file is managed by 'repo_helper'. Don't edit it directly.
3+
4+
set -e -x
5+
6+
python -m repo_helper make-recipe || exit 1
7+
8+
# Switch to miniconda
9+
source "/home/runner/miniconda/etc/profile.d/conda.sh"
10+
hash -r
11+
conda activate base
12+
conda config --set always_yes yes --set changeps1 no
13+
conda update -q conda
14+
conda install conda-build
15+
conda install anaconda-client
16+
conda info -a
17+
18+
conda config --add channels domdfcoding || exit 1
19+
20+
conda config --add channels conda-forge || exit 1
21+
22+
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
23+
24+
exit 0

.github/actions_deploy_conda.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# This file is managed by 'repo_helper'. Don't edit it directly.
3+
4+
set -e -x
5+
6+
# Switch to miniconda
7+
source "/home/runner/miniconda/etc/profile.d/conda.sh"
8+
hash -r
9+
conda activate base
10+
conda config --set always_yes yes --set changeps1 no
11+
conda update -q conda
12+
conda install anaconda-client
13+
conda info -a
14+
15+
for f in conda/dist/noarch/flake8_strftime-*.tar.bz2; do
16+
[ -e "$f" ] || continue
17+
echo "$f"
18+
conda install "$f" || exit 1
19+
echo "Deploying to Anaconda.org..."
20+
anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
21+
echo "Successfully deployed to Anaconda.org."
22+
done
23+
24+
exit 0

.github/workflows/cleanup.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Artefact Cleaner
4+
on:
5+
schedule:
6+
- cron: 0 9 1 * *
7+
jobs:
8+
Clean:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: cleanup
12+
uses: glassechidna/artifact-cleaner@v2
13+
with:
14+
minimumAge: 1000000.0

.github/workflows/python_ci_linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
shopt -s globstar
7777
python -m coverage combine coverage/**/.coverage
7878
79-
- name: "Upload Combined Coverage Aretfact"
79+
- name: "Upload Combined Coverage Artefact"
8080
uses: actions/upload-artifact@v2
8181
with:
8282
name: "combined-coverage"
@@ -143,13 +143,13 @@ jobs:
143143
144144
- name: Build Conda 📦
145145
run: |
146-
chmod +x .ci/actions_build_conda.sh
147-
bash .ci/actions_build_conda.sh
146+
chmod +x .github/actions_build_conda.sh
147+
bash .github/actions_build_conda.sh
148148
149149
- name: Deploy Conda 🚀
150150
if: startsWith(github.ref, 'refs/tags/')
151151
run: |
152-
chmod +x .ci/actions_deploy_conda.sh
153-
bash .ci/actions_deploy_conda.sh
152+
chmod +x .github/actions_deploy_conda.sh
153+
bash .github/actions_deploy_conda.sh
154154
env:
155155
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

.isort.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ default_section = THIRDPARTY
1515
;no_lines_before=LOCALFOLDER
1616
known_third_party =
1717
coverage
18-
coverage-pyver-pragma
19-
domdf-python-tools
18+
coverage_pyver_pragma
19+
domdf_python_tools
2020
flake8
2121
github
2222
pytest
23-
pytest-cov
24-
pytest-randomly
25-
pytest-rerunfailures
26-
pytest-timeout
23+
pytest_cov
24+
pytest_randomly
25+
pytest_rerunfailures
26+
pytest_timeout
2727
requests
2828
known_first_party = flake8_strftime
2929
remove_redundant_aliases = True

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ repos:
5959
- id: forbid-crlf
6060

6161
- repo: https://github.com/domdfcoding/yapf-isort
62-
rev: v0.5.2
62+
rev: v0.5.4
6363
hooks:
6464
- id: yapf-isort
6565
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$
6666

6767
- repo: https://github.com/domdfcoding/dep_checker
68-
rev: v0.3.1
68+
rev: v0.4.1
6969
hooks:
7070
- id: dep_checker
7171
args:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ flake8_strftime
3737
:alt: Docs Check Status
3838

3939
.. |travis| image:: https://github.com/domdfcoding/flake8_strftime/workflows/Linux%20Tests/badge.svg
40-
:target: https://github.com/domdfcoding/flake8_strftime/actions?query=workflow%3A%Linux+Tests%22
40+
:target: https://github.com/domdfcoding/flake8_strftime/actions?query=workflow%3A%22Linux+Tests%22
4141
:alt: Linux Test Status
4242

4343
.. |actions_windows| image:: https://github.com/domdfcoding/flake8_strftime/workflows/Windows%20Tests/badge.svg

doc-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sphinx-copybutton>=0.2.12
1010
sphinx-notfound-page>=0.5
1111
sphinx-prompt>=1.1.0
1212
sphinx-tabs>=1.1.13
13-
sphinx-toolbox>=1.7.3
13+
sphinx-toolbox>=1.7.5
1414
sphinxcontrib-httpdomain>=1.7.0
1515
sphinxemoji>=0.1.6
1616
tabulate>=0.8.7

0 commit comments

Comments
 (0)