diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:38:52 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:38:52 +0000 |
| commit | 0a5497c94a856ccab082b51f0e91b71bf835aabf (patch) | |
| tree | 2a2d7221b51d15ac93e346aa5f897d4f95a7dd76 | |
| parent | 0b807839b2ba66ee0d8168c3bf876a2ceeb92050 (diff) | |
automatic import of python-ladybug-core
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-ladybug-core.spec | 239 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 241 insertions, 0 deletions
@@ -0,0 +1 @@ +/ladybug-core-0.41.19.tar.gz diff --git a/python-ladybug-core.spec b/python-ladybug-core.spec new file mode 100644 index 0000000..588307f --- /dev/null +++ b/python-ladybug-core.spec @@ -0,0 +1,239 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ladybug-core +Version: 0.41.19 +Release: 1 +Summary: Python library to load, analyze and modify EnergyPlus Weather files (epw). +License: AGPL-3.0 +URL: https://github.com/ladybug-tools/ladybug +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/63/22/8709ae776358136150b3ead10af09c1c9357c312192bcfc8bf88020fbd37/ladybug-core-0.41.19.tar.gz +BuildArch: noarch + +Requires: python3-ladybug-geometry +Requires: python3-click + +%description + + + +[](https://github.com/ladybug-tools/ladybug/actions) +[](https://coveralls.io/github/ladybug-tools/ladybug) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# ladybug + +Ladybug is a Python library to analyze, modify, and visualize EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/). + +This repository is the core library that is the base for the Ladybug Grasshopper Plugin. For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper). + +## Note + +For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.com/ladybug-tools/ladybug-legacy). + +## [API Documentation](https://www.ladybug.tools/ladybug/docs/) + +## Installation + +`pip install ladybug-core` + +## Usage + +```python +# load epw weather data +from ladybug.epw import EPW +epw_data = EPW('path_to_epw_file') +dry_bulb_temp = epw_data.dry_bulb_temperature + +# Get altitude and longitude +from ladybug.location import Location +from ladybug.sunpath import Sunpath + +# Create location. You can also extract location data from an epw file. +sydney = Location('Sydney', 'AUS', latitude=-33.87, longitude=151.22, time_zone=10) + +# Initiate sunpath +sp = Sunpath.from_location(sydney) +sun = sp.calculate_sun(month=11, day=15, hour=11.0) + +print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth)) +>>> altitude: 72.26, azimuth: 32.37 +``` + +### Derivative Work + +Ladybug is a derivative work of the following software projects: + +* [PVLib-python](https://github.com/pvlib/pvlib-python) for solar irradiance calculations. Available under BSD 3-clause. +* [PsychroLib](https://github.com/psychrometrics/psychrolib) for psychrometric calculations. Available under MIT License. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%package -n python3-ladybug-core +Summary: Python library to load, analyze and modify EnergyPlus Weather files (epw). +Provides: python-ladybug-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ladybug-core + + + +[](https://github.com/ladybug-tools/ladybug/actions) +[](https://coveralls.io/github/ladybug-tools/ladybug) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# ladybug + +Ladybug is a Python library to analyze, modify, and visualize EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/). + +This repository is the core library that is the base for the Ladybug Grasshopper Plugin. For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper). + +## Note + +For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.com/ladybug-tools/ladybug-legacy). + +## [API Documentation](https://www.ladybug.tools/ladybug/docs/) + +## Installation + +`pip install ladybug-core` + +## Usage + +```python +# load epw weather data +from ladybug.epw import EPW +epw_data = EPW('path_to_epw_file') +dry_bulb_temp = epw_data.dry_bulb_temperature + +# Get altitude and longitude +from ladybug.location import Location +from ladybug.sunpath import Sunpath + +# Create location. You can also extract location data from an epw file. +sydney = Location('Sydney', 'AUS', latitude=-33.87, longitude=151.22, time_zone=10) + +# Initiate sunpath +sp = Sunpath.from_location(sydney) +sun = sp.calculate_sun(month=11, day=15, hour=11.0) + +print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth)) +>>> altitude: 72.26, azimuth: 32.37 +``` + +### Derivative Work + +Ladybug is a derivative work of the following software projects: + +* [PVLib-python](https://github.com/pvlib/pvlib-python) for solar irradiance calculations. Available under BSD 3-clause. +* [PsychroLib](https://github.com/psychrometrics/psychrolib) for psychrometric calculations. Available under MIT License. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%package help +Summary: Development documents and examples for ladybug-core +Provides: python3-ladybug-core-doc +%description help + + + +[](https://github.com/ladybug-tools/ladybug/actions) +[](https://coveralls.io/github/ladybug-tools/ladybug) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# ladybug + +Ladybug is a Python library to analyze, modify, and visualize EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/). + +This repository is the core library that is the base for the Ladybug Grasshopper Plugin. For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper). + +## Note + +For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.com/ladybug-tools/ladybug-legacy). + +## [API Documentation](https://www.ladybug.tools/ladybug/docs/) + +## Installation + +`pip install ladybug-core` + +## Usage + +```python +# load epw weather data +from ladybug.epw import EPW +epw_data = EPW('path_to_epw_file') +dry_bulb_temp = epw_data.dry_bulb_temperature + +# Get altitude and longitude +from ladybug.location import Location +from ladybug.sunpath import Sunpath + +# Create location. You can also extract location data from an epw file. +sydney = Location('Sydney', 'AUS', latitude=-33.87, longitude=151.22, time_zone=10) + +# Initiate sunpath +sp = Sunpath.from_location(sydney) +sun = sp.calculate_sun(month=11, day=15, hour=11.0) + +print('altitude: {}, azimuth: {}'.format(sun.altitude, sun.azimuth)) +>>> altitude: 72.26, azimuth: 32.37 +``` + +### Derivative Work + +Ladybug is a derivative work of the following software projects: + +* [PVLib-python](https://github.com/pvlib/pvlib-python) for solar irradiance calculations. Available under BSD 3-clause. +* [PsychroLib](https://github.com/psychrometrics/psychrolib) for psychrometric calculations. Available under MIT License. + +Applicable copyright notices for these works can be found within the relevant .py files. + + +%prep +%autosetup -n ladybug-core-0.41.19 + +%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-ladybug-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.41.19-1 +- Package Spec generated @@ -0,0 +1 @@ +f0008143857628f8532cb9454adc27cb ladybug-core-0.41.19.tar.gz |
