generated from brsynth/conda-package
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
158 changed files
with
815,680 additions
and
104 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
extend-ignore = E402 | ||
extend-ignore = E203,E402,F401,F403 |
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 |
---|---|---|
|
@@ -7,13 +7,13 @@ on: | |
|
||
jobs: | ||
|
||
Tag: | ||
TagRaw: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: ${{ steps.tag_label.outputs.tag }} | ||
changelog: ${{ steps.tag_raw.outputs.changelog }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
@@ -31,20 +31,12 @@ jobs: | |
TAG: ${{ steps.tag_raw.outputs.new_tag }} | ||
run: | | ||
TAG=$(echo "$TAG" | cut -f1 -d "-") | ||
echo "::set-output name=tag::$TAG" | ||
- name: 'Bump version and push tag' | ||
id: tag | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
release_branches: stable | ||
custom_tag: ${{ steps.tag_label.outputs.tag }} | ||
tag_prefix: | ||
echo "tag=$TAG" >> "$GITHUB_OUTPUT" | ||
Changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
@@ -72,54 +64,53 @@ jobs: | |
retention-days: 1 | ||
|
||
Version: | ||
needs: Tag | ||
needs: TagRaw | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version_path: ${{ steps.update_version.outputs.version_path }} | ||
version_dir: ${{ steps.update_version.outputs.version_dir }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: stable | ||
- uses: actions/checkout@v3 | ||
- name: 'Update _version.py' | ||
id: update_version | ||
env: | ||
TAG: ${{ needs.Tag.outputs.tag }} | ||
TAG: ${{ needs.TagRaw.outputs.tag }} | ||
run: | | ||
VERSION_PATH=$(find . -name _version.py | head -n 1) | ||
VERSION_DIR=$(dirname "$VERSION_PATH") | ||
sed -i "2s/.*/__version__ = \"$TAG\"/" "$VERSION_PATH" | ||
echo "::set-output name=version_path::${VERSION_PATH}" | ||
echo "::set-output name=version_dir::${VERSION_DIR}" | ||
echo "version_path=$VERSION_PATH" >> "$GITHUB_OUTPUT" | ||
echo "version_dir=$VERSION_DIR" >> "$GITHUB_OUTPUT" | ||
- name: 'Upload Artifact Version' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: version-artifact | ||
path: ${{ steps.update_version.outputs.version_path }} | ||
retention-days: 1 | ||
|
||
Commit: | ||
needs: [ Tag, Changelog, Version ] | ||
needs: [Changelog, Version] | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Get Data | ||
- name: 'Checkout' | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: 'Download Artifact Version' | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: version-artifact | ||
path: ${{ needs.Version.outputs.version_dir }} | ||
- name: 'Download Artifact Changelog' | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: changelog-artifact | ||
# Commit | ||
- name: 'Commit files' | ||
run: | | ||
echo "show version file" | ||
cat ${{ needs.Version.outputs.version_path }} | ||
git config --local user.email "$GITHUB_EMAIL" | ||
git config --local user.name "$GITHUB_USERNAME" | ||
git add . | ||
|
@@ -138,49 +129,72 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: main | ||
|
||
Tag: | ||
needs: [Commit, TagRaw] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: 'Bump version and push tag' | ||
id: tag | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
release_branches: stable | ||
custom_tag: ${{ needs.TagRaw.outputs.tag }} | ||
tag_prefix: | ||
|
||
BuildConda: | ||
needs: [Commit, Tag] | ||
needs: [Tag] | ||
runs-on: ubuntu-latest | ||
env: | ||
asset: straindesign-${{ needs.Tag.outputs.tag }}-py_0.tar.bz2 | ||
dirbuild: /tmp/build | ||
outputs: | ||
asset: ${{ env.asset }} | ||
asset: ${{ steps.identify_asset.outputs.asset }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} # activate env conda | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: stable | ||
uses: actions/checkout@v3 | ||
- name: 'Deploying miniconda' | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
environment-file: recipes/workflow.yaml | ||
python-version: '3.9' | ||
mamba-version: "*" | ||
channel-priority: true | ||
use-mamba: true | ||
- name: 'Build conda package' | ||
run: | | ||
conda-build recipes --output-folder . --output "${{ env.asset }}" | ||
mkdir -p ${{ env.dirbuild }} | ||
conda-build recipes --output-folder ${{ env.dirbuild }} | ||
- name: 'Find name package' | ||
id: identify_asset | ||
run: | | ||
filename=$(find ${{ env.dirbuild }} | head -n 1) | ||
echo "asset=$filename" >> "$GITHUB_OUTPUT" | ||
- name: 'Upload Artifact Package' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: package-conda-artifact | ||
path: ${{ env.asset }} | ||
path: ${{ steps.identify_asset.outputs.asset }} | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
Release: | ||
needs: [Tag, BuildConda] | ||
needs: [TagRaw, BuildConda] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Download Artifact Package - Pip' | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: package-conda-artifact | ||
- name: 'Create Release' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ needs.Tag.outputs.tag }} | ||
body: ${{ needs.Tag.outputs.changelog }} | ||
tag_name: ${{ needs.TagRaw.outputs.tag }} | ||
body: ${{ needs.TagRaw.outputs.changelog }} | ||
files: ${{ needs.BuildConda.outputs.asset }} |
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
include MANIFEST.in | ||
include LICENSE | ||
include README | ||
graft recipes | ||
graft src/cameobrs/ui/assets | ||
graft src/cameobrs/data | ||
graft src/cameobrs/models | ||
graft tests |
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
Oops, something went wrong.