forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from conda-forge/main
get changes from staged recipes
- Loading branch information
Showing
13 changed files
with
183 additions
and
61 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
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,3 +1,5 @@ | ||
cdt_name: | ||
- cos7 | ||
c_compiler: | ||
- gcc | ||
cxx_compiler: | ||
|
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: directory_linter | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- 'recipes/*.yml' | ||
- 'recipes/*.yaml' | ||
|
||
jobs: | ||
comment: | ||
name: Notify user about wrong dir | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Comment on PR | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Hi! Thanks for your contribution to conda-forge.' + | ||
'\nUnfortunately, the recipe was added directly in the `recipes` folder without its own subfolder.\n' + | ||
'Please move the recipe file (`<your_package.yaml>`) into a folder with the name of the package you want to submit.\n\n' + | ||
'For example: if your recipe is currently under `recipes/<your_package>.yaml`, ' + | ||
'it should be moved to `recipes/<your_package>/<your_package>.yaml`.\n' + | ||
'Thanks!' | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: do_not_edit_example | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- 'recipes/example/meta.yaml' | ||
|
||
jobs: | ||
comment: | ||
name: Notify user about not editing example recipe | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Comment on PR | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Hi! Thanks for your contribution to conda-forge.' + | ||
'\nWhen submitting a pull request, please do not change anything in the example recipe.\n' + | ||
'Please make sure that any changes are reverted before you submit it for review.\n' + | ||
'Thanks!' | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
import github | ||
|
||
for token in [ | ||
"GH_TOKEN", | ||
"GH_TRAVIS_TOKEN", | ||
"GH_DRONE_TOKEN", | ||
"ORGWIDE_GH_TRAVIS_TOKEN" | ||
]: | ||
try: | ||
gh = github.Github(os.environ[token]) | ||
login = gh.get_user().login | ||
except Exception: | ||
loging = "NOT FOUND" | ||
|
||
print("%s: %s" % (token, login)) |
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,41 @@ | ||
name: tokens | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tokens: | ||
name: tokens | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: 3.8 | ||
channels: conda-forge,defaults | ||
channel-priority: strict | ||
show-channel-urls: true | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
|
||
- name: configure conda and install code | ||
shell: bash -l {0} | ||
run: | | ||
conda config --set always_yes yes | ||
conda config --add channels conda-forge | ||
mamba install --quiet pip | ||
|
||
mamba install -y -q pygithub | ||
|
||
- name: tokens | ||
shell: bash -l {0} | ||
run: | | ||
python .github/workflows/scripts/print_tokens.py | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TRAVIS_TOKEN: ${{ secrets.GH_TRAVIS_TOKEN }} | ||
GH_DRONE_TOKEN: ${{ secrets.GH_DRONE_TOKEN }} | ||
ORGWIDE_GH_TRAVIS_TOKEN: ${{ secrets.ORGWIDE_GH_TRAVIS_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
|