14
0

- Fetch stuff from pypi

- Run tests
- Fix packagename

- update to version 1.1.6
- fix versioning of python module

- initial package of version 1.0.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wakeonlan?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2019-03-21 11:24:21 +00:00
committed by Git OBS Bridge
parent 6751c4d990
commit 2393874604
7 changed files with 31 additions and 57 deletions

View File

@@ -1,13 +0,0 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/remcohaszing/pywakeonlan.git</param>
<param name="scm">git</param>
<param name="version">1.1.6</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version" />
</services>

View File

@@ -1,21 +0,0 @@
diff --git a/setup.py b/setup.py
index c880176..0682e72 100755
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@ with open('README.rst') as f:
setup(
name='wakeonlan',
+ version='1.1.6',
description='A small python module for wake on lan.',
project_urls={
'Documentation': 'http://pywakeonlan.readthedocs.io',
@@ -22,8 +23,6 @@ setup(
py_modules=['wakeonlan'],
license='MIT',
long_description=readme,
- use_scm_version=True,
- setup_requires=['setuptools-scm ~= 1.15.7'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 21 11:20:55 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fetch stuff from pypi
- Run tests
- Fix packagename
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 12 09:44:17 UTC 2019 - Adrian Schröter <adrian@suse.de> Tue Mar 12 09:44:17 UTC 2019 - Adrian Schröter <adrian@suse.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-wakeonlan # spec file for package python-wakeonlan
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-wakeonlan Name: python-wakeonlan
Version: 1.1.6 Version: 1.1.6
Release: 0 Release: 0
Summary: A small python module for wake on lan
License: WTFPL License: WTFPL
Summary: A small python module for wake on lan.
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/remcohaszing/pywakeonlan URL: https://github.com/remcohaszing/pywakeonlan
Source: pywakeonlan-%{version}.tar.xz Source: https://files.pythonhosted.org/packages/source/w/wakeonlan/wakeonlan-%{version}.tar.gz
Patch1: fix-build.patch BuildRequires: %{python_module mock}
BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm >= 1.15.7}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -37,21 +38,26 @@ BuildArch: noarch
A small python module for wake on lan. A small python module for wake on lan.
%prep %prep
%setup -q -n pywakeonlan-%{version} %setup -q -n wakeonlan-%{version}
%patch1 -p1 sed -i -e 's:~=:>=:g' setup.py
%build %build
export LANG=C.utf8 export LANG=en_US.UTF8
%python_build %python_build
%install %install
export LANG=C.utf8 export LANG=en_US.UTF8
%python_install %python_install
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib} %python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
export LANG=en_US.UTF8
%pytest
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %doc README.rst
/usr/bin/wakeonlan %license LICENSE
%python3_only %{_bindir}/wakeonlan
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog

View File

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

View File

@@ -1,5 +0,0 @@
name: pywakeonlan
version: 1.1.6
mtime: 1521988667
commit: d30b66172c483c4baadb426f493c3de30fecc19b

3
wakeonlan-1.1.6.tar.gz Normal file
View File

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