summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 05:55:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 05:55:43 +0000
commit80afab8aba8aa3de978942858d8bf377d1e6ed5b (patch)
tree51ddf7d15d1211ade761e0b0f34ac04a4b686c83
parent1786a533bf253a371bce3b3bbac846f2b3237e2b (diff)
automatic import of python-pyipma
-rw-r--r--.gitignore1
-rw-r--r--python-pyipma.spec285
-rw-r--r--sources1
3 files changed, 287 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f8ce344 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyipma-3.0.6.tar.gz
diff --git a/python-pyipma.spec b/python-pyipma.spec
new file mode 100644
index 0000000..34d40c8
--- /dev/null
+++ b/python-pyipma.spec
@@ -0,0 +1,285 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyipma
+Version: 3.0.6
+Release: 1
+Summary: Python library to retrieve information from Instituto Português do Mar e Atmosfera.
+License: MIT License
+URL: https://github.com/dgomes/pyipma
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/db/a3/7baa7f0301751b574fb251407c54581fc41c206fc5521bb2ed367b5934b7/pyipma-3.0.6.tar.gz
+BuildArch: noarch
+
+
+%description
+[![PyPI version](https://badge.fury.io/py/pyipma.svg)](https://badge.fury.io/py/pyipma)
+
+# pyipma
+Python library to retrieve information from [Instituto Português do Mar e Atmosfera](http://www.ipma.pt)
+
+## Requirements
+- aiohttp
+- geopy
+
+## Example
+
+```python
+import asyncio
+import aiohttp
+
+from pyipma.api import IPMA_API
+from pyipma.location import Location
+
+async def main():
+ async with aiohttp.ClientSession() as session:
+ api = IPMA_API(session)
+
+ location = await Location.get(api, 40.6517, -8.6573, sea_stations=True)
+ print("Forecast for {}".format(location.name))
+ print("Nearest station is {}".format(location.station))
+ print("Nearest sea station is {}".format(location.sea_station_name))
+
+ obs = await location.observation(api)
+ print("Current weather is {}".format(obs))
+
+ forecasts = await location.forecast(api)
+ print("Forecast for tomorrow {}".format(forecasts[0]))
+
+ sea_forecast = await location.sea_forecast(api)
+ print("Sea forecast for today {}".format(sea_forecast))
+
+asyncio.get_event_loop().run_until_complete(main())
+```
+
+## Changelog
+
+* 3.0.6 - Bug Fixes
+* 3.0.3 - Adds RCM (Fire Risk)
+* 3.0.2 - Changes to fully support Home Assistant integration
+* 3.0.0 - Backend fully rewritten, but keeping backward compatibility at interface level
+* 2.1.5 - Better logging and code formated with black
+* 2.1.0 - Sea Forecast
+* 2.0.5 - Look for previous observations when no temperature/humidity available
+* 2.0.4 - Ignore Observation stations with temperature/humidity -99
+* 2.0.3 - Searches next closest station when offline
+* 2.0.2 - Adds Station Lat/Lon
+* 2.0.1 - fixes
+* 2.0.0 - Major refactor
+* 1.2.1 - Fix pip
+* 1.2.0 - Wind direction corrected
+* 1.1.6 - Interpret -99 and unavailable
+* 1.1.5 - Cache values
+* 1.1.4 - New API
+* ...
+
+## Credits
+Values are obtained from [IPMA](http://api.ipma.pt)
+
+
+## Contributors
+@abmantis
+@joaocps
+
+## Copyright
+
+(C) 2018,2019,2020 Diogo Gomes <diogogomes@gmail.com>
+
+
+%package -n python3-pyipma
+Summary: Python library to retrieve information from Instituto Português do Mar e Atmosfera.
+Provides: python-pyipma
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyipma
+[![PyPI version](https://badge.fury.io/py/pyipma.svg)](https://badge.fury.io/py/pyipma)
+
+# pyipma
+Python library to retrieve information from [Instituto Português do Mar e Atmosfera](http://www.ipma.pt)
+
+## Requirements
+- aiohttp
+- geopy
+
+## Example
+
+```python
+import asyncio
+import aiohttp
+
+from pyipma.api import IPMA_API
+from pyipma.location import Location
+
+async def main():
+ async with aiohttp.ClientSession() as session:
+ api = IPMA_API(session)
+
+ location = await Location.get(api, 40.6517, -8.6573, sea_stations=True)
+ print("Forecast for {}".format(location.name))
+ print("Nearest station is {}".format(location.station))
+ print("Nearest sea station is {}".format(location.sea_station_name))
+
+ obs = await location.observation(api)
+ print("Current weather is {}".format(obs))
+
+ forecasts = await location.forecast(api)
+ print("Forecast for tomorrow {}".format(forecasts[0]))
+
+ sea_forecast = await location.sea_forecast(api)
+ print("Sea forecast for today {}".format(sea_forecast))
+
+asyncio.get_event_loop().run_until_complete(main())
+```
+
+## Changelog
+
+* 3.0.6 - Bug Fixes
+* 3.0.3 - Adds RCM (Fire Risk)
+* 3.0.2 - Changes to fully support Home Assistant integration
+* 3.0.0 - Backend fully rewritten, but keeping backward compatibility at interface level
+* 2.1.5 - Better logging and code formated with black
+* 2.1.0 - Sea Forecast
+* 2.0.5 - Look for previous observations when no temperature/humidity available
+* 2.0.4 - Ignore Observation stations with temperature/humidity -99
+* 2.0.3 - Searches next closest station when offline
+* 2.0.2 - Adds Station Lat/Lon
+* 2.0.1 - fixes
+* 2.0.0 - Major refactor
+* 1.2.1 - Fix pip
+* 1.2.0 - Wind direction corrected
+* 1.1.6 - Interpret -99 and unavailable
+* 1.1.5 - Cache values
+* 1.1.4 - New API
+* ...
+
+## Credits
+Values are obtained from [IPMA](http://api.ipma.pt)
+
+
+## Contributors
+@abmantis
+@joaocps
+
+## Copyright
+
+(C) 2018,2019,2020 Diogo Gomes <diogogomes@gmail.com>
+
+
+%package help
+Summary: Development documents and examples for pyipma
+Provides: python3-pyipma-doc
+%description help
+[![PyPI version](https://badge.fury.io/py/pyipma.svg)](https://badge.fury.io/py/pyipma)
+
+# pyipma
+Python library to retrieve information from [Instituto Português do Mar e Atmosfera](http://www.ipma.pt)
+
+## Requirements
+- aiohttp
+- geopy
+
+## Example
+
+```python
+import asyncio
+import aiohttp
+
+from pyipma.api import IPMA_API
+from pyipma.location import Location
+
+async def main():
+ async with aiohttp.ClientSession() as session:
+ api = IPMA_API(session)
+
+ location = await Location.get(api, 40.6517, -8.6573, sea_stations=True)
+ print("Forecast for {}".format(location.name))
+ print("Nearest station is {}".format(location.station))
+ print("Nearest sea station is {}".format(location.sea_station_name))
+
+ obs = await location.observation(api)
+ print("Current weather is {}".format(obs))
+
+ forecasts = await location.forecast(api)
+ print("Forecast for tomorrow {}".format(forecasts[0]))
+
+ sea_forecast = await location.sea_forecast(api)
+ print("Sea forecast for today {}".format(sea_forecast))
+
+asyncio.get_event_loop().run_until_complete(main())
+```
+
+## Changelog
+
+* 3.0.6 - Bug Fixes
+* 3.0.3 - Adds RCM (Fire Risk)
+* 3.0.2 - Changes to fully support Home Assistant integration
+* 3.0.0 - Backend fully rewritten, but keeping backward compatibility at interface level
+* 2.1.5 - Better logging and code formated with black
+* 2.1.0 - Sea Forecast
+* 2.0.5 - Look for previous observations when no temperature/humidity available
+* 2.0.4 - Ignore Observation stations with temperature/humidity -99
+* 2.0.3 - Searches next closest station when offline
+* 2.0.2 - Adds Station Lat/Lon
+* 2.0.1 - fixes
+* 2.0.0 - Major refactor
+* 1.2.1 - Fix pip
+* 1.2.0 - Wind direction corrected
+* 1.1.6 - Interpret -99 and unavailable
+* 1.1.5 - Cache values
+* 1.1.4 - New API
+* ...
+
+## Credits
+Values are obtained from [IPMA](http://api.ipma.pt)
+
+
+## Contributors
+@abmantis
+@joaocps
+
+## Copyright
+
+(C) 2018,2019,2020 Diogo Gomes <diogogomes@gmail.com>
+
+
+%prep
+%autosetup -n pyipma-3.0.6
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pyipma -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef77344
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5b311bae8769bb00f4e9d3222da047cd pyipma-3.0.6.tar.gz