- Update to 0.6.4
* Fix "AttributeError: SafeConfigParser instance has no attribute 'values'" * Support poetry.lock version >= 1.5 * Add pyproject parser * Test pyproject parser * Add to readme * Remove python2-ism in the code * Migrate to pyproject.toml * Maybe you don't even need build-system * Add and fix workflows * Replace ConfigParser's 'readfp' by 'read_string' * Run tests on PR events * Trigger label check on fork PRs * ci(.github): revamp workflows and add hatch * perf(.github): prepare release workflows * perf(pyproject.toml): Set the start version of the new dparse release * ci(ci.yml): Set SLUG to release when the correct even is triggered * docs(CHANGELOG.md): Reset CHANGELOG.md * build(pyproject.toml): Fix steps for changelog generation * ci(release.yml): Download artifact from another workflow - Add python-hatchling to BuildRequires - Drop fix-configparser-parsing.patch, merged upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dparse?expand=0&rev=17
This commit is contained in:
73
python-dparse.spec
Normal file
73
python-dparse.spec
Normal file
@@ -0,0 +1,73 @@
|
||||
#
|
||||
# spec file for package python-dparse
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
Name: python-dparse
|
||||
Version: 0.6.4
|
||||
Release: 0
|
||||
Summary: Python dependency file parser
|
||||
License: MIT
|
||||
URL: https://github.com/jayfk/dparse
|
||||
Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML
|
||||
Requires: python-packaging
|
||||
Requires: (python-tomli if python-base < 3.11)
|
||||
Recommends: python-pipenv
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A parser for Python dependency files.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n dparse-%{version}
|
||||
# Note vendor/toml.py could be unvendored
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# There is a bug in the pipenv support, related to writing a new toml file.
|
||||
# Both dparse and pipenv have a vendored copy of different toml libraries.
|
||||
# and even more, we do not have pipenv in our distribution
|
||||
%pytest --deselect 'tests/test_updater.py::test_update_pipfile'
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst HISTORY.rst
|
||||
%{python_sitelib}/dparse
|
||||
%{python_sitelib}/dparse-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user