-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributing-bioconda.qmd
78 lines (52 loc) · 2.03 KB
/
contributing-bioconda.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Contributing bioconda recipes
> Note that for simple updates, you can use the `bioconda-utils` tool to automate the process. Here I went through it more manually to understand the process better.
## Documentation
- Full documentation & workflow available [here](https://bioconda.github.io/contributor/index.html)
## Steps
- Forked and cloned locally: `gh repo clone MYUSER_NAME/bioconda-recipes`
- Added upstream remote (only needed once):
```
cd bioconda-recipes
git remote add upstream [email protected]:bioconda/bioconda-recipes.git
```
- Update local master branch from upstream (bioconda), and push to my fork (origin)
- Make a new branch
```
git checkout master
git pull upstream master
git push origin master
git checkout -b update_vg
```
- Edit the recipe file, e.g. for `vg`: `recipes/vg/meta.yaml`
- For this recipe, changes were:
1. Updated version number from 1.56.0 to 1.59.0
2. Calculate & update sha256 checksums (`sha256sum vg`)
3. Linting changes (see below)
- Before submitting a PR, test locally with `bioconda-utils` (no need to do this really - will be done again on GitHub, just for practice)
- Used pixi to install: `pixi global install -c conda-forge -c bioconda bioconda-utils`
- Navigate to the `bioconda-recipes` directory and run:
```
bioconda-utils lint --git-range master
bioconda-utils build --docker --mulled-test --git-range master
# Note: master is correct here, as we are comparing our changes against the master branch
```
- After linting and building successfully...
- Add, commit, and push changes to fork
```
git add
git commit -m "update vg to v1.59.0"
git push -u origin update_vg
```
- Make the PR on GitHub
- Once their checks are run and turn green, comment the following: `@BiocondaBot please add label`
- Once merged...
```
# Delete local branch
git branch -D my_branch
# Delete branch in GitHub fork
git push origin -d my_branch
# And keep on top of changes before next branch
git checkout master
git pull upstream master
```
- Wait for at least 30 minutes for changes to propagate to the bioconda channel