Skip to content

Commit

Permalink
Merge pull request #29 from arbulu89/feature/version-0.2.0
Browse files Browse the repository at this point in the history
Upgrade package version to 0.2.0
  • Loading branch information
arbulu89 authored Jun 4, 2019
2 parents e6e7d4b + e98b5c4 commit 2692dc1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 48 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md

This file was deleted.

5 changes: 5 additions & 0 deletions python-shaptools.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 4 07:23:40 UTC 2019 - Xabier Arbulu Insausti <xarbulu@suse.com>

- Create package version 0.2.0 with the latest changes

-------------------------------------------------------------------
Wed May 29 12:26:08 UTC 2019 - Ayoub Belarbi (abelarbi@suse.com)

Expand Down
64 changes: 19 additions & 45 deletions python-shaptools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,70 +14,44 @@

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-shaptools
Version: 0.1.0
Version: 0.2.0
Release: 0
License: Apache-2.0
Summary: Python tools to interact with SAP HANA utilities
Url: https://github.com/SUSE/shaptools
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/SUSE/shaptools
Source: shaptools-%{version}.tar.gz
BuildRequires: python-devel python3-devel
BuildRequires: python-setuptools python3-setuptools
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages

%description
API to expose SAP HANA functionalities

%package -n python2-shaptools
Summary: Python tools to interact with SAP HANA utilities (python2)
%{?python_provide:%python_provide python2-shaptools}

%description -n python2-shaptools
API to expose SAP HANA functionalities (python2)

%package -n python3-shaptools
Summary: Python tools to interact with SAP HANA utilities (python3)
%{?python_provide:%python_provide python3-shaptools}

%description -n python3-shaptools
API to expose SAP HANA functionalities (python3)

%prep
%setup -q -n shaptools-%{version}

%build
python2 setup.py build --build-lib=py2/build/lib
python3 setup.py build --build-lib=py3/build/lib
%python_build

%install
mv py2/build .
python2 setup.py install -O1 --skip-build --force --root %{buildroot} --prefix=%{_prefix}
%fdupes %{buildroot}%python_sitelib
rm -rf build
mv py3/build .
python3 setup.py install -O1 --skip-build --force --root %{buildroot} --prefix=%{_prefix}
%fdupes %{buildroot}%python3_sitelib
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# do not install tests
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests

%files -n python2-shaptools
%doc CHANGELOG.md README.md
# %license macro is not available on older releases
%if 0%{?sle_version} <= 120300
%doc LICENSE
%else
%license LICENSE
%endif
%{python_sitelib}/*
%check
%pytest tests

%files -n python3-shaptools
%doc CHANGELOG.md README.md
# %license macro is not available on older releases
%if 0%{?sle_version} <= 120300
%doc LICENSE
%else
%files %{python_files}
%doc README.md
%license LICENSE
%endif
%{python3_sitelib}/*
%{python_sitelib}/*

%changelog
2 changes: 1 addition & 1 deletion shaptools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:since: 2018-11-15
"""

__version__ = "0.1.0"
__version__ = "0.2.0"

0 comments on commit 2692dc1

Please sign in to comment.