diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6dd19224d7e0686520c23d057e1d913af2b978cd --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019-2021 Fabian Affolter + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-webthing-ws.spec b/python-webthing-ws.spec new file mode 100644 index 0000000000000000000000000000000000000000..7dd2803f77334d5795ab83a7388d7e5c8857f7b4 --- /dev/null +++ b/python-webthing-ws.spec @@ -0,0 +1,44 @@ +%global pypi_name webthing-ws +Name: python-%{pypi_name} +Version: 0.1.1 +Release: 1 +Summary: WebThing WebSocket consumer and API client + +License: MIT +URL: https://github.com/fabaff/webthing-ws +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +A WebThing WebSocket consumer and API client. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +A WebThing WebSocket consumer and API client. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.rst example.py +%license LICENSE +%{python3_sitelib}/webthing_ws/ +%{python3_sitelib}/webthing_ws*.egg-info + +%changelog +* Mon Jun 28 2021 anyunhao - 0.1.1-1 +- package init + + diff --git a/webthing-ws-0.1.1.tar.gz b/webthing-ws-0.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7bec0b083ec222f8b74eb544fea9db85a7da00d0 Binary files /dev/null and b/webthing-ws-0.1.1.tar.gz differ