Skip to content

Commit 258536b

Browse files
committed
wip: conda recipe cleanup
1 parent 114edfe commit 258536b

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
env:
1616
CIBW_TEST_EXTRAS: test
1717
CIBW_TEST_COMMAND: pytest {project}/tests
18+
CIBW_BEFORE_BUILD: pip install git+https://github.com/pybind/pybind11.git@master
1819

1920

2021
jobs:

conda.recipe/bld.bat

Lines changed: 0 additions & 6 deletions
This file was deleted.

conda.recipe/build.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

conda.recipe/meta.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,42 @@ package:
22
name: python_example
33
version: {{ environ.get('GIT_DESCRIBE_TAG', 'dev') }}
44

5+
source:
6+
path: ..
7+
58
build:
69
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
710
{% if environ.get('GIT_DESCRIBE_NUMBER', '0') == '0' %}string: py{{ environ.get('PY_VER').replace('.', '') }}_0
811
{% else %}string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}{% endif %}
912
script_env:
1013
- CC
1114
- CXX
12-
13-
source:
14-
git_url: ../
15+
script: {{ PYTHON }} -m pip install . -vvv
1516

1617
requirements:
1718
build:
19+
- {{ compiler('cxx') }}
20+
- vs2017_{{ target_platform }} # [win]
21+
22+
host:
1823
- python
19-
- setuptools
20-
# Disabled for now - pybind11
21-
# We are requiring a version newer than the latest release
24+
- pip
25+
# Disabled for now - pybind11
26+
# We are requiring a version newer than the latest release
2227

2328
run:
2429
- python
25-
- vs2015_runtime # [win]
30+
2631

2732
test:
2833
imports:
2934
- python_example
35+
source_files:
36+
- tests
37+
requires:
38+
- pytest
39+
commands:
40+
- pytest .
3041

3142
about:
3243
summary: An example project built with pybind11.

0 commit comments

Comments
 (0)