#4 update to new upstream version 2.5, simplify running the tests
Merged 2 months ago by mbaldessari. Opened 2 months ago by fschwarz.
Unknown source master  into  master

file modified
+18 -7

@@ -1,9 +1,11 @@

  %{?python_enable_dependency_generator}

  %global realname parsedatetime

  

+ %bcond_with tests

+ 

  Name:           python-%{realname}

- Version:        2.4

- Release:        15%{?dist}

+ Version:        2.5

+ Release:        1%{?dist}

  Summary:        Parse human-readable date/time strings in Python

  

  License:        ASL 2.0

@@ -11,17 +13,18 @@

  Source0:        https://github.com/bear/%{realname}/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz

  

  BuildArch:      noarch

+ BuildRequires:  python3-devel

+ BuildRequires:  python3-setuptools

+ %if %{with tests}

  BuildRequires:  %{_bindir}/tox

  BuildRequires:  python3-coverage

- BuildRequires:  python3-devel

  BuildRequires:  python3-flake8

- BuildRequires:  python3-future

  BuildRequires:  python3-mccabe

  BuildRequires:  python3-pyicu

  BuildRequires:  python3-pytest

  BuildRequires:  python3-pytest-runner

  BuildRequires:  python3-pytest-cov

- BuildRequires:  python3-setuptools

+ %endif

  

  %global _description\

  parsedatetime is a python module that can parse human-readable date/time\

@@ -54,9 +57,11 @@

  %check

  # a bunch of tox tests have been added and not all packaged

  # so mockbuild will fail without network.

- # comment this next line when rebuilding locally with network

- exit 0

+ # You can run the tests with

+ #   fedpkg mockbuild --enable-network --with=tests

+ %if %{with tests}

  tox -e py%{python3_version_nodots} --sitepackages

+ %endif

  

  %files -n python3-%{realname}

  %license LICENSE.txt

@@ -65,6 +70,12 @@

  %{python3_sitelib}/%{realname}*.egg-info

  

  %changelog

+ * Thu Nov 21 2019 Felix Schwarz <fschwarz@fedoraproject.org> 2.5-1

+ - update to new upstream version 2.5 (#1773846)

+ 

+ * Thu Nov 21 2019 Felix Schwarz <fschwarz@fedoraproject.org> 2.4-16

+ - add "tests" define to run tests manually without changing the spec file

+ 

  * Thu Oct 03 2019 Miro HronĨok <mhroncok@redhat.com> - 2.4-15

  - Rebuilt for Python 3.8.0rc1 (#1748018)

  

file modified
+1 -1

@@ -1,1 +1,1 @@

- SHA512 (parsedatetime-2.4.tar.gz) = 0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046

+ SHA512 (parsedatetime-2.5.tar.gz) = f729c32a3e5ee94fe39322be4772dffacb0608753e106e64d79818a6be3febc36f37e0eeac73190f1510f5e88aa0755eb0fb85fab19aa53f4643619907b245bf

  • update to new upstream version 2.5 (#1773846)
  • add "tests" define so the tests can be run without changing the source file

Also test dependencies are only BuildRequire'd if you actually want to run the tests. This should make it easier to get it into EPEL8 (which is required for certbot) because some of these test dependencies are not available there.

ping :-)

(If you are looking for help maintaining this, I'm inclined to do it. Maybe it would be even better to ask certbot-sig if they could take it.)

I don't want to be pushy here but would you mind sending a quick reply that you are still interested in maintaining this package?

Pull-Request has been merged by mbaldessari

2 months ago
Metadata