15
0
forked from pool/python-dparse

Accepting request 673503 from home:jayvdb:coala:python3-bears

- Update to v0.4.1
  * Fixed a packaging error
- for 0.4.0
  * pipenv is now an optional dependency that's only used when updating a Pipfile
  * Added support for invalid toml Pipfiles
- for 0.3.0
  * Added support for setup.cfg files
  * Dependencies from Pipfiles now include the section
  * Multiline requirements are now ignored if they are marked
  * Added experimental support for Pipfiles
- Remove unnecessary build dependency on python-devel and pytest-runner
- Added Recommends for pipenv, and disabled one test related to Pipfile
  support.
- Use %license
- Initial version for 0.2.1

OBS-URL: https://build.opensuse.org/request/show/673503
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dparse?expand=0&rev=1
This commit is contained in:
2019-02-16 12:15:30 +00:00
committed by Git OBS Bridge
commit 71c0098fbc
5 changed files with 121 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
dparse-0.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00a5fdfa900629e5159bf3600d44905b333f4059a3366f28e0dbd13eeab17b19
size 31653

22
python-dparse.changes Normal file
View File

@@ -0,0 +1,22 @@
-------------------------------------------------------------------
Tue Feb 12 00:59:00 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update to v0.4.1
* Fixed a packaging error
- for 0.4.0
* pipenv is now an optional dependency that's only used when updating a Pipfile
* Added support for invalid toml Pipfiles
- for 0.3.0
* Added support for setup.cfg files
* Dependencies from Pipfiles now include the section
* Multiline requirements are now ignored if they are marked
* Added experimental support for Pipfiles
- Remove unnecessary build dependency on python-devel and pytest-runner
- Added Recommends for pipenv, and disabled one test related to Pipfile
support.
- Use %license
-------------------------------------------------------------------
Wed Jan 17 02:35:44 UTC 2018 - toddrme2178@gmail.com
- Initial version for 0.2.1

72
python-dparse.spec Normal file
View File

@@ -0,0 +1,72 @@
#
# spec file for package python-dparse
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-%{**}}
%bcond_without test
Name: python-dparse
Version: 0.4.1
Release: 0
Summary: Python dependency file parser
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jayfk/dparse
Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-packaging
Requires: python-six
Recommends: python-pipenv
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pipenv}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
%endif
%python_subpackages
%description
A parser for Python dependency files.
%prep
%setup -q -n dparse-%{version}
# Note vendor/toml.py could be unvendored
%build
%python_build
%install
%python_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.
%python_expand py.test-%{$python_bin_suffix} --deselect 'tests/test_updater.py::test_update_pipfile'
%endif
%files %{python_files}
%license LICENSE
%doc README.rst HISTORY.rst
%{python_sitelib}/*
%changelog