Skip to content

Commit

Permalink
Merge pull request conda#10441 from mingwandroid/master.ruamel_yaml_c…
Browse files Browse the repository at this point in the history
…onda

We rename ruamel_yaml to ruamel_yaml_conda in our ruamel_yaml package
  • Loading branch information
cjmartian authored Jan 4, 2021
2 parents 2fcfec1 + 7f67942 commit c53a3a4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

echo $PKG_VERSION > conda/.version
$PYTHON setup.py install --single-version-externally-managed --record record.txt
if [[ $(uname -o) != Msys ]]; then
if [[ ! $(uname) =~ M.* ]]; then
rm -rf "$SP_DIR/conda/shell/*.exe"
fi
$PYTHON -m conda init --install
if [[ $(uname -o) == Msys ]]; then
if [[ ! $(uname) =~ M.* ]]; then
sed -i "s|CONDA_EXE=.*|CONDA_EXE=\'${PREFIXW//\\/\\\\}\\\\Scripts\\\\conda.exe\'|g" $PREFIX/etc/profile.d/conda.sh
fi
5 changes: 3 additions & 2 deletions conda.recipe/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ export TEST_PLATFORM=$(python -c "import sys; print('win' if sys.platform.starts
export PYTHONHASHSEED=$(python -c "import random as r; print(r.randint(0,4294967296))") && echo "PYTHONHASHSEED=$PYTHONHASHSEED"
env | sort
conda info
conda create -y -p ./built-conda-test-env python=3.5
conda create -y -p ./built-conda-test-env python=3.9
conda activate ./built-conda-test-env
echo $CONDA_PREFIX
[ "$CONDA_PREFIX" = "$PWD/built-conda-test-env" ] || exit 1
[ $(python -c "import sys; print(sys.version_info[1])") = 5 ] || exit 1
[ $(python -c "import sys; print(sys.version_info[1])") = 9 ] || exit 1
python -c '__requires__ = ["ruamel_yaml_conda >= 0.11.14"]; import pkg_resources' || exit 1
conda deactivate
py.test tests -m "not integration and not installed" -vv
1 change: 1 addition & 0 deletions dev/start
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if ! [ -f "$devenv/conda-meta/history" ]; then
fi
cmd.exe /c "start /wait \"\" miniconda${pyver}.exe /InstallationType=JustMe /RegisterPython=0 /AddToPath=0 /S /D=%CD%\$(cygpath -w $devenv)"
_CONDA="$devenv/Scripts/conda"
"$devenv/Scripts/conda" install -yq -p $devenv python=$pyver --file dev/test-requirements.txt -c defaults -c conda-forge
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
]

if os.getenv('CONDA_BUILD', None) == '1':
install_requires.append("ruamel_yaml >=0.11.14")
install_requires.append("ruamel_yaml_conda >=0.11.14")
else:
install_requires.append("ruamel.yaml >=0.11.14")
install_requires.append("ruamel_yaml_conda >=0.11.14")


def package_files(*root_directories):
Expand Down

0 comments on commit c53a3a4

Please sign in to comment.