Skip to content

Commit 6bbc404

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

File tree

11 files changed

+55
-101
lines changed

11 files changed

+55
-101
lines changed

.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: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33

44
set -e -x
55

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

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
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
1717

18-
conda config --add channels domdfcoding || exit 1
18+
conda config --add channels domdfcoding || exit 1
1919

20-
conda config --add channels conda-forge || exit 1
20+
conda config --add channels conda-forge || exit 1
2121

22-
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
23-
24-
fi
22+
conda build conda -c domdfcoding -c conda-forge --output-folder conda/dist --skip-existing
2523

2624
exit 0

.github/actions_deploy_conda.sh

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33

44
set -e -x
55

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
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
1414

15-
for f in conda/dist/noarch/coverage_pyver_pragma-*.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-
fi
15+
for f in conda/dist/noarch/coverage_pyver_pragma-*.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
2523

2624
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/conda_ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
name: "Conda"
1313
runs-on: ubuntu-latest
1414

15-
strategy:
16-
1715
steps:
1816
- name: Checkout 🛎️
1917
uses: "actions/checkout@v2"

.github/workflows/python_ci_linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ default_section = THIRDPARTY
1414
;no_lines_before=LOCALFOLDER
1515
known_third_party =
1616
coverage
17-
domdf-python-tools
17+
domdf_python_tools
1818
flake8
1919
github
2020
pytest
21-
pytest-cov
22-
pytest-randomly
23-
pytest-rerunfailures
24-
pytest-timeout
21+
pytest_cov
22+
pytest_randomly
23+
pytest_rerunfailures
24+
pytest_timeout
2525
requests
2626
known_first_party = coverage_pyver_pragma
2727
remove_redundant_aliases = True

doc-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sphinx-copybutton>=0.2.12
88
sphinx-notfound-page>=0.5
99
sphinx-prompt>=1.1.0
1010
sphinx-tabs>=1.1.13
11-
sphinx-toolbox>=1.7.3
11+
sphinx-toolbox>=1.7.5
1212
sphinxcontrib-httpdomain>=1.7.0
1313
sphinxemoji>=0.1.6
1414
toctree-plus>=0.0.4

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ packages = find:
4545

4646
[options.packages.find]
4747
exclude =
48+
doc-source
4849
tests
4950
tests.*
50-
doc-source
5151

5252
[mypy]
5353
python_version = 3.6

0 commit comments

Comments
 (0)