15
0

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
This commit is contained in:
Tomáš Chvátal
2020-05-29 08:05:28 +00:00
committed by Git OBS Bridge
commit 7f44ef1b27
5 changed files with 108 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

3
PubChemPy-1.0.4.tar.gz Normal file
View File

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

21
python-PubChemPy.changes Normal file
View File

@@ -0,0 +1,21 @@
-------------------------------------------------------------------
Fri May 29 07:18:33 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <andythe_great@pm.me>
- Remove python-devel dependency, exclude pycache files.
-------------------------------------------------------------------
Thu May 28 12:16:36 UTC 2020 - andy great <andythe_great@pm.me>
- Cleanup spec file
-------------------------------------------------------------------
Wed Apr 22 02:30:51 UTC 2020 - andy great <andythe_great@pm.me>
- Initial package release.

60
python-PubChemPy.spec Normal file
View File

@@ -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