Skip to content

Commit

Permalink
Merge pull request #203 from mrclary/spyder-base
Browse files Browse the repository at this point in the history
Create spyder-base package that does not depend on pyqt
  • Loading branch information
dalthviz authored Feb 7, 2025
2 parents 62a10fa + a4b0ecb commit 5fe2ffa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 16 deletions.
7 changes: 4 additions & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
setlocal ENABLEDELAYEDEXPANSION

set SPYDER_QT_BINDING=conda-forge
%PYTHON% -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv
if errorlevel 1 exit 1

Expand Down
1 change: 1 addition & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

export SPYDER_QT_BINDING=conda-forge
$PYTHON -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv

rm -rf $PREFIX/man
Expand Down
44 changes: 31 additions & 13 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% set version = "6.0.4" %}
{% set python_min = "3.8" %}
{% set build = 1 %}

package:
name: spyder
name: spyder-base
version: {{ version }}

source:
Expand All @@ -13,13 +14,13 @@ source:
- osx-zmq.patch

build:
number: 0
number: {{ build }}
entry_points:
- spyder = spyder.app.start:main
osx_is_app: true
# https://github.com/conda/conda-build/issues/5385
noarch: python # [not win]
string: "osx_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}" # [osx]
noarch: python # [unix]
string: "osx_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}" # [osx]
string: "linux_pyh{{ PKG_HASH }}_{{ PKG_BUILDNUM }}" # [linux]

requirements:
Expand Down Expand Up @@ -58,16 +59,14 @@ requirements:
- parso >=0.7.0,<0.9.0
- pexpect >=4.4.0
- pickleshare >=0.4
- psutil >=5.3
# This is here to work around a bug in mamba
- ptyprocess >=0.5 # [win]
- psutil >=5.3
- pygithub >=2.3.0
- pygments >=2.0
- pylint >=3.1,<4
- pylint-venv >=3.0.2
- pyls-spyder >=0.4.0
- pyqt >=5.15,<5.16
- pyqtwebengine >=5.15,<5.16
- python.app # [osx]
- python-lsp-black >=2.0.0,<3.0.0
- python-lsp-server >=1.12.0,<1.13.0
Expand All @@ -77,7 +76,7 @@ requirements:
- qdarkstyle >=3.2.0,<3.3.0
- qstylizer >=0.2.2
- qtawesome >=1.3.1,<1.4.0
- qtconsole >=5.6.1,<5.7.0
- qtconsole-base >=5.6.1,<5.7.0
- qtpy >=2.4.0
- rtree >=0.9.7
- setuptools >=49.6.0
Expand All @@ -93,16 +92,14 @@ requirements:
- __osx # [osx]
run_constrained:
- menuinst >=2.1.2
- spyder =={{ version }}=*{{ build }}

test:
requires:
- python {{ python_min }} # [unix]
- pip
commands:
- USER=test spyder -h # [unix]
- spyder -h # [win]
# Pip fails when running but the package is installed correctly
- python -m pip check # [not aarch64]
- spyder -h
- python -m pip check
imports:
- spyder

Expand All @@ -112,6 +109,26 @@ app:
summary: The Scientific Python Development Environment
type: desk

outputs:
- name: spyder-base
- name: spyder
build:
noarch: python
requirements:
run:
- spyder-base =={{ version }}=*{{ build }}
- pyqt >=5.15,<5.16
- pyqtwebengine >=5.15,<5.16
- qtconsole >=5.6.1,<5.7.0
test:
requires:
- pip
commands:
- spyder -h
- python -m pip check
imports:
- spyder

about:
home: https://www.spyder-ide.org/
license: MIT
Expand All @@ -136,6 +153,7 @@ about:
dev_url: https://github.com/spyder-ide/spyder

extra:
feedstock-name: spyder
recipe-maintainers:
- ccordoba12
- dalthviz
Expand Down

0 comments on commit 5fe2ffa

Please sign in to comment.