15
0
forked from pool/python-jira
Files
python-jira/python-jira.spec
Dirk Mueller d53c4ff81b - update to 3.5.0:
* [feature] Add support for requests timeout
  * Add projectstatuses method to get project statuses (missing
    endpoint)
  * Get the properties when fetching an Issue
  * Support for the new 'createmeta' API in Jira 8.4+
  * Make `create_issue_link` work with issue_link-objects
  * [feature] Add support for requests timeout
  * Made create_issue and create_issues consistent to handle
    multiple issue types with same name
  * KeyError: "X-RateLimit-FillRate" fix
  * Properly parse errorMessage key in error response
  * Use proper SPDX identifier
  * Remove setup.py and tidy build scripts
  * add required parameter field 'permissions' to my_permissions
    method
  * Avoid always passing on an empty body even if not given
  * Add support for IssueProperty resource
  * Add project arg to `.issue_type_by_name()`
  * fix `.add_issues_to_epic()`
  * Fix using str as issue type with `.create_issue()` when issue
    type with that name exists in many projects
  * allow filter updates when no description returned by Jira
  * Fix bug preventing use of an int for issuetype in
    `create_issue()`
  * derive attachment fname from BufferedReader object
  * [Regression] ensure `None` is handled correctly in
    `search_issues()`
  * Raise `JIRAError` when no user found
  * Add client route for deleting remote links by global (and

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jira?expand=0&rev=17
2023-05-03 09:02:32 +00:00

82 lines
2.5 KiB
RPMSpec

#
# spec file for package python-jira
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jira
Version: 3.5.0
Release: 0
Summary: Python library for interacting with JIRA via REST APIs
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/pycontribs/jira
Source: https://files.pythonhosted.org/packages/source/j/jira/jira-%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pbr >= 3.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-defusedxml
Requires: python-keyring
Requires: python-oauthlib
Requires: python-pbr >= 3.0.0
Requires: python-requests >= 2.10.0
Requires: python-requests-oauthlib >= 0.6.1
Requires: python-requests-toolbelt
Requires: python-typing_extensions >= 3.7.4.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
This library eases the use of the JIRA REST API from Python.
%prep
%setup -q -n jira-%{version}
%build
export LANG=en_US.UTF-8
%pyproject_wheel
%install
export LANG=en_US.UTF-8
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/jirashell
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Right, no test suite running, because the package tests against the
# real instance of Jira. gh#pycontribs/jira#1262
%post
%python_install_alternative jirashell
%postun
%python_uninstall_alternative jirashell
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%python_alternative %{_bindir}/jirashell
%{python_sitelib}/*
%changelog