forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.yaml
106 lines (100 loc) · 3.39 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{% set on_win = SUBDIR in ('win-64', 'win-32') %}
package:
name: conda
version: "{{ GIT_DESCRIBE_TAG }}"
source:
path: ../
build:
# These are present when the new environment is created
# so we have to exempt them from the list of initial files
# for conda-build to realize they should be included.
always_include_files:
- bin/conda [unix]
- bin/activate [unix]
- bin/deactivate [unix]
- Scripts/activate.bat [win]
- Scripts/activate [win]
- Scripts/deactivate [win]
requirements:
host:
- python
- enum34 # [py<34]
- futures >=3.0.0 # [py<34]
- menuinst >=1.4.11,<2 # [win]
- pip
- ruamel_yaml >=0.11.14,<0.16
- setuptools >=31.0.1
run:
- python
- conda-package-handling
- enum34 # [py<34]
- futures >=3.0.0 # [py<34]
- menuinst >=1.4.11,<2 # [win]
- pycosat >=0.6.3
- pyopenssl >=16.2.0
- requests >=2.18.4,<3
- ruamel_yaml >=0.11.14,<0.16
- setuptools >=31.0.1
run_constrained:
- conda-build >=3
- conda-env >=2.6
- cytoolz >=0.8.1
test:
source_files:
- tests
- setup.cfg
requires:
- mock
- pytest
- pexpect
- responses
- conda-build
imports:
- conda
- conda_env
commands:
{% if on_win %}
- echo
# - SET CONDA_SHLVL=
# - CALL %PREFIX%\condabin\conda_hook.bat
# - CALL conda.bat activate base
# - FOR /F "delims=" %%i IN ('python -c "import sys; print(sys.version_info[0])"') DO set "PYTHON_MAJOR_VERSION=%%i"
# - set TEST_PLATFORM=win
# - FOR /F "delims=" %%i IN ('python -c "import random as r; print(r.randint(0,4294967296))"') DO set "PYTHONHASHSEED=%%i"
# - set
# - conda info
# - conda create -y -p .\built-conda-test-env
# - CALL conda.bat activate .\built-conda-test-env
# - echo %CONDA_PREFIX%
# - IF NOT "%CONDA_PREFIX%"=="%CD%\built-conda-test-env" EXIT /B 1
# - CALL conda.bat deactivate
# - pytest tests -m "not integration and not installed" -vv
{% else %}
- unset CONDA_SHLVL
- eval "$(python -m conda shell.bash hook)"
- conda activate base
- export PYTHON_MAJOR_VERSION=$(python -c "import sys; print(sys.version_info[0])")
- export TEST_PLATFORM=$(python -c "import sys; print('win' if sys.platform.startswith('win') else 'unix')")
- 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
- conda activate ./built-conda-test-env
- echo $CONDA_PREFIX
- '[ "$CONDA_PREFIX" = "$PWD/built-conda-test-env" ] || exit 1'
- conda deactivate
- pytest tests -m "not integration and not installed" -vv
{% endif %}
about:
home: https://conda.io/
license: BSD
license_file: LICENSE.txt
summary: OS-agnostic, system-level binary package and environment manager.
description: |
Conda is an open source package management system and environment
management system for installing multiple versions of software packages
and their dependencies and switching easily between them. It works on
Linux, OS X and Windows, and was created for Python programs but can
package and distribute any software.
doc_url: http://conda.pydata.org/docs/
dev_url: https://github.com/conda/conda