-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8f6b30
commit 6fc27dd
Showing
7 changed files
with
168 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
|
||
set -e -x | ||
|
||
python -m repo_helper make-recipe || exit 1 | ||
|
||
# Switch to miniconda | ||
source "/home/runner/miniconda/etc/profile.d/conda.sh" | ||
hash -r | ||
conda activate base | ||
conda config --set always_yes yes --set changeps1 no | ||
conda update -q conda | ||
conda install conda-build | ||
conda install anaconda-client | ||
conda info -a | ||
|
||
conda config --add channels conda-forge || exit 1 | ||
conda config --add channels domdfcoding || exit 1 | ||
|
||
conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist --skip-existing | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
|
||
set -e -x | ||
|
||
# Switch to miniconda | ||
source "/home/runner/miniconda/etc/profile.d/conda.sh" | ||
hash -r | ||
conda activate base | ||
conda config --set always_yes yes --set changeps1 no | ||
conda update -q conda | ||
conda install anaconda-client | ||
conda info -a | ||
|
||
for f in conda/dist/noarch/sphinx-autofixture-*.tar.bz2; do | ||
[ -e "$f" ] || continue | ||
echo "$f" | ||
conda install "$f" || exit 1 | ||
echo "Deploying to Anaconda.org..." | ||
anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1 | ||
echo "Successfully deployed to Anaconda.org." | ||
done | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: Conda Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
tests: | ||
name: "Conda" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Setup Python 🐍 | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install dependencies 🔧 | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --upgrade repo_helper | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
$CONDA/bin/conda update -q conda | ||
$CONDA/bin/conda install conda-build | ||
$CONDA/bin/conda config --add channels conda-forge | ||
$CONDA/bin/conda config --add channels domdfcoding | ||
- name: "Build and install package" | ||
run: | | ||
# This mess is only necessary because conda won't fix it themselves | ||
# https://github.com/conda/conda/issues/1884 | ||
python -m repo_helper build --conda --out-dir conda-bld/noarch | ||
$CONDA/bin/conda index ./conda-bld || exit 1 | ||
$CONDA/bin/conda install -c file://$(pwd)/conda-bld sphinx-autofixture -y || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,23 +6,23 @@ author: 'Dominic Davis-Foster' | |
email: '[email protected]' | ||
username: "sphinx-toolbox" | ||
assignee: "domdfcoding" | ||
primary_conda_channel: 'domdfcoding' | ||
version: '0.2.1' | ||
license: 'MIT' | ||
short_desc: 'Sphinx autodocumenter for pytest fixtures.' | ||
|
||
enable_conda: false | ||
|
||
python_versions: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
|
||
|
||
sphinx_html_theme: furo | ||
|
||
standalone_contrib_guide: true | ||
|
||
conda_channels: | ||
- conda-forge | ||
|
||
extra_sphinx_extensions: | ||
- sphinx_autofixture | ||
|
||
|