forked from pool/python-genson
Accepting request 866235 from home:jayvdb:py-submit
no 1050 on https://hugovk.github.io/top-pypi-packages/ dep of Tableau Python server OBS-URL: https://build.opensuse.org/request/show/866235 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-genson?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
1
cp1252.json
Normal file
1
cp1252.json
Normal file
@@ -0,0 +1 @@
|
||||
"<22><><EFBFBD>"
|
||||
3
genson-1.2.2.tar.gz
Normal file
3
genson-1.2.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8caf69aa10af7aee0e1a1351d1d06801f4696e005f06cedef438635384346a16
|
||||
size 34387
|
||||
10
python-genson.changes
Normal file
10
python-genson.changes
Normal file
@@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 23 11:28:59 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to v1.2.2
|
||||
- Activate test suite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 23 07:57:22 PM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v1.2.1
|
||||
80
python-genson.spec
Normal file
80
python-genson.spec
Normal file
@@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file for package python-genson
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# 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-%{**}}
|
||||
Name: python-genson
|
||||
Version: 1.2.2
|
||||
Release: 0
|
||||
Summary: Python JSON Schema generator
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/wolverdude/genson/
|
||||
Source: https://files.pythonhosted.org/packages/source/g/genson/genson-%{version}.tar.gz
|
||||
# https://github.com/wolverdude/GenSON/pull/53
|
||||
Source1: https://raw.githubusercontent.com/wolverdude/GenSON/master/test/fixtures/cp1252.json
|
||||
Source2: https://raw.githubusercontent.com/wolverdude/GenSON/master/test/fixtures/utf-8.json
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
GenSON is a powerful, user-friendly JSON Schema generator.
|
||||
|
||||
%prep
|
||||
%setup -q -n genson-%{version}
|
||||
mkdir test/fixtures
|
||||
cp %{SOURCE1} %{SOURCE2} test/fixtures/
|
||||
touch test/__init__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/genson
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
mkdir ~/bin
|
||||
export PATH=~/bin:$PATH
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
cp %{buildroot}/%{_bindir}/genson-%{$python_bin_suffix} ~/bin/genson
|
||||
rm -f ~/bin/python
|
||||
ln -s $(which $python) ~/bin/python
|
||||
$python -m unittest -v
|
||||
}
|
||||
|
||||
%post
|
||||
%python_install_alternative genson
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative genson
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.rst HISTORY.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/genson
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
1
utf-8.json
Normal file
1
utf-8.json
Normal file
@@ -0,0 +1 @@
|
||||
"€…™"
|
||||
Reference in New Issue
Block a user