From 7f44ef1b27bff8544af0f3ff1941921af5304469c4cf401e18cf4a9b9c3f1696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 29 May 2020 08:05:28 +0000 Subject: [PATCH] Accepting request 810135 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/810135 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PubChemPy?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + PubChemPy-1.0.4.tar.gz | 3 ++ python-PubChemPy.changes | 21 ++++++++++++++ python-PubChemPy.spec | 60 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PubChemPy-1.0.4.tar.gz create mode 100644 python-PubChemPy.changes create mode 100644 python-PubChemPy.spec 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/PubChemPy-1.0.4.tar.gz b/PubChemPy-1.0.4.tar.gz new file mode 100644 index 0000000..5b1b87d --- /dev/null +++ b/PubChemPy-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ccbf77fe5f3b9cbdde546403200cf1e983803eceba117ab89db68c836bbab5a +size 39293 diff --git a/python-PubChemPy.changes b/python-PubChemPy.changes new file mode 100644 index 0000000..e60c80a --- /dev/null +++ b/python-PubChemPy.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Fri May 29 07:18:33 UTC 2020 - Tomáš Chvátal + +- Refetch the tarball to match the url +- Add tests (disabled) as they are all online ones +- Install license and docs + +------------------------------------------------------------------- +Thu May 28 15:34:38 UTC 2020 - andy great + +- Remove python-devel dependency, exclude pycache files. + +------------------------------------------------------------------- +Thu May 28 12:16:36 UTC 2020 - andy great + +- Cleanup spec file + +------------------------------------------------------------------- +Wed Apr 22 02:30:51 UTC 2020 - andy great + +- Initial package release. diff --git a/python-PubChemPy.spec b/python-PubChemPy.spec new file mode 100644 index 0000000..e1ba9ae --- /dev/null +++ b/python-PubChemPy.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-PubChemPy +# +# Copyright (c) 2020 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/ +# + + +%define packagename PubChemPy +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-PubChemPy +Version: 1.0.4 +Release: 0 +Summary: A simple Python wrapper around the PubChem PUG REST API +License: MIT +URL: https://github.com/mcs07/PubChemPy +Source: https://github.com/mcs07/PubChemPy/archive/v%{version}.tar.gz#/PubChemPy-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +PubChemPy provides a way to interact with PubChem in Python. It allows chemical +searches by name, substructure and similarity, chemical standardization, +conversion between chemical file formats, depiction and retrieval of chemical +properties. + +%prep +%setup -q -n %{packagename}-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# All the tests connct to the webserver +#%%pytest + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.rst +%{python_sitelib}/* + +%changelog