Accepting request 607659 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.

With fixed spurious %fdupes line

OBS-URL: https://build.opensuse.org/request/show/607659
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-toml?expand=0&rev=1
This commit is contained in:
Dirk Mueller 2018-05-16 06:51:39 +00:00 committed by Git OBS Bridge
commit d29ca5f275
5 changed files with 184 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

85
python-toml.changes Normal file
View File

@ -0,0 +1,85 @@
-------------------------------------------------------------------
Tue May 15 16:56:14 UTC 2018 - bruno@ioda-net.ch
- Update to version 0.9.4
+ Changes see https://github.com/uiri/toml/compare/0.9.3...0.9.x
+ Contain again test which are run
- Packaging
+ spec-cleaner minimal (date, license)
+ Resurection to be included in d:l:p and Factory to be used
by Cloud people and others
-------------------------------------------------------------------
Thu Dec 14 08:36:36 UTC 2017 - bruno@ioda-net.ch
- Update to version 0.9.3.1 (no real changelog)
Changes see https://github.com/uiri/toml/compare/0.9.2...0.9.3
- Packaging hardcode version in setup (tarball has only 0.9.3)
+ Add comment about test. None are executed, upstream has removed
them from tarball (Work in progress)
-------------------------------------------------------------------
Thu Oct 26 10:15:18 UTC 2017 - dmueller@suse.com
- remove python-coverage runtime requires
-------------------------------------------------------------------
Fri Jul 28 14:13:34 UTC 2017 - bruno@ioda-net.ch
- Fix define line for build on Leap
-------------------------------------------------------------------
Wed Jun 7 13:13:50 UTC 2017 - bruno@ioda-net.ch
- Move to singlespec packaging
- Update copyright year
- Add fdupes
-------------------------------------------------------------------
Tue Sep 20 06:02:55 UTC 2016 - arun@gmx.de
- specfile:
* update copyright year
- update to version 0.9.2:
* Use xrange (_range) in Python 2.
* Prefix internal object/function names with an underscore.
* Fix candidate groups handling.
* Fix digit matching.
* Fix usage of isdigit.
* Optimize use of regexps (precompile, single-regexp substitution)
* Fix code style.
* Peephole optimizations.
* Merge #51: Do not raise base Exception.
* Remove dead code.
* Fix inadvertently broken long integer test
* s.decode should assign its result to s.
* Remove unnecessary indent level/else branches
* Fix #43 by adding Z timezone. tzinfos don't do DST
* Fix UTC offsets specified as hours and minutes
* update test command
* add travis testing
* Update copyright notice. Update toml-test repo in README
* Close #42 and simplify. Manual testing shows this works.
* Support } whithin string in inline objects within arrays
* Remove test toml files
* Clean load_inline_objects
* fix for array in inlinetable
* Handle commas inside strings within inline objects
* Fix multiline-string and raw-multiline-string tests
* Fix key-equals-nospace test
* Add support for inline objects inside arrays
* Add support for inline objects
-------------------------------------------------------------------
Sun May 8 07:13:17 UTC 2016 - arun@gmx.de
- specfile:
* changed to https for source url
* updated source url to files.pythonhosted.org
-------------------------------------------------------------------
Wed Aug 19 19:55:19 UTC 2015 - bruno@ioda-net.ch
- Initial packaging on obs for python3
changes are stored in README.rst

72
python-toml.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package python-toml
#
# 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-toml
Version: 0.9.4
Release: 0
Summary: Python module which parses and emits TOML
License: MIT
Group: Development/Languages/Python
URL: https://github.com/uiri/toml
Source: https://files.pythonhosted.org/packages/source/t/toml/toml-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: coreutils
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Python toml allows to parse and create toml configuration files.
See below the toml specification link.
Usage
toml.loads --- takes a string to be parsed as toml and returns
the corresponding dictionary
toml.dumps --- takes a dictionary and returns a string which
is the contents of the corresponding toml file.
There are other functions which can be used to dump and load various
fragments of toml but dumps and loads will cover most usage.
Current Version of TOML Specification
https://github.com/mojombo/toml/blob/v0.4.0/README.md
%prep
%setup -q -n toml-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root)
%license LICENSE
%doc README.rst
%{python_sitelib}
%changelog

3
toml-0.9.4.tar.gz Normal file
View File

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