#2 Update to 3.0.0b2 (RHBZ#2139556)
Merged 2 months ago by gui1ty. Opened 3 months ago by gui1ty.
rpms/ gui1ty/python-spyder-kernels beta  into  rawhide

file modified
+1
@@ -19,3 +19,4 @@ 

  /spyder-kernels-2.3.2.tar.gz

  /spyder-kernels-2.3.3.tar.gz

  /spyder-kernels-2.4.4.tar.gz

+ /spyder-kernels-3.0.0b2.tar.gz

file added
+16
@@ -0,0 +1,16 @@ 

+ upstream_project_url: https://github.com/spyder-ide/spyder-kernels

+ upstream_tag_template: v{version}

+  

+ copy_upstream_release_description: false

+  

+ jobs:

+   - job: pull_from_upstream

+     trigger: release

+     dist_git_branches:

+       - fedora-rawhide

+   - job: koji_build

+  

+     trigger: commit

+     dist_git_branches:

+       - fedora-all

+ 

file modified
+37 -54
@@ -1,84 +1,67 @@ 

  %global pypi_name spyder-kernels

  

+ # Use forge macros for pulling from GitHub

+ %global forgeurl https://github.com/spyder-ide/spyder-kernels

+ 

  Name:           python-%{pypi_name}

- Version:        2.4.4

+ Version:        3.0.0~b2

  Release:        %autorelease

  Epoch:          1

- Summary:        Jupyter kernels for the Spyder console

- 

+ Summary:        Jupyter kernels for Spyder's console

+ %global tag v%{version_no_tilde %{quote:%nil}}

+ %forgemeta

  License:        MIT

- URL:            https://github.com/spyder-ide/spyder-kernels

- Source0:        %pypi_source

+ URL:            %forgeurl

+ Source0:        %forgesource

  BuildArch:      noarch

  

  BuildRequires:  python3-devel

- BuildRequires:  python3dist(cloudpickle)

- BuildRequires:  python3dist(ipykernel)

- BuildRequires:  python3dist(setuptools)

- BuildRequires:  python3dist(wurlitzer)

- 

- # for tests

- # python3

- BuildRequires:  python3dist(cython)

- BuildRequires:  python3dist(flaky)

- BuildRequires:  python3dist(jupyter-client)

- BuildRequires:  python3dist(matplotlib)

- BuildRequires:  python3dist(mock)

- BuildRequires:  python3dist(numpy)

- BuildRequires:  python3dist(pandas)

- BuildRequires:  python3dist(pytest)

- BuildRequires:  python3dist(pytest-cov)

- BuildRequires:  python3dist(pyzmq)

- BuildRequires:  python3dist(scipy)

- BuildRequires:  python3dist(xarray)

- 

- %description

- This package provides jupyter kernels used by spyder on its IPython console.

+ 

+ %global _description %{expand:

+ Package that provides Jupyter kernels for use with the consoles of

+ Spyder, the Scientific Python Development Environment.

+ 

+ These kernels can launched either through Spyder itself or in an

+ independent Python session, and allow for interactive or file-based

+ execution of Python code inside Spyder.}

+ 

+ %description %_description

+ 

  

  %package -n     python3-%{pypi_name}

  Summary:        %{summary}

- %{?python_provide:%python_provide python3-%{pypi_name}}

  

- Requires:       python3dist(cloudpickle)

- Requires:       python3dist(ipykernel)

- Requires:       python3dist(jupyter-client)

- Requires:       python3dist(pyzmq)

- Requires:       python3dist(wurlitzer)

- 

- %description -n python3-%{pypi_name}

- This package provides python3 version of jupyter kernels used by spyder on its

-  IPython console.

+ %description -n python3-%{pypi_name} %_description

  

  

  %prep

- %autosetup -n %{pypi_name}-%{version}

- 

- # spyder-kernel 2.2.1 - relax ipython version

- sed -i '\@ipython@s|>=7.31.1,<8|>=7.31.1|' setup.py

+ %forgesetup

  

- # relax ipykernel dependency for now (bug 2070644)

- sed -i '\@ipykernel@s|6.9.2|6.6.1|' setup.py

  

- # relax jupyter-client version

- sed -i '\@jupyter-client@s|>=7.3.4,<8|>7|' setup.py

+ %generate_buildrequires

+ %pyproject_buildrequires

  

- rm -rfv spyder_kernels.egg-info

  

  %build

- %py3_build

+ %pyproject_wheel

+ 

  

  %install

- %py3_install

+ %pyproject_install

+ %pyproject_save_files spyder_kernels

+ 

  

  %check

- # tests not present in pypi source

- #export PYTHONPATH={buildroot}{python3_sitelib} pytest-3

+ # Package doesn't provide any tests

+ # For the import test a lot of runtime dependencies are required, so we

+ # skip that as well

+ #%%pyproject_check_import

+ 

  

- %files -n python3-%{pypi_name}

- %license LICENSE.txt

+ %files -n python3-%{pypi_name} -f %{pyproject_files}

+ #%%license LICENSE.txt

  %doc README.md

- %{python3_sitelib}/spyder_kernels

- %{python3_sitelib}/spyder_kernels-%{version}-py%{python3_version}.egg-info

+ 

  

  %changelog

  %autochangelog

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (spyder-kernels-2.4.4.tar.gz) = 826ced4928d8308e1a31790f0938e24ee8171b7e1f890a322bf652798991db4f3c2c270dd1b9cee44110ac85724043e4f80bc2adb54ad9f09f5414ee8bbd0a4a

+ SHA512 (spyder-kernels-3.0.0b2.tar.gz) = 401a454dc2a3ca33653c55360e14c110fd9430c4dec376765290e0d4fc04a2117f3875a03ce44eae0a0839c81afd40794cb4e36898922da42a950880301564c4

Also overhauled the spec file
- Use forge macros
- Use Python RPM macros
- Remove sed scripts (they no longer apply)
- Update summary and description (follow upstream)
- Remove BuildRequires: and Requires: (auto generated)

Pull-Request has been merged by gui1ty

2 months ago