Skip to content

Commit 102ae1d

Browse files
authored
Merge branch 'master' into azure
2 parents d18c050 + 32f7e07 commit 102ae1d

16 files changed

+276
-203
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ to `.html` files will only be effective if applied to the respective `.rst`.
77

88
PR Checklist:
99

10-
- [ ] make all edits to the docs in the `src` directory, not in `docs`
10+
- [ ] make all edits to the docs in the `src` directory, not in `docs` or in the html files
1111
- [ ] note any issues closed by this PR with [closing keywords](https://help.github.com/articles/closing-issues-using-keywords)
1212
- [ ] put any other relevant information below

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ This repository
88

99
If you have questions or need help, please check out our documentation for a [list of ways to interact with us](https://conda-forge.org/docs/user/how_to_get_help.html).
1010

11-
## Building the docs
12-
13-
The docs are built on GitHub Actions and run the `.ci_scripts/update_docs` script.
14-
To build the docs locally, you should do the following:
15-
1. Clone the repository into your local machine.
16-
2. Go into the main folder. </br>
17-
Run the following commands.
18-
3. `conda env create -f ./.ci_scripts/environment.yml`
19-
4. `conda activate conda-forge-docs`
20-
5. `cd newsfeed && pip install --no-deps .`
21-
6. `cd ../src`
22-
7. `make html`
23-
2411
## Improving the docs
2512

26-
We are constantly improving our documentation and are very grateful for feedback and contributions. If you would like to help, please be aware that the html documentation in the `docs` folder is automatically generated from the source files in the `src` folder. Therefore please always edit the files in `src` and never in `docs`.
13+
- You can help to improve the documentation! It is version-controlled in the [conda-forge.github.io repository on GitHub](https://github.com/conda-forge/conda-forge.github.io). The source text is stored in the src/ subdirectory and is formatted using Python’s [reStructuredText system](https://docutils.sourceforge.io/rst.html).
14+
15+
- The docs are built on GitHub Actions and run the `.ci_scripts/update_docs` script.
16+
We are glad to know that you would like to contribute. To build the docs locally, follow the steps mentioned below:
17+
1. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the [conda-forge.github.io](https://github.com/conda-forge/conda-forge.github.io) repository to your own GitHub user account.
18+
2. [Clone](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) this fork onto your computer.
19+
3. Go into the main folder. </br>
20+
Run the following commands.
21+
* `conda env create -f ./.ci_scripts/environment.yml`
22+
* `conda activate conda-forge-docs`
23+
* `cd newsfeed && pip install --no-deps .`
24+
* `cd ../src`
25+
* `make html`
26+
4. Make and commit your changes.
27+
5. Submit a [pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) to the main repository proposing your changes.
28+
29+
**Note: "All changes must be made in the `/src` folder and NOT in the `/docs` folder. Html files in the ./docs folder are auto generated "**
2730

2831
## conda-forge dev meetings
2932

src/maintainer/adding_pkgs.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ Getting Started
1616

1717
There are multiple ways to get started:
1818

19-
#. Look at `the example recipe <https://github.com/conda-forge/staged-recipes/tree/master/recipes/example>`_ in the staged-recipes repository and modify it as necessary.
20-
#. If it is an R package from `CRAN <https://cran.r-project.org/>`_, please
21-
instead start by using the `conda-forge helper script for R recipes <https://github.com/bgruening/conda_r_skeleton_helper>`_.
22-
Then if necessary you can make manual edits to the recipe.
19+
#. Look at `the example recipe <https://github.com/conda-forge/staged-recipes/tree/master/recipes/example>`_ in the `staged-recipes repository <https://github.com/conda-forge/staged-recipes>`_ and modify it as necessary.
20+
#. If it is an R package from `CRAN <https://cran.r-project.org/>`_, kindly
21+
start by using the `conda-forge helper script for R recipes <https://github.com/bgruening/conda_r_skeleton_helper>`_ instead.
22+
Then if necessary, you can make manual edits to the recipe.
2323
#. If it is a python package, you can generate the recipe as a starting point with
24-
``grayskull pypi your_package_name``. To install it you can use `conda install -c conda-forge grayskull`. You do *not* have to use grayskull, and the
25-
recipes produced by grayskull will need to be reviewed and edited.
24+
``grayskull pypi your_package_name``. To install it you can use ``conda install -c conda-forge grayskull``. You do *not* have to use ``grayskull``, and the
25+
recipes produced by ``grayskull`` will need to be reviewed and edited.
2626
In particular, you'll at least need to check the build line to :ref:`use pip <use-pip>`,
2727
add yourself as a maintainer,
2828
and specify a ``license_file``.
2929

3030
Your final recipe should have no comments (unless they're actually relevant to the recipe, and not generic instruction comments), and follow the order in the example.
3131

32-
*If there are details you are not sure about please open a pull request. The conda-forge team will be happy to answer your questions.*
32+
*If there are any details you are not sure about please open a pull request. The conda-forge team will be happy to answer your questions.*
3333

3434
In case you are building your first recipe using conda-forge, a step-by-step instruction and checklist that might help you with a successful build is provided in the following.
3535

@@ -82,11 +82,11 @@ Checklist
8282
Feedback and revision
8383
---------------------
8484

85-
Once you finished your PR, all you have to do is waiting for feedback from our reviewer team.
85+
Once you finished your PR, all you have to do is wait for feedback from our review team.
8686

87-
The reviewer team will assist you by pointing out improvements and answering questions. Once the package is ready, the reviewers will approve and merge your pull request.
87+
The review team will assist you by pointing out improvements and answering questions. Once the package is ready, the reviewers will approve and merge your pull request.
8888

89-
After merging the :term:`PR`, our infrastructure will build the package and make it available in the conda-channel.
89+
After merging the :term:`PR`, our :term:`CI` infrastructure will build the package and make it available in the conda-channel.
9090

9191
.. note::
9292

@@ -157,7 +157,7 @@ staged-recipes directory.
157157

158158
git checkout master
159159

160-
#. Define the conda-forge/staged-recipes repository as upstream (if you have not already done so).::
160+
#. Define the conda-forge/staged-recipes repository as ``upstream`` (if you have not already done so).::
161161

162162
git remote add upstream https://github.com/conda-forge/staged-recipes.git
163163

@@ -231,7 +231,7 @@ You may need the openssl package, available on conda-forge
231231
Downloading extra sources and data files
232232
........................................
233233

234-
``conda-build 3`` supports multiple sources per recipe. Examples are available `in the conda-build docs <https://conda.io/projects/conda-build/en/latest/source/define-metadata.html#source-from-multiple-sources>`_.
234+
``conda-build 3`` supports multiple sources per recipe. Examples are available `in the conda-build docs <https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#source-from-multiple-sources>`_.
235235

236236

237237
Build
@@ -312,7 +312,7 @@ Build, host and run
312312

313313
Conda-build distinguishes three different kinds of dependencies.
314314
In the following paragraphs, we give a very short overview what packages go where.
315-
For a detailed explanation please refer to the `conda-build documentation <https://docs.conda.io/projects/conda-build/en/latest/source/resources/define-metadata.html#requirements-section>`__.
315+
For a detailed explanation please refer to the `conda-build documentation <https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#requirements-section>`__.
316316

317317
**Build**
318318

src/maintainer/conda_forge_yml.rst

Lines changed: 74 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,35 @@ upload packages to anaconda.org, which can be useful for testing. For example:
2121
Top-level fields
2222
================
2323

24-
* appveyor
25-
* azure
26-
* self-hosted azure
27-
* build_platform
28-
* bot
29-
* channel_priority
30-
* channels
31-
* choco
32-
* circle
33-
* conda_forge_output_validation
34-
* docker
35-
* github
36-
* idle_timeout_minutes
37-
* linux
38-
* linux_aarch64
39-
* linux_ppc64le
40-
* os_version
41-
* osx
42-
* provider
43-
* recipe_dir
44-
* remote_ci_setup
45-
* skip_render
46-
* templates
47-
* test_on_native_only
48-
* travis
49-
* upload_on_branch
50-
* win
51-
24+
* :ref:`appveyor`
25+
* :ref:`azure-config`
26+
* :ref:`self-hosted_azure-config`
27+
* :ref:`build_platform`
28+
* :ref:`bot`
29+
* :ref:`channel_priority`
30+
* :ref:`channels`
31+
* :ref:`choco`
32+
* :ref:`circle`
33+
* :ref:`conda_forge_output_validation`
34+
* :ref:`docker`
35+
* :ref:`github`
36+
* :ref:`idle_timeout_minutes`
37+
* :ref:`linux`
38+
* :ref:`linux_aarch64`
39+
* :ref:`linux_ppc64le`
40+
* :ref:`os_version`
41+
* :ref:`osx`
42+
* :ref:`provider`
43+
* :ref:`recipe_dir`
44+
* :ref:`remote_ci_setup`
45+
* :ref:`skip_render`
46+
* :ref:`templates`
47+
* :ref:`test_on_native_only`
48+
* :ref:`travis`
49+
* :ref:`upload_on_branch`
50+
* :ref:`win`
51+
52+
.. _appveyor:
5253

5354
appveyor
5455
--------
@@ -79,6 +80,8 @@ mapping for Azure-specific configuration options. For example:
7980
# built packages) as an Azure pipeline artifact that can be downloaded
8081
store_build_artifacts: False
8182
83+
.. _self-hosted_azure-config:
84+
8285
self-hosted azure
8386
-----------------
8487
Conda-Smithy is capable of doing things beyond CF's purposes, it also allows setting up
@@ -105,6 +108,8 @@ self-hosted agents for non-CF infrastructures. Here is an example demonstrating
105108
You can also use `Azure virtual machine scale set agents <https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops>`_
106109
for autoscaling agents as they are cheaper to run than permanently active agents.
107110

111+
.. _bot:
112+
108113
bot
109114
---
110115
This field controls the behavior of the ``auto-tick`` bot which issues
@@ -128,6 +133,8 @@ automatic version updates/migrations for feedstocks. The current options are
128133
abi_migration_branches:
129134
- v1.10.x
130135
136+
.. _build_platform:
137+
131138
build_platform
132139
--------------
133140
This is a mapping from the build platform to the host platform of the package
@@ -139,13 +146,17 @@ build platform using cross-compiling.
139146
build_platform:
140147
osx_64: linux_64
141148
149+
.. _channel_priority:
150+
142151
channel_priority
143152
----------------
144153

145154
This value sets the ``conda`` solver channel priority for feedstock builds.
146155
The default is ``strict``. Any valid value for the same setting in the ``.condarc`` is
147156
allowed here.
148157

158+
.. _channels:
159+
149160
channels
150161
--------
151162
This represents the channels to grab packages from during builds and
@@ -165,6 +176,7 @@ has been built. The ``channels`` variable is a mapping with
165176
targets:
166177
- ["conda-forge", "main"]
167178
179+
.. _choco:
168180

169181
choco
170182
-----
@@ -185,6 +197,8 @@ This is currently only implemented for Azure Pipelines. The command that is run
185197
``choco install {entry} -fdv -y --debug``. That is, ``choco install`` is executed
186198
with a standard set of additional flags that are useful on CI.
187199

200+
.. _circle:
201+
188202
circle
189203
--------
190204
The top-level ``circle`` key specifies configurations for the Circle
@@ -198,13 +212,17 @@ modified. Tools like conda-smithy may modify this, as need. It has a single
198212
secure:
199213
BINSTAR_TOKEN: <some big hash>
200214
215+
.. _conda_forge_output_validation:
216+
201217
conda_forge_output_validation
202218
-----------------------------
203219

204220
This field must be set to ``True`` for feedstocks in the ``conda-forge`` GitHub
205221
organization. It enables the required feedstock artifact validation as described
206222
in :ref:`output_validation`.
207223

224+
.. _docker:
225+
208226
docker
209227
------
210228
This is a mapping to docker configuration options. These are relatively
@@ -218,6 +236,8 @@ self-explanatory. The defaults are as follows:
218236
command: "bash"
219237
interactive: True
220238
239+
.. _github:
240+
221241
github
222242
------
223243
This is mapping of configuration variables for GitHub. The
@@ -233,6 +253,7 @@ defaults are as follows:
233253
# branch name to execute on
234254
branch_name: master
235255
256+
.. _idle_timeout_minutes:
236257

237258
idle_timeout_minutes
238259
--------------------
@@ -243,6 +264,7 @@ don't have chatty enough builds. Currently only implemented in Travis and Circle
243264
244265
idle_timeout_minutes: 60
245266
267+
.. _linux:
246268

247269
linux
248270
-----
@@ -254,6 +276,7 @@ Currently only:
254276
linux:
255277
enabled: False
256278
279+
.. _linux_aarch64:
257280

258281
linux_aarch64
259282
-------------
@@ -265,6 +288,7 @@ Currently only:
265288
linux_aarch64:
266289
enabled: False
267290
291+
.. _linux_ppc64le:
268292

269293
linux_ppc64le
270294
-------------
@@ -276,6 +300,8 @@ Currently only:
276300
linux_ppc64le:
277301
enabled: False
278302
303+
.. _os_version:
304+
279305
os_version
280306
----------
281307
This key is used to set the OS versions for ``linux_*`` platforms. Valid entries map a linux platform and arch to either ``cos6``
@@ -286,6 +312,8 @@ or ``cos7``. Currently ``cos6`` is the default for ``linux-64``. All other linux
286312
os_version:
287313
linux_64: cos7
288314
315+
.. _osx:
316+
289317
osx
290318
---
291319
The macOSX-specific configuration options. This is largely an internal setting.
@@ -296,6 +324,8 @@ Currently only:
296324
osx:
297325
enabled: False
298326
327+
.. _provider:
328+
299329
provider
300330
--------
301331
The ``provider`` field is a mapping from arch (operating system) to CI service.
@@ -346,6 +376,8 @@ To enable ``linux_ppc64le`` and ``linux_aarch64`` and the following:
346376
linux_ppc64le: default
347377
linux_aarch64: default
348378
379+
.. _recipe_dir:
380+
349381
recipe_dir
350382
----------
351383
The relative path to the recipe directory. The default is:
@@ -354,6 +386,8 @@ The relative path to the recipe directory. The default is:
354386
355387
recipe_dir: recipe
356388
389+
.. _remote_ci_setup:
390+
357391
remote_ci_setup
358392
---------------
359393
This option can be used to override the default ``conda-forge-ci-setup`` package.
@@ -364,6 +398,8 @@ channel_alias if no prefix given.
364398
365399
remote_ci_setup: "conda-forge-ci-setup=3"
366400
401+
.. _skip_render:
402+
367403
skip_render
368404
-----------
369405
This option specifies a list of files which conda smithy will skip rendering.
@@ -377,11 +413,15 @@ For example, if you want to customize .gitignore and LICENSE.txt file by your ow
377413
- .gitignore
378414
- LICENSE.txt
379415
416+
.. _templates:
417+
380418
templates
381419
---------
382420
This is mostly an internal field for specifying where templates files live.
383421
You shouldn't need it.
384422

423+
.. _test_on_native_only:
424+
385425
test_on_native_only
386426
-------------------
387427
This is used for disabling testing for cross compiling. Default is ``false``
@@ -390,6 +430,8 @@ This is used for disabling testing for cross compiling. Default is ``false``
390430
391431
test_on_native_only: True
392432
433+
.. _travis:
434+
393435
travis
394436
------
395437
The top-level ``travis`` key specifies configurations for the Travis
@@ -403,6 +445,8 @@ modified. Tools like conda-smithy may modify this, as need. It has a single
403445
secure:
404446
BINSTAR_TOKEN: <some big hash>
405447
448+
.. _upload_on_branch:
449+
406450
upload_on_branch
407451
----------------
408452
This parameter restricts uploading access on work from certain branches of the
@@ -415,6 +459,8 @@ master branch:
415459
416460
upload_on_branch: master
417461
462+
.. _win:
463+
418464
win
419465
---
420466
The Windows-specific configuration options. This is largely an internal setting.

0 commit comments

Comments
 (0)