From ed64d1b45cf377316606e708ab99f8955fb185bf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 09:30:13 +0000 Subject: automatic import of python-dowel --- python-dowel.spec | 180 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 python-dowel.spec (limited to 'python-dowel.spec') diff --git a/python-dowel.spec b/python-dowel.spec new file mode 100644 index 0000000..2bf05ea --- /dev/null +++ b/python-dowel.spec @@ -0,0 +1,180 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dowel +Version: 0.0.4 +Release: 1 +Summary: A logger for machine learning research +License: MIT +URL: https://github.com/rlworkgroup/dowel +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f2/7a/12fe1aa38d99d3c7d0d87b728e9528a6b5642ff201e1d1726633ae5813e4/dowel-0.0.4.tar.gz +BuildArch: noarch + + +%description +[![Build Status](https://travis-ci.com/rlworkgroup/dowel.svg?branch=master)](https://travis-ci.com/rlworkgroup/dowel) +[![codecov](https://codecov.io/gh/rlworkgroup/dowel/branch/master/graph/badge.svg)](https://codecov.io/gh/rlworkgroup/dowel) +[![Docs](https://readthedocs.org/projects/dowel/badge)](http://dowel.readthedocs.org/en/latest/) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rlworkgroup/dowel/blob/master/LICENSE) +[![PyPI version](https://badge.fury.io/py/dowel.svg)](https://badge.fury.io/py/dowel) + +# dowel + +dowel is a little logger for machine learning research. + +## Installation +```shell +pip install dowel +``` + +## Usage +```python +import dowel +from dowel import logger, tabular + +logger.add_output(dowel.StdOutput()) +logger.add_output(dowel.TensorBoardOutput('tensorboard_logdir')) + +logger.log('Starting up...') +for i in range(1000): + logger.push_prefix('itr {}'.format(i)) + logger.log('Running training step') + + tabular.record('itr', i) + tabular.record('loss', 100.0 / (2 + i)) + logger.log(tabular) + + logger.pop_prefix() + logger.dump_all() + +logger.remove_all() +``` + +%package -n python3-dowel +Summary: A logger for machine learning research +Provides: python-dowel +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dowel +[![Build Status](https://travis-ci.com/rlworkgroup/dowel.svg?branch=master)](https://travis-ci.com/rlworkgroup/dowel) +[![codecov](https://codecov.io/gh/rlworkgroup/dowel/branch/master/graph/badge.svg)](https://codecov.io/gh/rlworkgroup/dowel) +[![Docs](https://readthedocs.org/projects/dowel/badge)](http://dowel.readthedocs.org/en/latest/) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rlworkgroup/dowel/blob/master/LICENSE) +[![PyPI version](https://badge.fury.io/py/dowel.svg)](https://badge.fury.io/py/dowel) + +# dowel + +dowel is a little logger for machine learning research. + +## Installation +```shell +pip install dowel +``` + +## Usage +```python +import dowel +from dowel import logger, tabular + +logger.add_output(dowel.StdOutput()) +logger.add_output(dowel.TensorBoardOutput('tensorboard_logdir')) + +logger.log('Starting up...') +for i in range(1000): + logger.push_prefix('itr {}'.format(i)) + logger.log('Running training step') + + tabular.record('itr', i) + tabular.record('loss', 100.0 / (2 + i)) + logger.log(tabular) + + logger.pop_prefix() + logger.dump_all() + +logger.remove_all() +``` + +%package help +Summary: Development documents and examples for dowel +Provides: python3-dowel-doc +%description help +[![Build Status](https://travis-ci.com/rlworkgroup/dowel.svg?branch=master)](https://travis-ci.com/rlworkgroup/dowel) +[![codecov](https://codecov.io/gh/rlworkgroup/dowel/branch/master/graph/badge.svg)](https://codecov.io/gh/rlworkgroup/dowel) +[![Docs](https://readthedocs.org/projects/dowel/badge)](http://dowel.readthedocs.org/en/latest/) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rlworkgroup/dowel/blob/master/LICENSE) +[![PyPI version](https://badge.fury.io/py/dowel.svg)](https://badge.fury.io/py/dowel) + +# dowel + +dowel is a little logger for machine learning research. + +## Installation +```shell +pip install dowel +``` + +## Usage +```python +import dowel +from dowel import logger, tabular + +logger.add_output(dowel.StdOutput()) +logger.add_output(dowel.TensorBoardOutput('tensorboard_logdir')) + +logger.log('Starting up...') +for i in range(1000): + logger.push_prefix('itr {}'.format(i)) + logger.log('Running training step') + + tabular.record('itr', i) + tabular.record('loss', 100.0 / (2 + i)) + logger.log(tabular) + + logger.pop_prefix() + logger.dump_all() + +logger.remove_all() +``` + +%prep +%autosetup -n dowel-0.0.4 + +%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-dowel -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.0.4-1 +- Package Spec generated -- cgit v1.2.3