| |
@@ -1,7 +1,3 @@
|
| |
- # Require deprecated nose so disabled
|
| |
- # we test in mock though and all tes pass
|
| |
- # Upstream issue filed:
|
| |
- # https://github.com/mariomulansky/PySpike/issues/48
|
| |
%bcond_with tests
|
| |
|
| |
%global _description %{expand:
|
| |
@@ -40,15 +36,20 @@
|
| |
|
| |
Documentation is available at http://mariomulansky.github.io/PySpike/
|
| |
}
|
| |
+ %global forgeurl https://github.com/mariomulansky/PySpike/
|
| |
|
| |
Name: python-pyspike
|
| |
- Version: 0.7.0
|
| |
+ Version: 0.8.0
|
| |
Release: %autorelease
|
| |
Summary: Library for the numerical analysis of spike train similarity
|
| |
|
| |
- License: BSD
|
| |
- URL: https://github.com/mariomulansky/PySpike/
|
| |
- Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
| |
+ %global tag %{version}
|
| |
+ %forgemeta
|
| |
+
|
| |
+ License: BSD-2-Clause
|
| |
+ URL: %forgeurl
|
| |
+ Source0: %forgesource
|
| |
+
|
| |
BuildRequires: python3-devel
|
| |
|
| |
%description %_description
|
| |
@@ -59,16 +60,15 @@
|
| |
# https://github.com/mariomulansky/PySpike/issues/70
|
| |
BuildRequires: python3-Cython < 3~~
|
| |
BuildRequires: gcc
|
| |
-
|
| |
%if %{with tests}
|
| |
- BuildRequires: python3-nose
|
| |
- BuildRequires: %{py3_dist scipy}
|
| |
+ BuildRequires: python3-pytest
|
| |
+ BuildRequires: python3-scipy
|
| |
%endif
|
| |
|
| |
%description -n python3-pyspike %_description
|
| |
|
| |
%prep
|
| |
- %autosetup -n PySpike-%{version}
|
| |
+ %forgesetup
|
| |
|
| |
# Comment out to remove /usr/bin/env shebangs
|
| |
# Can use something similar to correct/remove /usr/bin/python shebangs also
|
| |
@@ -92,15 +92,11 @@
|
| |
%pyproject_save_files pyspike
|
| |
|
| |
%check
|
| |
- %if %{with tests}
|
| |
- # https://github.com/mariomulansky/PySpike/blob/master/.travis.yml
|
| |
- nosetests
|
| |
- nosetests test/numeric
|
| |
- %endif
|
| |
+ %{pytest} -v
|
| |
|
| |
%files -n python3-pyspike -f %{pyproject_files}
|
| |
%license License.txt
|
| |
- %doc Readme.rst Changelog Contributors.txt
|
| |
+ %doc Readme.rst Changelog Contributors.txt
|
| |
|
| |
%changelog
|
| |
%autochangelog
|
| |
Does not currently build, probably because of new Cython. Needs investigation.