diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:22:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:22:00 +0000 |
| commit | 817922eeef2f748ceecb28e3345dd6a638621b1b (patch) | |
| tree | b54b552c32914f25549d4df44ea934400dd3afcf /python-archetypal.spec | |
| parent | cf41c8342c23a5714b765f0d3f79dc3f280cd90e (diff) | |
automatic import of python-archetypal
Diffstat (limited to 'python-archetypal.spec')
| -rw-r--r-- | python-archetypal.spec | 344 |
1 files changed, 344 insertions, 0 deletions
diff --git a/python-archetypal.spec b/python-archetypal.spec new file mode 100644 index 0000000..cf4fa3f --- /dev/null +++ b/python-archetypal.spec @@ -0,0 +1,344 @@ +%global _empty_manifest_terminate_build 0 +Name: python-archetypal +Version: 2.16.1 +Release: 1 +Summary: Retrieve, construct, simulate, convert and analyse building archetypes +License: MIT License +URL: https://github.com/samuelduchesne/archetypal +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/64/52/6f35c31003da6676df50a69c073e13f322f486a9677da821cce56478bf01/archetypal-2.16.1.tar.gz +BuildArch: noarch + +Requires: python3-networkx +Requires: python3-eppy +Requires: python3-matplotlib +Requires: python3-pycountry +Requires: python3-scikit-learn +Requires: python3-pandas +Requires: python3-numpy +Requires: python3-tqdm +Requires: python3-tabulate +Requires: python3-path +Requires: python3-click +Requires: python3-outdated +Requires: python3-deprecation +Requires: python3-sigfig +Requires: python3-requests +Requires: python3-packaging +Requires: python3-pytest +Requires: python3-setuptools +Requires: python3-CoolProp +Requires: python3-energy-pandas +Requires: python3-validator-collection +Requires: python3-pint +Requires: python3-typing-extensions +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-recommonmark +Requires: python3-sphinx-click + +%description +[](https://github.com/samuelduchesne/archetypal/actions/workflows/python-package.yml) +[](https://coveralls.io/github/samuelduchesne/archetypal) +[](https://archetypal.readthedocs.io/en/latest/?badge=latest) +[](https://doi.org/10.21105/joss.01833) +[](https://github.com/psf/black) + +# Archetypal + +**python for building simulation archetypes** + +Retrieve, construct, simulate, convert and analyze building simulation +templates + +## Overview + +**Archetypal** is a Python package that helps handle building +archetypes. + +## Changes since v2.0.0 + +The conversion of [EnergyPlus](https://energyplus.net) IDF models to +Trnsys +[TrnBuild](http://www.trnsys.com/features/suite-of-tools.php.html) +Models (compatible with the multizone building model) is now part of a +distinct package known as the +[trnslator](https://github.com/louisleroy5/trnslator). + +## Features + +Here is a short overview of features that are part of archetypal: + +1. Building Complexity Reduction: A utility to transform a multizone + EnergyPlus model to a two-zone normalized model. Such models are + called `building archetypes` and are the foundation of the + [UMI Energy Module](https://umidocs.readthedocs.io/en/latest/docs/model-setup-template.html). + This tool will allow any EnergyPlus model to be imported into + [UMI](http://web.mit.edu/sustainabledesignlab/projects/umi/index.html) + and drastically speedup the UBEM process. + +## Installation + +Recommended to use a conda environement running python 3.8. Pip install should work on all platforms (linux, macOS and Windows). +First, +```cmd +conda create -n venv python=3.8 +``` +`-n venv` is the name of your environement; it can be anything. +Then, +```cmd +pip install -U archetypal +``` + +## Local Development + +1. Clone this repo locally + +```console +git clone https://github.com/samuelduchesne/archetypal.git +``` + +2. Install dependencies: + +```console +cd archetypal +conda env create +``` + +This will create a new environment named `archetypal`. Don't forget to activate the environment. + +3. Run Tests: + +```console +python -m pytest tests/ +``` + +4. Generate Documentation: + +```console +make html +``` + + + +%package -n python3-archetypal +Summary: Retrieve, construct, simulate, convert and analyse building archetypes +Provides: python-archetypal +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-archetypal +[](https://github.com/samuelduchesne/archetypal/actions/workflows/python-package.yml) +[](https://coveralls.io/github/samuelduchesne/archetypal) +[](https://archetypal.readthedocs.io/en/latest/?badge=latest) +[](https://doi.org/10.21105/joss.01833) +[](https://github.com/psf/black) + +# Archetypal + +**python for building simulation archetypes** + +Retrieve, construct, simulate, convert and analyze building simulation +templates + +## Overview + +**Archetypal** is a Python package that helps handle building +archetypes. + +## Changes since v2.0.0 + +The conversion of [EnergyPlus](https://energyplus.net) IDF models to +Trnsys +[TrnBuild](http://www.trnsys.com/features/suite-of-tools.php.html) +Models (compatible with the multizone building model) is now part of a +distinct package known as the +[trnslator](https://github.com/louisleroy5/trnslator). + +## Features + +Here is a short overview of features that are part of archetypal: + +1. Building Complexity Reduction: A utility to transform a multizone + EnergyPlus model to a two-zone normalized model. Such models are + called `building archetypes` and are the foundation of the + [UMI Energy Module](https://umidocs.readthedocs.io/en/latest/docs/model-setup-template.html). + This tool will allow any EnergyPlus model to be imported into + [UMI](http://web.mit.edu/sustainabledesignlab/projects/umi/index.html) + and drastically speedup the UBEM process. + +## Installation + +Recommended to use a conda environement running python 3.8. Pip install should work on all platforms (linux, macOS and Windows). +First, +```cmd +conda create -n venv python=3.8 +``` +`-n venv` is the name of your environement; it can be anything. +Then, +```cmd +pip install -U archetypal +``` + +## Local Development + +1. Clone this repo locally + +```console +git clone https://github.com/samuelduchesne/archetypal.git +``` + +2. Install dependencies: + +```console +cd archetypal +conda env create +``` + +This will create a new environment named `archetypal`. Don't forget to activate the environment. + +3. Run Tests: + +```console +python -m pytest tests/ +``` + +4. Generate Documentation: + +```console +make html +``` + + + +%package help +Summary: Development documents and examples for archetypal +Provides: python3-archetypal-doc +%description help +[](https://github.com/samuelduchesne/archetypal/actions/workflows/python-package.yml) +[](https://coveralls.io/github/samuelduchesne/archetypal) +[](https://archetypal.readthedocs.io/en/latest/?badge=latest) +[](https://doi.org/10.21105/joss.01833) +[](https://github.com/psf/black) + +# Archetypal + +**python for building simulation archetypes** + +Retrieve, construct, simulate, convert and analyze building simulation +templates + +## Overview + +**Archetypal** is a Python package that helps handle building +archetypes. + +## Changes since v2.0.0 + +The conversion of [EnergyPlus](https://energyplus.net) IDF models to +Trnsys +[TrnBuild](http://www.trnsys.com/features/suite-of-tools.php.html) +Models (compatible with the multizone building model) is now part of a +distinct package known as the +[trnslator](https://github.com/louisleroy5/trnslator). + +## Features + +Here is a short overview of features that are part of archetypal: + +1. Building Complexity Reduction: A utility to transform a multizone + EnergyPlus model to a two-zone normalized model. Such models are + called `building archetypes` and are the foundation of the + [UMI Energy Module](https://umidocs.readthedocs.io/en/latest/docs/model-setup-template.html). + This tool will allow any EnergyPlus model to be imported into + [UMI](http://web.mit.edu/sustainabledesignlab/projects/umi/index.html) + and drastically speedup the UBEM process. + +## Installation + +Recommended to use a conda environement running python 3.8. Pip install should work on all platforms (linux, macOS and Windows). +First, +```cmd +conda create -n venv python=3.8 +``` +`-n venv` is the name of your environement; it can be anything. +Then, +```cmd +pip install -U archetypal +``` + +## Local Development + +1. Clone this repo locally + +```console +git clone https://github.com/samuelduchesne/archetypal.git +``` + +2. Install dependencies: + +```console +cd archetypal +conda env create +``` + +This will create a new environment named `archetypal`. Don't forget to activate the environment. + +3. Run Tests: + +```console +python -m pytest tests/ +``` + +4. Generate Documentation: + +```console +make html +``` + + + +%prep +%autosetup -n archetypal-2.16.1 + +%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-archetypal -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.16.1-1 +- Package Spec generated |
