2018-03-10 10:18:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-txtorcon
|
|
|
|
#
|
2024-09-23 08:52:29 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-03-10 10:18:47 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:10:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-10 10:19:47 +00:00
|
|
|
#
|
2018-03-10 10:18:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-txtorcon
|
2024-09-23 08:52:29 +00:00
|
|
|
Version: 24.8.0
|
2018-03-10 10:18:47 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Twisted-based asynchronous Tor control protocol implementation
|
2018-03-10 10:19:47 +00:00
|
|
|
License: MIT
|
2018-04-23 09:17:57 +00:00
|
|
|
URL: https://txtorcon.readthedocs.org
|
2018-03-10 10:18:47 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/txtorcon/txtorcon-%{version}.tar.gz
|
2024-09-23 08:52:29 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-03-10 10:18:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools >= 36.2}
|
2024-09-23 08:52:29 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-03-10 10:19:47 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-17 10:31:19 +00:00
|
|
|
Requires: python-Automat
|
2022-06-28 08:45:55 +00:00
|
|
|
Requires: python-Twisted-tls >= 15.5.0
|
2023-09-19 15:24:00 +00:00
|
|
|
Requires: python-cryptography
|
2019-06-17 10:31:19 +00:00
|
|
|
Requires: python-zope.interface >= 3.6.1
|
2018-03-10 10:19:47 +00:00
|
|
|
BuildArch: noarch
|
2018-03-10 10:18:47 +00:00
|
|
|
# SECTION test requirements
|
2021-05-01 20:24:49 +00:00
|
|
|
BuildRequires: lsof
|
2019-06-17 10:31:19 +00:00
|
|
|
BuildRequires: %{python_module Automat}
|
2022-06-28 08:45:55 +00:00
|
|
|
BuildRequires: %{python_module Twisted-tls >= 15.5.0}
|
2023-09-19 15:24:00 +00:00
|
|
|
BuildRequires: %{python_module cryptography}
|
2019-06-17 10:31:19 +00:00
|
|
|
BuildRequires: %{python_module zope.interface >= 3.6.1}
|
2018-03-10 10:18:47 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-03-10 10:19:47 +00:00
|
|
|
Twisted-based asynchronous Tor control protocol implementation. Includes
|
2018-03-10 10:18:47 +00:00
|
|
|
unit-tests, examples, state-tracking code and configuration abstraction.
|
|
|
|
|
|
|
|
%prep
|
2021-08-31 16:09:01 +00:00
|
|
|
%autosetup -p1 -n txtorcon-%{version}
|
2018-03-10 10:18:47 +00:00
|
|
|
|
|
|
|
sed -i '/data_files/,/\]\,/s/^/#/' setup.py
|
|
|
|
|
|
|
|
%build
|
2024-09-23 08:52:29 +00:00
|
|
|
%pyproject_wheel
|
2018-03-10 10:18:47 +00:00
|
|
|
|
|
|
|
%install
|
2024-09-23 08:52:29 +00:00
|
|
|
%pyproject_install
|
2018-04-23 09:17:57 +00:00
|
|
|
# remove the tests from distribution
|
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/test/
|
2018-03-10 10:18:47 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-06-17 10:31:19 +00:00
|
|
|
%check
|
|
|
|
# looks more like integration tests
|
2021-05-01 20:24:49 +00:00
|
|
|
# Async tests don't work with pytest gh#crossbario/autobahn-python#1235
|
2021-08-31 16:09:01 +00:00
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
|
|
$python -m twisted.trial test
|
|
|
|
}
|
2019-06-17 10:31:19 +00:00
|
|
|
|
2018-03-10 10:18:47 +00:00
|
|
|
%files %{python_files}
|
2019-06-17 10:31:19 +00:00
|
|
|
%license LICENSE docs/*.rst
|
2023-09-19 15:24:00 +00:00
|
|
|
%{python_sitelib}/txtorcon
|
2024-09-23 08:52:29 +00:00
|
|
|
%{python_sitelib}/txtorcon-%{version}.dist-info
|
2023-09-19 15:24:00 +00:00
|
|
|
%{python_sitelib}/twisted/plugins/*
|
2018-03-10 10:18:47 +00:00
|
|
|
|
|
|
|
%changelog
|