Skip to content

Commit 28a1b03

Browse files
author
Travis-CI on github.com/conda-forge/staged-recipes
committed
Re-render the feedstock after CI registration.
1 parent 956ee9c commit 28a1b03

19 files changed

+475
-1
lines changed

.appveyor.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This file was automatically generated by conda-smithy. To update a component of this
2+
# file, make changes to conda-forge.yml and/or recipe/meta.yaml, and run
3+
# "conda smithy rerender".
4+
5+
environment:
6+
7+
BINSTAR_TOKEN:
8+
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
9+
secure: ipv/06DzgA7pzz2CIAtbPxZSsphDtF+JFyoWRnXkn3O8j7oRe3rzqj3LOoq2DZp4
10+
11+
matrix:
12+
- CONFIG: win_python2.7
13+
CONDA_INSTALL_LOCN: C:\Miniconda36-x64
14+
15+
16+
# We always use a 64-bit machine, but can build x86 distributions
17+
# with the TARGET_ARCH variable.
18+
platform:
19+
- x64
20+
21+
install:
22+
# If there is a newer build queued for the same PR, cancel this one.
23+
- 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')"
25+
ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
26+
del ff_ci_pr_build.py
27+
28+
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
29+
- cmd: rmdir C:\cygwin /s /q
30+
31+
# Add path, activate `conda` and update conda.
32+
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
33+
- cmd: conda.exe update --yes --quiet conda
34+
35+
- cmd: set PYTHONUNBUFFERED=1
36+
37+
# Add our channels.
38+
- cmd: conda.exe config --set show_channel_urls true
39+
- cmd: conda.exe config --remove channels defaults
40+
- cmd: conda.exe config --add channels defaults
41+
- cmd: conda.exe config --add channels conda-forge
42+
43+
# Configure the VM.
44+
- cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=1
45+
- cmd: run_conda_forge_build_setup
46+
47+
# Skip .NET project specific build phase.
48+
build: off
49+
50+
test_script:
51+
- conda.exe build recipe -m .ci_support\%CONFIG%.yaml --quiet
52+
deploy_script:
53+
- cmd: upload_or_check_non_existence .\recipe conda-forge --channel=main -m .ci_support\%CONFIG%.yaml

.ci_support/README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is automatically generated by conda-smithy. To change any matrix elements, you should change conda-smithy's input conda_build_config.yaml and re-render the recipe, rather than editing these files directly.

.ci_support/linux_python2.7.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pin_run_as_build:
2+
python:
3+
max_pin: x.x
4+
min_pin: x.x
5+
python:
6+
- '2.7'

.ci_support/osx_python2.7.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
MACOSX_DEPLOYMENT_TARGET:
2+
- '10.9'
3+
macos_machine:
4+
- x86_64-apple-darwin13.4.0
5+
macos_min_version:
6+
- '10.9'
7+
pin_run_as_build:
8+
python:
9+
max_pin: x.x
10+
min_pin: x.x
11+
python:
12+
- '2.7'

.ci_support/win_python2.7.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pin_run_as_build:
2+
python:
3+
max_pin: x.x
4+
min_pin: x.x
5+
python:
6+
- '2.7'

.circleci/build_steps.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
# PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here
4+
# will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent
5+
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also
6+
# benefit from the improvement.
7+
8+
set -xeuo pipefail
9+
export PYTHONUNBUFFERED=1
10+
11+
cat >~/.condarc <<CONDARC
12+
13+
channels:
14+
- conda-forge
15+
- defaults
16+
17+
conda-build:
18+
root-dir: /home/conda/feedstock_root/build_artifacts
19+
20+
show_channel_urls: true
21+
22+
CONDARC
23+
24+
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artifacts.
25+
conda clean --lock
26+
27+
conda install --yes --quiet conda-forge-ci-setup=1 conda-build
28+
source run_conda_forge_build_setup
29+
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+
33+
touch "/home/conda/feedstock_root/build_artifacts/conda-forge-build-done-${CONFIG}"

