forked from pool/python-pytoml
Accepting request 655995 from devel:languages:python
- Fix fdupes call - Update to 0.1.20: * many small bugfixes around * Include license file - Update the test tgz tarball from the git OBS-URL: https://build.opensuse.org/request/show/655995 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytoml?expand=0&rev=2
This commit is contained in:
16
LICENSE
16
LICENSE
@@ -1,16 +0,0 @@
|
|||||||
No-notice MIT License
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
3
b212790.tar.gz
Normal file
3
b212790.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:551bae7c70d83a315a3ed092caa3fbc6b2e8d65fb52d0f555647cbc3f5eb5f3b
|
||||||
|
size 19525
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a097166292d39e69b8d95f20d67e3609e48b96d88a11e76382e1e5e8e099209d
|
|
||||||
size 16627
|
|
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 10:20:44 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix fdupes call
|
||||||
|
- Update to 0.1.20:
|
||||||
|
* many small bugfixes around
|
||||||
|
* Include license file
|
||||||
|
- Update the test tgz tarball from the git
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 18 06:07:49 UTC 2018 - bruno@ioda-net.ch
|
Fri May 18 06:07:49 UTC 2018 - bruno@ioda-net.ch
|
||||||
|
|
||||||
|
@@ -12,13 +12,13 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytoml
|
Name: python-pytoml
|
||||||
Version: 0.1.14
|
Version: 0.1.20
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: TOML-0.4.0 parser/writer for Python
|
Summary: TOML-0.4.0 parser/writer for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -26,10 +26,7 @@ Group: Development/Libraries/Python
|
|||||||
URL: https://github.com/avakar/pytoml
|
URL: https://github.com/avakar/pytoml
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pytoml/pytoml-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pytoml/pytoml-%{version}.tar.gz
|
||||||
# toml-test for tests from author's fork with specific commit
|
# toml-test for tests from author's fork with specific commit
|
||||||
Source1: https://github.com/avakar/toml-test/archive/fa9501a1.tar.gz
|
Source1: https://github.com/avakar/toml-test/archive/b212790.tar.gz
|
||||||
# Next release should contain it in std tgz
|
|
||||||
Source2: https://raw.githubusercontent.com/avakar/pytoml/master/LICENSE
|
|
||||||
BuildRequires: %{python_module base}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -39,29 +36,26 @@ BuildArch: noarch
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
A specs-conforming and strict parser and writer for TOML files.
|
A specs-conforming and strict parser and writer for TOML files.
|
||||||
The library currently supports version 0.4.0 of the specs and
|
The library currently supports version 0.4.0 of the specs.
|
||||||
runs with Python 2.6+ and 3.3+.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytoml-%{version}
|
%setup -q -n pytoml-%{version}
|
||||||
cp -a %{SOURCE2} LICENSE
|
|
||||||
tar -C test -xzf%{SOURCE1}
|
tar -C test -xzf%{SOURCE1}
|
||||||
cd test
|
cd test
|
||||||
mv toml-test-fa9501a192b7c46b82059caddaef978e3de883dc toml-test
|
mv toml-test-b212790a6b7367489f389411bda009e5ff765f20 toml-test
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%fdupes %{buildroot}%{_prefix}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand export PYTHONPATH=%{buildroot}%{python_sitelib}; python test/test.py
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
%python_expand PYTHONPATH=%{buildroot}%{python_sitelib} $python test/test.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/pytoml/
|
%{python_sitelib}/pytoml/
|
||||||
%{python_sitelib}/pytoml-%{version}-py%{py_ver}.egg-info/
|
%{python_sitelib}/pytoml-%{version}-py%{py_ver}.egg-info/
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aff69147d436c3ba8c7f3bc1b3f4aa3d7e47d305a495f2631872e6429694aabf
|
|
||||||
size 6466
|
|
3
pytoml-0.1.20.tar.gz
Normal file
3
pytoml-0.1.20.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ca2d0cb127c938b8b76a9a0d0f855cf930c1d50cc3a0af6d3595b566519a1013
|
||||||
|
size 8491
|
Reference in New Issue
Block a user