Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow builds without pywin32 on any Python #97

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% set version = "5.7.2" %}

{% set build = 2 %}
{% if noarch_platform != "win_no_pw32" %}
{# use build offset to prioritize builds that require pywin32 #}
{% set build = build + 100 %}
{% endif %}

package:
name: jupyter_core
version: {{ version }}
Expand All @@ -9,7 +15,7 @@ source:
sha256: aa5f8d32bbf6b431ac830496da7392035d6f61b4f54872f15c4bd2a9c3f536d9

build:
number: 1
number: {{ build }}
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps -vv --no-build-isolation
entry_points:
Expand All @@ -22,9 +28,6 @@ requirements:
- pip
- python >=3.8
- hatchling >=1.4
{% if noarch_platform == "win_no_pw32" %}
- pypy
{% endif %}
run:
- platformdirs >=2.5
- python >=3.8
Expand All @@ -34,10 +37,8 @@ requirements:
{% elif noarch_platform == "win" %}
- __win
- pywin32 >=300
- cpython
{% elif noarch_platform == "win_no_pw32" %}
- __win
- pypy
{% endif %}

{% set skip = ["test_not_on_path", "test_path_priority", "test_argv0"] %}
Expand All @@ -63,6 +64,9 @@ test:
requires:
- pytest-cov
- pip
{% if noarch_platform == "win_no_pw32" %}
- pypy
{% endif %}
commands:
- pip check
- jupyter -h
Expand Down
Loading