.circleci/checkout_merge_commit.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
4+
# Update PR refs for testing.
5+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
6+
then
7+
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/head:pr/${CIRCLE_PR_NUMBER}/head"
8+
FETCH_REFS="${FETCH_REFS} +refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/${CIRCLE_PR_NUMBER}/merge"
9+
fi
10+
11+
# Retrieve the refs.
12+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
13+
then
14+
git fetch -u origin ${FETCH_REFS}
15+
fi
16+
17+
# Checkout the PR merge ref.
18+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
19+
then
20+
git checkout -qf "pr/${CIRCLE_PR_NUMBER}/merge"
21+
fi
22+
23+
# Check for merge conflicts.
24+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
25+
then
26+
git branch --merged | grep "pr/${CIRCLE_PR_NUMBER}/head" > /dev/null
27+
fi

.circleci/config.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
3+
jobs:
4+
build_linux_python2.7:
5+
working_directory: ~/test
6+
machine: true
7+
environment:
8+
- CONFIG: "linux_python2.7"
9+
steps:
10+
- checkout
11+
- run:
12+
name: Fast finish outdated PRs and merge PRs
13+
command: |
14+
./.circleci/fast_finish_ci_pr_build.sh
15+
./.circleci/checkout_merge_commit.sh
16+
- run:
17+
command: docker pull condaforge/linux-anvil
18+
- run:
19+
# Run, test and (if we have a BINSTAR_TOKEN) upload the distributions.
20+
command: ./.circleci/run_docker_build.sh
21+
22+
workflows:
23+
version: 2
24+
build_and_test:
25+
jobs:
26+
- build_linux_python2.7

.circleci/fast_finish_ci_pr_build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
4+
python - -v --ci "circle" "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_PR_NUMBER}"

.circleci/run_docker_build.sh

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
3+
# PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here
4+
# will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent
5+
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also
6+
# benefit from the improvement.
7+
8+
set -xeuo pipefail
9+
10+
FEEDSTOCK_ROOT=$(cd "$(dirname "$0")/.."; pwd;)
11+
RECIPE_ROOT=$FEEDSTOCK_ROOT/recipe
12+
13+
docker info
14+
15+
# In order for the conda-build process in the container to write to the mounted
16+
# volumes, we need to run with the same id as the host machine, which is
17+
# normally the owner of the mounted volumes, or at least has write permission
18+
export HOST_USER_ID=$(id -u)
19+
# Check if docker-machine is being used (normally on OSX) and get the uid from
20+
# the VM
21+
if hash docker-machine 2> /dev/null && docker-machine active > /dev/null; then
22+
export HOST_USER_ID=$(docker-machine ssh $(docker-machine active) id -u)
23+
fi
24+
25+
ARTIFACTS="$FEEDSTOCK_ROOT/build_artifacts"
26+
27+
if [ -z "$CONFIG" ]; then
28+
echo "Need to set CONFIG env variable"
29+
exit 1
30+
fi
31+
32+
mkdir -p "$ARTIFACTS"
33+
DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}"
34+
rm -f "$DONE_CANARY"
35+
36+
docker run -it \
37+
-v "${RECIPE_ROOT}":/home/conda/recipe_root \
38+
-v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root \
39+
-e CONFIG \
40+
-e BINSTAR_TOKEN \
41+
-e HOST_USER_ID \
42+
condaforge/linux-anvil \
43+
bash \
44+
/home/conda/feedstock_root/.circleci/build_steps.sh
45+
46+
# verify that the end of the script was reached
47+
test -f "$DONE_CANARY"

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto
2+
3+
*.patch binary
4+
*.diff binary
5+
meta.yaml text eol=lf
6+
build.sh text eol=lf
7+
bld.bat text eol=crlf

.github/CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Thanks for your interest in helping out conda-forge.
2+
3+
Whether you are brand new or a seasoned maintainer, we always appreciate
4+
feedback from the community about how we can improve conda-forge. If you
5+
are submitting a PR or issue, please fill out the respective template. Should
6+
any questions arise please feel free to ask the maintainer team of the
7+
respective feedstock or reach out to `@conda-forge/core` for more complex
8+
issues.
9+
10+
In the case of any issues reported, please be sure to demonstrate the relevant
11+
issue (even if it is an absence of a feature). Providing this information will
12+
help busy maintainers understand what it is you hope to accomplish. Also this
13+
will help provide them clues as to what might be going wrong. These examples
14+
can also be reused as tests in the build to ensure further packages meet these
15+
criteria. This is requested to help you get timely and relevant feedback. :)

