summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 22:06:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 22:06:05 +0000
commitef84dcc3538ccb9c726dfe5b3f22301cab83cc1d (patch)
tree5d3acc26a65ba0bacb43e35f9b750a14f8656cec
parent30d15201ca52f7222d5307c2aabe0364e0d454df (diff)
automatic import of python-ladybug-comfort
-rw-r--r--.gitignore1
-rw-r--r--python-ladybug-comfort.spec202
-rw-r--r--sources1
3 files changed, 204 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2fd50ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ladybug-comfort-0.16.29.tar.gz
diff --git a/python-ladybug-comfort.spec b/python-ladybug-comfort.spec
new file mode 100644
index 0000000..3dba2db
--- /dev/null
+++ b/python-ladybug-comfort.spec
@@ -0,0 +1,202 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ladybug-comfort
+Version: 0.16.29
+Release: 1
+Summary: Ladybug comfort is a Python library that adds thermal comfort functionalities to Ladybug.
+License: AGPL-3.0
+URL: https://github.com/ladybug-tools/ladybug-comfort
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a4/3c/85e1dff3b126b1be14013f041ac5fa2f6535972556411ec34bc664490221/ladybug-comfort-0.16.29.tar.gz
+BuildArch: noarch
+
+Requires: python3-ladybug-core
+
+%description
+
+![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png)
+
+[![Build Status](https://travis-ci.com/ladybug-tools/ladybug.svg?branch=master)](https://travis-ci.com/ladybug-tools/ladybug-comfort)
+[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug-comfort/badge.svg)](https://coveralls.io/github/ladybug-tools/ladybug-comfort)
+
+[![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-comfort
+
+Ladybug-comfort is a Python library that adds thermal comfort functionalities to
+[ladybug-core](https://github.com/ladybug-tools/ladybug/).
+
+## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/)
+
+## Installation
+
+`pip install ladybug-comfort`
+
+## Usage
+
+```python
+"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind"""
+from ladybug.epw import EPW
+from ladybug_comfort.collection.utci import UTCI
+
+epw_file_path = './tests/epw/chicago.epw'
+epw = EPW(epw_file_path)
+utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True)
+utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False)
+
+print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind
+print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind
+```
+
+### derivative work
+
+Ladybug-comfort is a derivative work of the following software projects:
+
+* [CBE Comfort Tool](https://github.com/CenterForTheBuiltEnvironment/comfort_tool) for indoor thermal comfort calculations. Available under GPL.
+* [UTCI Fortran Code](http://www.utci.org/utci_doku.php) for outdoor thermal comfort calculations. Available under MIT.
+
+Applicable copyright notices for these works can be found within the relevant .py files.
+
+
+%package -n python3-ladybug-comfort
+Summary: Ladybug comfort is a Python library that adds thermal comfort functionalities to Ladybug.
+Provides: python-ladybug-comfort
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ladybug-comfort
+
+![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png)
+
+[![Build Status](https://travis-ci.com/ladybug-tools/ladybug.svg?branch=master)](https://travis-ci.com/ladybug-tools/ladybug-comfort)
+[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug-comfort/badge.svg)](https://coveralls.io/github/ladybug-tools/ladybug-comfort)
+
+[![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-comfort
+
+Ladybug-comfort is a Python library that adds thermal comfort functionalities to
+[ladybug-core](https://github.com/ladybug-tools/ladybug/).
+
+## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/)
+
+## Installation
+
+`pip install ladybug-comfort`
+
+## Usage
+
+```python
+"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind"""
+from ladybug.epw import EPW
+from ladybug_comfort.collection.utci import UTCI
+
+epw_file_path = './tests/epw/chicago.epw'
+epw = EPW(epw_file_path)
+utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True)
+utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False)
+
+print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind
+print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind
+```
+
+### derivative work
+
+Ladybug-comfort is a derivative work of the following software projects:
+
+* [CBE Comfort Tool](https://github.com/CenterForTheBuiltEnvironment/comfort_tool) for indoor thermal comfort calculations. Available under GPL.
+* [UTCI Fortran Code](http://www.utci.org/utci_doku.php) for outdoor thermal comfort calculations. Available under MIT.
+
+Applicable copyright notices for these works can be found within the relevant .py files.
+
+
+%package help
+Summary: Development documents and examples for ladybug-comfort
+Provides: python3-ladybug-comfort-doc
+%description help
+
+![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png)
+
+[![Build Status](https://travis-ci.com/ladybug-tools/ladybug.svg?branch=master)](https://travis-ci.com/ladybug-tools/ladybug-comfort)
+[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug-comfort/badge.svg)](https://coveralls.io/github/ladybug-tools/ladybug-comfort)
+
+[![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-comfort
+
+Ladybug-comfort is a Python library that adds thermal comfort functionalities to
+[ladybug-core](https://github.com/ladybug-tools/ladybug/).
+
+## [API Documentation](https://www.ladybug.tools/ladybug-comfort/docs/)
+
+## Installation
+
+`pip install ladybug-comfort`
+
+## Usage
+
+```python
+"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind"""
+from ladybug.epw import EPW
+from ladybug_comfort.collection.utci import UTCI
+
+epw_file_path = './tests/epw/chicago.epw'
+epw = EPW(epw_file_path)
+utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True)
+utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False)
+
+print(utci_obj_exposed.percent_neutral) # comfortable percent of time with sun + wind
+print(utci_obj_protected.percent_neutral) # comfortable percent of time without sun + wind
+```
+
+### derivative work
+
+Ladybug-comfort is a derivative work of the following software projects:
+
+* [CBE Comfort Tool](https://github.com/CenterForTheBuiltEnvironment/comfort_tool) for indoor thermal comfort calculations. Available under GPL.
+* [UTCI Fortran Code](http://www.utci.org/utci_doku.php) for outdoor thermal comfort calculations. Available under MIT.
+
+Applicable copyright notices for these works can be found within the relevant .py files.
+
+
+%prep
+%autosetup -n ladybug-comfort-0.16.29
+
+%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-comfort -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.16.29-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d27eca8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9587ce3b1e6254f69e58a5f367d888cf ladybug-comfort-0.16.29.tar.gz