#1 Switch to GitHub source and run tests
Opened 2 years ago by dcavalca. Modified 2 years ago
rpms/ dcavalca/python-tmuxp tox  into  rawhide

file modified
+7 -2
@@ -1,4 +1,5 @@ 

  %global srcname tmuxp

+ %global forgeurl https://github.com/tmux-python/tmuxp

  

  Name:           python-%{srcname}

  Version:        1.9.2
@@ -7,7 +8,7 @@ 

  

  License:        MIT

  URL:            https://tmuxp.git-pull.com/

- Source:         %{pypi_source}

+ Source:         %{forgeurl}/archive/v%{version}/%{srcname}-%{version}.tar.gz

  

  BuildArch:      noarch

  
@@ -19,6 +20,7 @@ 

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

  BuildRequires:  python3-devel

  BuildRequires:  pyproject-rpm-macros

+ BuildRequires:  make

  

  %description -n python3-%{srcname}

  %{summary}.
@@ -27,7 +29,7 @@ 

  %autosetup -n %{srcname}-%{version}

  

  %generate_buildrequires

- %pyproject_buildrequires

+ %pyproject_buildrequires -t

  

  %build

  %pyproject_wheel
@@ -35,6 +37,9 @@ 

  %install

  %pyproject_install

  

+ %check

+ %tox

+ 

  %files -n python3-%{srcname}

  %license LICENSE

  %doc README.md CHANGES examples

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

- SHA512 (tmuxp-1.9.2.tar.gz) = 6a0111fb49fc761ab3ee4fd2a4dce8f85e959ac9dc8bebe3d5ee5c2734d46fb2c76b74e8ed8c65a277b597d9af18dc281042698175f6f77935c665dfbea5e280

+ SHA512 (tmuxp-1.9.2.tar.gz) = e4af94fde475c999cee5aa6ad4b60a05c3a9f6f338290406043544250c4dcf688bc39e501631f442b59009156e04eb383098ea717fe7be8e9811b44886515935

The PyPI tarball doesn't include the tox config, so switch to the GitHub one so we can use it.

kaptan is fixed in f37 and I'm building it in f36 now; but looks like enabling tests fail because there's a missing BR on make:

+ /usr/bin/python3 -m tox --current-env -q --recreate -e py310
ERROR: InvocationError for command could not find executable make

rebased onto ed599be

2 years ago

Updated to add the missing BR on make.

Metadata