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

Create spyder-base package that does not depend on pyqt #203

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
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
48 changes: 33 additions & 15 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{% set version = "6.0.3" %}
{% set python_min = "3.8" %}
{% set build = 1 %}

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

source:
url: https://pypi.org/packages/source/s/spyder/spyder-{{ version }}.tar.gz
sha256: 8387321b9390d7cd0af4dccf44eff21f7098e644034bf83e7e9e6a09afd80c0f
sha256: 98f52b018167de4e4d42bb24ec1d9a3c59e4031292282e08f7b0e714f2b5a6f3
patches:
# See spyder-ide/spyder#8316
- osx-zmq.patch

build:
number: 0
number: {{ build }}
entry_points:
- spyder = spyder.app.start:main
osx_is_app: true
mrclary marked this conversation as resolved.
Show resolved Hide resolved
# 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,12 +76,12 @@ 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
mrclary marked this conversation as resolved.
Show resolved Hide resolved
- sphinx >=0.6.6
- spyder-kernels >=3.0.2,<3.1.0
- spyder-kernels >=3.0.1,<3.1.0
- superqt >=0.6.2,<1.0.0
- textdistance >=4.2.0
- three-merge >=0.1.1
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]
hmaarrfk marked this conversation as resolved.
Show resolved Hide resolved
- spyder -h # [win]
# Pip fails when running but the package is installed correctly
- python -m pip check # [not aarch64]
mrclary marked this conversation as resolved.
Show resolved Hide resolved
- 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
Loading