14
0
forked from pool/python-pytoml

Accepting request 610219 from home:bruno_friedmann:branches:devel:languages:python

Find the up to date package which has been moved to misc.
It is now ready to find its home in d:l:p and be submitted to Factory
Thanks to make me maintainer, bugowner of it.

About the tests discussed in sr#607655
I've added them here as tgz. Those are a fork by the author
of pytoml, with additions.

OBS-URL: https://build.opensuse.org/request/show/610219
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytoml?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2018-05-18 06:49:49 +00:00
committed by Git OBS Bridge
commit 642a1fdcc2
7 changed files with 164 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

16
LICENSE Normal file
View File

@@ -0,0 +1,16 @@
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
fa9501a1.tar.gz Normal file
View File

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

49
python-pytoml.changes Normal file
View File

@@ -0,0 +1,49 @@
-------------------------------------------------------------------
Fri May 18 06:07:49 UTC 2018 - bruno@ioda-net.ch
- Update to bugfix version 0.1.14
- Packaging
+ add raw source for LICENSE (next tgz will contain it)
+ spec-cleaner (date,url,license)
+ add %check section to run tests
+ add specific author's fork tgz of toml-test
-------------------------------------------------------------------
Tue Jun 13 07:53:17 UTC 2017 - bruno@ioda-net.ch
- Update to bugfix version 0.1.13
- Move to python singlespec build
- Update copyright year
- Use pythonhosted host for source download
- Use normal tar.gz source
-------------------------------------------------------------------
Mon Aug 29 20:38:32 UTC 2016 - bruno@ioda-net.ch
- Update to bugfix revision 0.1.11
- Fix issues with sort_key.
- Tweak tests to handle failure correctly.
- A python3-pytoml packages is available in d:l:python3
- Notice to packagers : if you update python2, update python3
version too.
-------------------------------------------------------------------
Tue Jun 28 08:47:36 UTC 2016 - kgronlund@suse.com
- Update sourcelink
-------------------------------------------------------------------
Tue Jun 28 00:31:19 UTC 2016 - kgronlund@suse.com
- Updated description and license for package.
-------------------------------------------------------------------
Wed Jun 1 20:52:56 UTC 2016 - kgronlund@suse.com
- Update to 0.1.10
-------------------------------------------------------------------
Wed Jan 27 19:19:32 UTC 2016 - mvyskocil@opensuse.org
- Initial openSUSE packaging

69
python-pytoml.spec Normal file
View File

@@ -0,0 +1,69 @@
#
# spec file for package python-pytoml
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytoml
Version: 0.1.14
Release: 0
Summary: TOML-0.4.0 parser/writer for Python
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/avakar/pytoml
Source0: https://files.pythonhosted.org/packages/source/p/pytoml/pytoml-%{version}.tar.gz
# toml-test for tests from author's fork with specific commit
Source1: https://github.com/avakar/toml-test/archive/fa9501a1.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: fdupes
BuildRequires: python-rpm-macros
Requires: python
BuildArch: noarch
%python_subpackages
%description
A specs-conforming and strict parser and writer for TOML files.
The library currently supports version 0.4.0 of the specs and
runs with Python 2.6+ and 3.3+.
%prep
%setup -q -n pytoml-%{version}
cp -a %{SOURCE2} LICENSE
tar -C test -xzf%{SOURCE1}
cd test
mv toml-test-fa9501a192b7c46b82059caddaef978e3de883dc toml-test
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%check
%python_expand export PYTHONPATH=%{buildroot}%{python_sitelib}; python test/test.py
%files %{python_files}
%defattr(-,root,root)
%license LICENSE
%{python_sitelib}/pytoml/
%{python_sitelib}/pytoml-%{version}-py%{py_ver}.egg-info/
%changelog

3
pytoml-0.1.14.tar.gz Normal file
View File

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