From 0254737deace0ac04bd72616914055a57c5c4632 Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Fri, 31 Jul 2020 09:46:22 +0200 Subject: [PATCH] Fix outputs' test and entrypoints, set PIP env vars (#15) * Set pip/python env variables for pip install * fix test and entrypoints for outputs * bump build number * MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.4, and conda-forge-pinning 2020.07.23.07.37.39 --- README.md | 18 +++++++++--------- recipe/build_base.sh | 9 ++++++++- recipe/meta.yaml | 14 ++++++++------ 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f57c08c..a5272d2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -About black -=========== +About black-recipe +================== Home: https://github.com/python/black @@ -36,10 +36,10 @@ Current release info | [![Conda Recipe](https://img.shields.io/badge/recipe-black-green.svg)](https://anaconda.org/conda-forge/black) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/black.svg)](https://anaconda.org/conda-forge/black) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/black.svg)](https://anaconda.org/conda-forge/black) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/black.svg)](https://anaconda.org/conda-forge/black) | | [![Conda Recipe](https://img.shields.io/badge/recipe-blackd-green.svg)](https://anaconda.org/conda-forge/blackd) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/blackd.svg)](https://anaconda.org/conda-forge/blackd) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/blackd.svg)](https://anaconda.org/conda-forge/blackd) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/blackd.svg)](https://anaconda.org/conda-forge/blackd) | -Installing black -================ +Installing black-recipe +======================= -Installing `black` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: +Installing `black-recipe` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: ``` conda config --add channels conda-forge @@ -96,17 +96,17 @@ Terminology produce the finished article (built conda distributions) -Updating black-feedstock -======================== +Updating black-recipe-feedstock +=============================== -If you would like to improve the black recipe or build a new +If you would like to improve the black-recipe recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the `conda-forge` channel, whereupon the built conda packages will be available for everybody to install and use from the `conda-forge` channel. -Note that all branches in the conda-forge/black-feedstock are +Note that all branches in the conda-forge/black-recipe-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions. diff --git a/recipe/build_base.sh b/recipe/build_base.sh index f25349c..f011eaa 100644 --- a/recipe/build_base.sh +++ b/recipe/build_base.sh @@ -1,4 +1,11 @@ #!/bin/bash set -euo pipefail -${PYTHON} -m pip install . --no-deps -vv +# Set a few environment variables that are not set due to +# https://github.com/conda/conda-build/issues/3993 +PIP_NO_BUILD_ISOLATION=False \ + PIP_NO_DEPENDENCIES=True \ + PIP_IGNORE_INSTALLED=True \ + PIP_NO_INDEX=True \ + PYTHONDONTWRITEBYTECODE=True \ + ${PYTHON} -m pip install . --no-deps -vv diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 10031ee..ca32500 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -2,7 +2,7 @@ {% set version = "19.10b0" %} package: - name: {{ name|lower }} + name: {{ name|lower }}-recipe version: {{ version }} source: @@ -10,15 +10,15 @@ source: sha256: c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539 build: - number: 3 - noarch: python - entry_points: - - black = black:patched_main - - blackd = blackd:patched_main + number: 4 outputs: - name: {{ name }} script: build_base.sh + build: + noarch: python + entry_points: + - black = black:patched_main requirements: host: - python >=3.6 @@ -40,6 +40,8 @@ outputs: - name: {{ name }}d build: noarch: python + entry_points: + - blackd = blackd:patched_main requirements: run: - {{ pin_subpackage('black', exact=True) }}