commit 71c0098fbcef039828212ad8a90618ce6c2e66bff068d244378fdb21b605a92b Author: Matej Cepl Date: Sat Feb 16 12:15:30 2019 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dparse-0.4.1.tar.gz b/dparse-0.4.1.tar.gz new file mode 100644 index 0000000..05df62a --- /dev/null +++ b/dparse-0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00a5fdfa900629e5159bf3600d44905b333f4059a3366f28e0dbd13eeab17b19 +size 31653 diff --git a/python-dparse.changes b/python-dparse.changes new file mode 100644 index 0000000..a2f8555 --- /dev/null +++ b/python-dparse.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Tue Feb 12 00:59:00 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-dparse.spec b/python-dparse.spec new file mode 100644 index 0000000..51af4d4 --- /dev/null +++ b/python-dparse.spec @@ -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