Skip to content

Commit b7e0099

Browse files
authored
Merge pull request #193 from ocefpaf/rerender
Re-render
2 parents 576821d + abc787a commit b7e0099

11 files changed

Lines changed: 60 additions & 80 deletions

.appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ platform:
2121
install:
2222
# If there is a newer build queued for the same PR, cancel this one.
2323
- cmd: |
24-
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
24+
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/branch2.0/recipe/conda_forge_ci_setup/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
2525
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
2626
del ff_ci_pr_build.py
2727
@@ -41,7 +41,7 @@ install:
4141
- cmd: conda.exe config --add channels conda-forge
4242

4343
# Configure the VM.
44-
- cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=1
44+
- cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=2
4545
- cmd: run_conda_forge_build_setup
4646

4747
# Skip .NET project specific build phase.
@@ -50,4 +50,4 @@ build: off
5050
test_script:
5151
- conda.exe build recipe -m .ci_support\%CONFIG%.yaml --quiet
5252
deploy_script:
53-
- cmd: upload_or_check_non_existence .\recipe conda-forge --channel=main -m .ci_support\%CONFIG%.yaml
53+
- cmd: upload_package .\ .\recipe .ci_support\%CONFIG%.yaml

.ci_support/linux_.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ bzip2:
22
- '1'
33
c_compiler:
44
- toolchain_c
5-
curl:
6-
- '7.59'
5+
channel_sources:
6+
- conda-forge,defaults
7+
channel_targets:
8+
- conda-forge main
79
cxx_compiler:
810
- toolchain_cxx
11+
docker_image:
12+
- condaforge/linux-anvil
913
libffi:
1014
- '3.2'
1115
ncurses:
@@ -15,8 +19,6 @@ openssl:
1519
pin_run_as_build:
1620
bzip2:
1721
max_pin: x
18-
curl:
19-
max_pin: x
2022
libffi:
2123
max_pin: x.x
2224
ncurses:

.ci_support/osx_.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ bzip2:
44
- '1'
55
c_compiler:
66
- toolchain_c
7-
curl:
8-
- '7.59'
7+
channel_sources:
8+
- conda-forge,defaults
9+
channel_targets:
10+
- conda-forge main
911
cxx_compiler:
1012
- toolchain_cxx
1113
libffi:
@@ -14,19 +16,13 @@ macos_machine:
1416
- x86_64-apple-darwin13.4.0
1517
macos_min_version:
1618
- '10.9'
17-
ncurses:
18-
- '6.1'
1919
openssl:
2020
- 1.0.2
2121
pin_run_as_build:
2222
bzip2:
2323
max_pin: x
24-
curl:
25-
max_pin: x
2624
libffi:
2725
max_pin: x.x
28-
ncurses:
29-
max_pin: x.x
3026
openssl:
3127
max_pin: x.x.x
3228
readline:
Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,21 @@
1-
bzip2:
2-
- '1'
31
c_compiler:
42
- vs2015
3+
channel_sources:
4+
- conda-forge,defaults
5+
channel_targets:
6+
- conda-forge main
57
curl:
68
- '7.59'
79
cxx_compiler:
810
- vs2015
9-
libffi:
10-
- '3.2'
11-
ncurses:
12-
- '6.1'
13-
openssl:
14-
- 1.0.2
1511
pin_run_as_build:
16-
bzip2:
17-
max_pin: x
1812
curl:
1913
max_pin: x
20-
libffi:
21-
max_pin: x.x
22-
ncurses:
23-
max_pin: x.x
24-
openssl:
25-
max_pin: x.x.x
26-
readline:
27-
max_pin: x
28-
sqlite:
29-
max_pin: x
30-
tk:
31-
max_pin: x.x
3214
vc:
3315
max_pin: x
34-
xz:
35-
max_pin: x.x
36-
zlib:
37-
max_pin: x.x
38-
readline:
39-
- '7.0'
40-
sqlite:
41-
- '3'
42-
tk:
43-
- '8.6'
4416
vc:
4517
- '14'
46-
xz:
47-
- '5.2'
4818
zip_keys:
4919
- - vc
5020
- c_compiler
5121
- cxx_compiler
52-
zlib:
53-
- '1.2'

.circleci/build_steps.sh

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,34 @@
77

88
set -xeuo pipefail
99
export PYTHONUNBUFFERED=1
10+
export FEEDSTOCK_ROOT=/home/conda/feedstock_root
11+
export RECIPE_ROOT=/home/conda/recipe_root
12+
export CI_SUPPORT=/home/conda/feedstock_root/.ci_support
13+
export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"
1014

1115
cat >~/.condarc <<CONDARC
1216
13-
channels:
14-
- conda-forge
15-
- defaults
16-
1717
conda-build:
1818
root-dir: /home/conda/feedstock_root/build_artifacts
1919
20-
show_channel_urls: true
21-
2220
CONDARC
2321

22+
conda install --yes --quiet conda-forge::conda-forge-ci-setup=2 conda-build
23+
24+
# set up the condarc
25+
setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
26+
2427
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artifacts.
2528
conda clean --lock
2629

27-
conda install --yes --quiet conda-forge-ci-setup=1 conda-build
2830
source run_conda_forge_build_setup
2931

30-
conda build /home/conda/recipe_root -m /home/conda/feedstock_root/.ci_support/${CONFIG}.yaml --quiet
31-
upload_or_check_non_existence /home/conda/recipe_root conda-forge --channel=main -m /home/conda/feedstock_root/.ci_support/${CONFIG}.yaml
32+
# make the build number clobber
33+
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
34+
35+
conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
36+
--clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" --quiet
37+
38+
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
3239

