Merge pull request #1 from regro-cf-autotick-bot/3.1.1
pytest-bdd v3.1.1
This commit is contained in:
commit
3e398b0bad
|
@ -13,12 +13,8 @@ jobs:
|
||||||
linux_:
|
linux_:
|
||||||
CONFIG: linux_
|
CONFIG: linux_
|
||||||
UPLOAD_PACKAGES: True
|
UPLOAD_PACKAGES: True
|
||||||
|
DOCKER_IMAGE: condaforge/linux-anvil-comp7
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
sudo pip install setuptools shyaml
|
|
||||||
displayName: Install dependencies
|
|
||||||
|
|
||||||
# configure qemu binfmt-misc running. This allows us to run docker containers
|
# configure qemu binfmt-misc running. This allows us to run docker containers
|
||||||
# embedded qemu-static
|
# embedded qemu-static
|
||||||
- script: |
|
- script: |
|
||||||
|
@ -27,7 +23,9 @@ jobs:
|
||||||
condition: not(startsWith(variables['CONFIG'], 'linux_64'))
|
condition: not(startsWith(variables['CONFIG'], 'linux_64'))
|
||||||
displayName: Configure binfmt_misc
|
displayName: Configure binfmt_misc
|
||||||
|
|
||||||
- script: .azure-pipelines/run_docker_build.sh
|
- script: |
|
||||||
|
export CI=azure
|
||||||
|
.azure-pipelines/run_docker_build.sh
|
||||||
displayName: Run docker build
|
displayName: Run docker build
|
||||||
env:
|
env:
|
||||||
BINSTAR_TOKEN: $(BINSTAR_TOKEN)
|
BINSTAR_TOKEN: $(BINSTAR_TOKEN)
|
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
export FEEDSTOCK_ROOT=/home/conda/feedstock_root
|
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}"
|
||||||
export RECIPE_ROOT=/home/conda/recipe_root
|
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}"
|
||||||
export CI_SUPPORT=/home/conda/feedstock_root/.ci_support
|
export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support"
|
||||||
export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"
|
export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml"
|
||||||
|
|
||||||
cat >~/.condarc <<CONDARC
|
cat >~/.condarc <<CONDARC
|
||||||
|
|
||||||
conda-build:
|
conda-build:
|
||||||
root-dir: /home/conda/feedstock_root/build_artifacts
|
root-dir: ${FEEDSTOCK_ROOT}/build_artifacts
|
||||||
|
|
||||||
CONDARC
|
CONDARC
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ conda install --yes --quiet conda-forge-ci-setup=2 conda-build -c conda-forge
|
||||||
# set up the condarc
|
# set up the condarc
|
||||||
setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
||||||
|
|
||||||
run_conda_forge_build_setup
|
source run_conda_forge_build_setup
|
||||||
|
|
||||||
# make the build number clobber
|
# make the build number clobber
|
||||||
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
||||||
|
|
||||||
|
@ -35,4 +36,4 @@ if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
|
||||||
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch "/home/conda/feedstock_root/build_artifacts/conda-forge-build-done-${CONFIG}"
|
touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}"
|
|
@ -51,8 +51,10 @@ fi
|
||||||
mkdir -p "$ARTIFACTS"
|
mkdir -p "$ARTIFACTS"
|
||||||
DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}"
|
DONE_CANARY="$ARTIFACTS/conda-forge-build-done-${CONFIG}"
|
||||||
rm -f "$DONE_CANARY"
|
rm -f "$DONE_CANARY"
|
||||||
# Not all providers run with a real tty. Disable using one
|
|
||||||
DOCKER_RUN_ARGS=" "
|
if [ -z "${CI}" ]; then
|
||||||
|
DOCKER_RUN_ARGS="-it "
|
||||||
|
fi
|
||||||
|
|
||||||
export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}"
|
export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}"
|
||||||
docker run ${DOCKER_RUN_ARGS} \
|
docker run ${DOCKER_RUN_ARGS} \
|
||||||
|
@ -62,6 +64,7 @@ docker run ${DOCKER_RUN_ARGS} \
|
||||||
-e BINSTAR_TOKEN \
|
-e BINSTAR_TOKEN \
|
||||||
-e HOST_USER_ID \
|
-e HOST_USER_ID \
|
||||||
-e UPLOAD_PACKAGES \
|
-e UPLOAD_PACKAGES \
|
||||||
|
-e CI \
|
||||||
$DOCKER_IMAGE \
|
$DOCKER_IMAGE \
|
||||||
bash \
|
bash \
|
||||||
/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh
|
/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
build_number_decrement:
|
|
||||||
- '0'
|
|
||||||
channel_sources:
|
channel_sources:
|
||||||
- conda-forge,defaults
|
- conda-forge,defaults
|
||||||
channel_targets:
|
channel_targets:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
* @breathe
|
|
@ -15,9 +15,7 @@ Current build status
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
|
||||||
<table><tr>
|
<table><tr><td>All platforms:</td>
|
||||||
|
|
||||||
<td>All platforms:</td>
|
|
||||||
<td>
|
<td>
|
||||||
<a href="https://dev.azure.com/conda-forge/feedstock-builds/_build/latest?definitionId=6774&branchName=master">
|
<a href="https://dev.azure.com/conda-forge/feedstock-builds/_build/latest?definitionId=6774&branchName=master">
|
||||||
<img src="https://dev.azure.com/conda-forge/feedstock-builds/_apis/build/status/pytest-bdd-feedstock?branchName=master">
|
<img src="https://dev.azure.com/conda-forge/feedstock-builds/_apis/build/status/pytest-bdd-feedstock?branchName=master">
|
||||||
|
|
|
@ -0,0 +1,58 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
#
|
||||||
|
# This file has been generated by conda-smithy in order to build the recipe
|
||||||
|
# locally.
|
||||||
|
#
|
||||||
|
import os
|
||||||
|
import glob
|
||||||
|
import subprocess
|
||||||
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
|
|
||||||
|
def setup_environment(ns):
|
||||||
|
os.environ["CONFIG"] = ns.config
|
||||||
|
os.environ["UPLOAD_PACKAGES"] = "False"
|
||||||
|
|
||||||
|
|
||||||
|
def run_docker_build(ns):
|
||||||
|
script = glob.glob(".*/run_docker_build.sh")[0]
|
||||||
|
subprocess.check_call(script)
|
||||||
|
|
||||||
|
def verify_config(ns):
|
||||||
|
valid_configs = {os.path.basename(f)[:-5] for f in glob.glob(".ci_support/*.yaml")}
|
||||||
|
print(f"valid configs are {valid_configs}")
|
||||||
|
if ns.config in valid_configs:
|
||||||
|
print("Using " + ns.config + " configuration")
|
||||||
|
return
|
||||||
|
elif len(valid_configs) == 1:
|
||||||
|
ns.config = valid_configs.pop()
|
||||||
|
print("Found " + ns.config + " configuration")
|
||||||
|
elif ns.config is None:
|
||||||
|
print("config not selected, please choose from the following:\n")
|
||||||
|
selections = list(enumerate(sorted(valid_configs), 1))
|
||||||
|
for i, c in selections:
|
||||||
|
print(f"{i}. {c}")
|
||||||
|
s = input("\n> ")
|
||||||
|
idx = int(s) - 1
|
||||||
|
ns.config = selections[idx][1]
|
||||||
|
print(f"selected {ns.config}")
|
||||||
|
else:
|
||||||
|
raise ValueError("config " + ns.config + " is not valid")
|
||||||
|
# Remove the following, as implemented
|
||||||
|
if not ns.config.startswith('linux'):
|
||||||
|
raise ValueError(f"only Linux configs currently supported, got {ns.config}")
|
||||||
|
|
||||||
|
|
||||||
|
def main(args=None):
|
||||||
|
p = ArgumentParser("build-locally")
|
||||||
|
p.add_argument("config", default=None, nargs="?")
|
||||||
|
|
||||||
|
ns = p.parse_args(args=args)
|
||||||
|
verify_config(ns)
|
||||||
|
setup_environment(ns)
|
||||||
|
|
||||||
|
run_docker_build(ns)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
|
@ -1,5 +1,5 @@
|
||||||
{% set name = "pytest-bdd" %}
|
{% set name = "pytest-bdd" %}
|
||||||
{% set version = "3.1.0" %}
|
{% set version = "3.1.1" %}
|
||||||
|
|
||||||
package:
|
package:
|
||||||
name: '{{ name|lower }}'
|
name: '{{ name|lower }}'
|
||||||
|
@ -7,7 +7,7 @@ package:
|
||||||
|
|
||||||
source:
|
source:
|
||||||
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
|
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
|
||||||
sha256: 17dfc2b65c275641a4e76fa1f913ab737604815c275dc2afe7133956c6ab6743
|
sha256: 5cac1c61ade5548f4531233e770e40e993a6b894d799310a45d5e1b8414cb764
|
||||||
|
|
||||||
build:
|
build:
|
||||||
noarch: python
|
noarch: python
|
||||||
|
|
Loading…
Reference in New Issue