commit 02a6762df9acbdf17d1171409e62112328ba8f2848e989996c7f3a8eea7f113e Author: Matej Cepl Date: Sat Jan 23 22:28:10 2021 +0000 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 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/cp1252.json b/cp1252.json new file mode 100644 index 0000000..ce3afeb --- /dev/null +++ b/cp1252.json @@ -0,0 +1 @@ +"€…™" \ No newline at end of file diff --git a/genson-1.2.2.tar.gz b/genson-1.2.2.tar.gz new file mode 100644 index 0000000..096e58e --- /dev/null +++ b/genson-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8caf69aa10af7aee0e1a1351d1d06801f4696e005f06cedef438635384346a16 +size 34387 diff --git a/python-genson.changes b/python-genson.changes new file mode 100644 index 0000000..1e2e6d9 --- /dev/null +++ b/python-genson.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 23 11:28:59 UTC 2021 - John Vandenberg + +- Update to v1.2.2 +- Activate test suite + +------------------------------------------------------------------- +Sat May 23 07:57:22 PM UTC 2020 - John Vandenberg + +- Initial spec for v1.2.1 diff --git a/python-genson.spec b/python-genson.spec new file mode 100644 index 0000000..c5af4f9 --- /dev/null +++ b/python-genson.spec @@ -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 diff --git a/utf-8.json b/utf-8.json new file mode 100644 index 0000000..738849b --- /dev/null +++ b/utf-8.json @@ -0,0 +1 @@ +"€…™" \ No newline at end of file