3340
touch "/home/conda/feedstock_root/build_artifacts/conda-forge-build-done-${CONFIG}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
3+
curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/branch2.0/recipe/conda_forge_ci_setup/ff_ci_pr_build.py | \
44
python - -v --ci "circle" "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_PR_NUMBER}"

.circleci/run_docker_build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -xeuo pipefail
99

1010
FEEDSTOCK_ROOT=$(cd "$(dirname "$0")/.."; pwd;)
11-
RECIPE_ROOT=$FEEDSTOCK_ROOT/recipe
11+
RECIPE_ROOT="${FEEDSTOCK_ROOT}/recipe"
1212

1313
docker info
1414

@@ -29,6 +29,9 @@ if [ -z "$CONFIG" ]; then
2929
exit 1
3030
fi
3131

32+
pip install shyaml
33+
DOCKER_IMAGE=$(cat "${FEEDSTOCK_ROOT}/.ci_support/${CONFIG}.yaml" | shyaml get-value docker_image.0 condaforge/linux-anvil )
34+
3235
mkdir -p "$ARTIFACTS"
3336
DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}"
3437
rm -f "$DONE_CANARY"
@@ -39,7 +42,7 @@ docker run -it \
3942
-e CONFIG \
4043
-e BINSTAR_TOKEN \
4144
-e HOST_USER_ID \
42-
condaforge/linux-anvil \
45+
$DOCKER_IMAGE \
4346
bash \
4447
/home/conda/feedstock_root/.circleci/build_steps.sh
4548

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Checklist
66
* [ ] Used a fork of the feedstock to propose changes
77
* [ ] Bumped the build number (if the version is unchanged)
88
* [ ] Reset the build number to `0` (if the version changed)
9-
* [ ] [Re-rendered]( https://conda-forge.org/docs/conda_smithy.html#how-to-re-render ) with the latest `conda-smithy`
9+
* [ ] [Re-rendered]( https://conda-forge.org/docs/conda_smithy.html#how-to-re-render ) with the latest `conda-smithy` (Use the phrase <code>@<space/>conda-forge-admin, please rerender</code> in a comment in this PR for automated rerendering)
1010
* [ ] Ensured the license file is being packaged.
1111

1212
<!--

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
before_install:
1919
# Fast finish the PR.
2020
- |
21-
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
21+
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/branch2.0/recipe/conda_forge_ci_setup/ff_ci_pr_build.py | \
2222
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
2323
2424
# Remove homebrew.
@@ -46,14 +46,18 @@ install:
4646
echo ""
4747
echo "Configuring conda."
4848
source /Users/travis/miniconda3/bin/activate root
49-
conda config --remove channels defaults
50-
conda config --add channels defaults
51-
conda config --add channels conda-forge
52-
conda config --set show_channel_urls true
53-
conda install --yes --quiet conda-forge-ci-setup=1
49+
50+
conda install --yes --quiet conda-forge::conda-forge-ci-setup=2
51+
setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
52+
5453
source run_conda_forge_build_setup
5554
56-
script:
57-
- conda build ./recipe -m ./.ci_support/${CONFIG}.yaml
55+
# compiler cleanup
56+
- |
57+
mangle_compiler ./ ./recipe ./.ci_support/${CONFIG}.yaml
5858
59-
- upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml
59+
script:
60+
# generate the build number clobber
61+
- make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
62+
- conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
63+
- upload_package ./ ./recipe ./.ci_support/${CONFIG}.yaml

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ for each of the installable packages. Such a repository is known as a *feedstock
5858
A feedstock is made up of a conda recipe (the instructions on what and how to build
5959
the package) and the necessary configurations for automatic building using freely
6060
available continuous integration services. Thanks to the awesome service provided by
61-
[CircleCI](https://circleci.com/), [AppVeyor](http://www.appveyor.com/)
61+
[CircleCI](https://circleci.com/), [AppVeyor](https://www.appveyor.com/)
6262
and [TravisCI](https://travis-ci.org/) it is possible to build and upload installable
6363
packages to the [conda-forge](https://anaconda.org/conda-forge)
64-
[Anaconda-Cloud](http://docs.anaconda.org/) channel for Linux, Windows and OSX respectively.
64+
[Anaconda-Cloud](https://anaconda.org/) channel for Linux, Windows and OSX respectively.
6565

6666
To manage the continuous integration and simplify feedstock maintenance
67-
[conda-smithy](http://github.com/conda-forge/conda-smithy) has been developed.
67+
[conda-smithy](https://github.com/conda-forge/conda-smithy) has been developed.
6868
Using the ``conda-forge.yml`` within this repository, it is possible to re-render all of
6969
this feedstock's supporting files (e.g. the CI configuration files) with ``conda smithy rerender``.
7070

@@ -100,7 +100,7 @@ build distinct package versions.
100100

101101
In order to produce a uniquely identifiable distribution:
102102
* If the version of a package **is not** being increased, please add or increase
103-
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string).
103+
the [``build/number``](https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#build-number-and-string).
104104
* If the version of a package **is** being increased, please remember to return
105-
the [``build/number``](http://conda.pydata.org/docs/building/meta-yaml.html#build-number-and-string)
106-
back to 0.
105+
the [``build/number``](https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#build-number-and-string)
106+
back to 0.

0 commit comments

Comments
 (0)