From 0a5497c94a856ccab082b51f0e91b71bf835aabf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 19:38:52 +0000 Subject: automatic import of python-ladybug-core --- .gitignore | 1 + python-ladybug-core.spec | 239 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 241 insertions(+) create mode 100644 python-ladybug-core.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..de2fa45 100644 --- a/.gitignore +++ b/.gitignore @@ -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 + +![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png) + +[![Build Status](https://github.com/ladybug-tools/ladybug/workflows/CI/badge.svg)](https://github.com/ladybug-tools/ladybug/actions) +[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug/badge.svg?branch=master)](https://coveralls.io/github/ladybug-tools/ladybug) + +[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/) [![Python 2.7](https://img.shields.io/badge/python-2.7-green.svg)](https://www.python.org/downloads/release/python-270/) [![IronPython](https://img.shields.io/badge/ironpython-2.7-red.svg)](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 + +![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png) + +[![Build Status](https://github.com/ladybug-tools/ladybug/workflows/CI/badge.svg)](https://github.com/ladybug-tools/ladybug/actions) +[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug/badge.svg?branch=master)](https://coveralls.io/github/ladybug-tools/ladybug) + +[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/) [![Python 2.7](https://img.shields.io/badge/python-2.7-green.svg)](https://www.python.org/downloads/release/python-270/) [![IronPython](https://img.shields.io/badge/ironpython-2.7-red.svg)](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 + +![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png) + +[![Build Status](https://github.com/ladybug-tools/ladybug/workflows/CI/badge.svg)](https://github.com/ladybug-tools/ladybug/actions) +[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug/badge.svg?branch=master)](https://coveralls.io/github/ladybug-tools/ladybug) + +[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/) [![Python 2.7](https://img.shields.io/badge/python-2.7-green.svg)](https://www.python.org/downloads/release/python-270/) [![IronPython](https://img.shields.io/badge/ironpython-2.7-red.svg)](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 - 0.41.19-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..b9109fb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +f0008143857628f8532cb9454adc27cb ladybug-core-0.41.19.tar.gz -- cgit v1.2.3