.github/ISSUE_TEMPLATE.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!--
2+
Thanks for reporting your issue.
3+
Please fill out the sections below.
4+
-->
5+
Issue:
6+
7+
<br/>
8+
Environment (<code>conda list</code>):
9+
<details>
10+
11+
```
12+
$ conda list
13+
14+
```
15+
</details>
16+
17+
<br/>
18+
Details about <code>conda</code> and system ( <code>conda info</code> ):
19+
<details>
20+
21+
```
22+
$ conda info
23+
24+
```
25+
</details>

.github/PULL_REQUEST_TEMPLATE.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
Thank you for pull request.
3+
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
4+
-->
5+
Checklist
6+
* [ ] Used a fork of the feedstock to propose changes
7+
* [ ] Bumped the build number (if the version is unchanged)
8+
* [ ] 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`
10+
* [ ] Ensured the license file is being packaged.
11+
12+
<!--
13+
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
14+
-->
15+
16+
<!--
17+
Please add any other relevant info below:
18+
-->

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pyc
2+
3+
build_artifacts

.travis.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This file was generated automatically from conda-smithy. To update this configuration,
2+
# update the conda-forge.yml and/or the recipe/meta.yaml.
3+
4+
language: generic
5+
6+
os: osx
7+
osx_image: xcode6.4
8+
9+
env:
10+
matrix:
11+
- CONFIG=osx_python2.7
12+
13+
global:
14+
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
15+
- secure: "QqoQEHwDZLUeBWVUEzCVA0A5Oh820ofeqqbPp7EAObAPpMkMv1fAb/Vfhu7uPYg2YL89emyMZgfgv7+UQar7ecLKzYgaJdwuZkPeZz8E9kOHv4NCmwuwkGDjyIuV6eBWf1AX6ds/Lzmgx7ABC9y3wvqiLgDRUHUGBmNxivicfe8bSOsh9v9fe7BFszbk86sPmkLE5zhjuZSCn3kK8MyQAJWbGxm8hT4TNYr9Zxr8vgmlq0MiYJ1oscs6WNwpFcYsg240xOhQcU1U65MQoJTPOduEGxkU4LY8dC7dfBA0mJ8XBLw5t4e5cwDUorpw0dLtUrRnzh8DFUbNOxOyIxIll0qDRn174D0YR0vg1Zb0qPrEFzh3f08B7dtTAU7pRRpphVw0viHRZiiit07L2e92T7XnZalqkl2Jh3xOm8sRA5zhUrO2MDDj79XJ7A24O6+wR4Gq1l1lz2eFar/wZYA4q0Nl+R7PM+vZwcRwsNcGkJAaZ7XbMQ3Q6tuowId1ik59e8aHLHRYKT/HGwEE1ZVvQsOMl5N5RiBUbw18qlDwdp0aEQvgeD0bIemo4FXTnBaIt52dS1F84KAdSXn55t9KR7c4k553nP95TYkEfSBlV3QDgaulk0s2on8AtxKEezrAXDoJvpyxNh37EmG77pdJlengJSwFUbmCDwcz//aIj54="
16+
17+
18+
before_install:
19+
# Fast finish the PR.
20+
- |
21+
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
22+
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
23+
24+
# Remove homebrew.
25+
- |
26+
echo ""
27+
echo "Removing homebrew from Travis CI to avoid conflicts."
28+
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
29+
chmod +x ~/uninstall_homebrew
30+
~/uninstall_homebrew -fq
31+
rm ~/uninstall_homebrew
32+
33+
34+
install:
35+
# Install Miniconda.
36+
- |
37+
echo ""
38+
echo "Installing a fresh version of Miniconda."
39+
MINICONDA_URL="https://repo.continuum.io/miniconda"
40+
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
41+
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
42+
bash $MINICONDA_FILE -b
43+
44+
# Configure conda.
45+
- |
46+
echo ""
47+
echo "Configuring conda."
48+
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
54+
source run_conda_forge_build_setup
55+
56+
script:
57+
- conda build ./recipe -m ./.ci_support/${CONFIG}.yaml
58+
59+
- upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml

LICENSE.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
BSD 3-clause license
2+
Copyright (c) 2015-2018, conda-forge
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
11+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)