summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 09:30:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 09:30:13 +0000
commited64d1b45cf377316606e708ab99f8955fb185bf (patch)
tree9eb62eba291614d0fb68487e65a62566d2a925a2
parent354a9c99d7acb2386eb669a1a63149287c54cab1 (diff)
automatic import of python-dowelopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-dowel.spec180
-rw-r--r--sources1
3 files changed, 182 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8e80a3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dowel-0.0.4.tar.gz
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 <Python_Bot@openeuler.org> - 0.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e18f346
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a50d8b274892865ec18a70d488c33b8d dowel-0.0.4.tar.gz