diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:01:15 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:01:15 +0000 |
| commit | aedb51b1f9f1aad27e457e1ef11ce323def7a8c9 (patch) | |
| tree | ff7af4f2a632717b1541b3a7331d20ba73d44750 /python-sacred.spec | |
| parent | 730121371c7b03bd2cc69f112a5693b1ed94bcfa (diff) | |
automatic import of python-sacred
Diffstat (limited to 'python-sacred.spec')
| -rw-r--r-- | python-sacred.spec | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/python-sacred.spec b/python-sacred.spec new file mode 100644 index 0000000..4bd6b7e --- /dev/null +++ b/python-sacred.spec @@ -0,0 +1,155 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sacred +Version: 0.8.4 +Release: 1 +Summary: Facilitates automated and reproducible experimental research +License: MIT License +URL: https://github.com/IDSIA/sacred +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/87/90/cf3a9889042596e6ddedd4a2c10990d3e26d7f41a405292eba99550eddf2/sacred-0.8.4.tar.gz +BuildArch: noarch + +Requires: python3-docopt +Requires: python3-jsonpickle +Requires: python3-munch +Requires: python3-wrapt +Requires: python3-py-cpuinfo +Requires: python3-colorama +Requires: python3-packaging +Requires: python3-GitPython + +%description + | *Every experiment is sacred* + | *Every experiment is great* + | *If an experiment is wasted* + | *God gets quite irate* +|pypi| |py_versions| |license| |rtfd| |doi| +|build| |coverage| |code_quality| |black| +Sacred is a tool to help you configure, organize, log and reproduce experiments. +It is designed to do all the tedious overhead work that you need to do around +your actual experiment in order to: +- keep track of all the parameters of your experiment +- easily run your experiment for different settings +- save configurations for individual runs in a database +- reproduce your results +Sacred achieves this through the following main mechanisms: +- **Config Scopes** A very convenient way of the local variables in a function + to define the parameters your experiment uses. +- **Config Injection**: You can access all parameters of your configuration + from every function. They are automatically injected by name. +- **Command-line interface**: You get a powerful command-line interface for each + experiment that you can use to change parameters and run different variants. +- **Observers**: Sacred provides Observers that log all kinds of information + about your experiment, its dependencies, the configuration you used, + the machine it is run on, and of course the result. These can be saved + to a MongoDB, for easy access later. +- **Automatic seeding** helps controlling the randomness in your experiments, + such that the results remain reproducible. + +%package -n python3-sacred +Summary: Facilitates automated and reproducible experimental research +Provides: python-sacred +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sacred + | *Every experiment is sacred* + | *Every experiment is great* + | *If an experiment is wasted* + | *God gets quite irate* +|pypi| |py_versions| |license| |rtfd| |doi| +|build| |coverage| |code_quality| |black| +Sacred is a tool to help you configure, organize, log and reproduce experiments. +It is designed to do all the tedious overhead work that you need to do around +your actual experiment in order to: +- keep track of all the parameters of your experiment +- easily run your experiment for different settings +- save configurations for individual runs in a database +- reproduce your results +Sacred achieves this through the following main mechanisms: +- **Config Scopes** A very convenient way of the local variables in a function + to define the parameters your experiment uses. +- **Config Injection**: You can access all parameters of your configuration + from every function. They are automatically injected by name. +- **Command-line interface**: You get a powerful command-line interface for each + experiment that you can use to change parameters and run different variants. +- **Observers**: Sacred provides Observers that log all kinds of information + about your experiment, its dependencies, the configuration you used, + the machine it is run on, and of course the result. These can be saved + to a MongoDB, for easy access later. +- **Automatic seeding** helps controlling the randomness in your experiments, + such that the results remain reproducible. + +%package help +Summary: Development documents and examples for sacred +Provides: python3-sacred-doc +%description help + | *Every experiment is sacred* + | *Every experiment is great* + | *If an experiment is wasted* + | *God gets quite irate* +|pypi| |py_versions| |license| |rtfd| |doi| +|build| |coverage| |code_quality| |black| +Sacred is a tool to help you configure, organize, log and reproduce experiments. +It is designed to do all the tedious overhead work that you need to do around +your actual experiment in order to: +- keep track of all the parameters of your experiment +- easily run your experiment for different settings +- save configurations for individual runs in a database +- reproduce your results +Sacred achieves this through the following main mechanisms: +- **Config Scopes** A very convenient way of the local variables in a function + to define the parameters your experiment uses. +- **Config Injection**: You can access all parameters of your configuration + from every function. They are automatically injected by name. +- **Command-line interface**: You get a powerful command-line interface for each + experiment that you can use to change parameters and run different variants. +- **Observers**: Sacred provides Observers that log all kinds of information + about your experiment, its dependencies, the configuration you used, + the machine it is run on, and of course the result. These can be saved + to a MongoDB, for easy access later. +- **Automatic seeding** helps controlling the randomness in your experiments, + such that the results remain reproducible. + +%prep +%autosetup -n sacred-0.8.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-sacred -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.4-1 +- Package Spec generated |
