%global _empty_manifest_terminate_build 0 Name: python-bavard-nlu Version: 0.0.27 Release: 1 Summary: A library and CLI for NLP tasks License: MIT License URL: https://github.com/bavard-ai/bavard-nlu Source0: https://mirrors.nju.edu.cn/pypi/web/packages/18/4d/0f4b34a63be0a749295fcd551e4a9bc224b490c5443bfc316daa8e09cc25/bavard-nlu-0.0.27.tar.gz BuildArch: noarch Requires: python3-transformers Requires: python3-tensorflow Requires: python3-scikit-learn Requires: python3-tensorflow-probability Requires: python3-uncertainty-metrics Requires: python3-fire Requires: python3-keras-tuner Requires: python3-bavard-ml-common Requires: python3-uvicorn Requires: python3-google-cloud-pubsub Requires: python3-protobuf %description # bavard-nlu ## Releasing The Package Releasing the package is automatically handled by CI, but three steps must be taken to trigger a successful release: 1. Increment the `VERSION` variable in `setup.py` to the new desired version (e.g. `VERSION="1.1.1"`) 2. Commit and tag the repo with the **exact same** value you populated the `VERSION` variable with (e.g. `git tag 1.1.1`) 3. Push the commit and tag to remote. These can be done together using: `git push --atomic origin ` CI will then release the package to pypi with that version once the commit and tag are pushed. ## Local Development ### Install Dependencies ``` pip3 install -e . pip3 install -r requirements-test.txt ``` ### NLUModel CLI There is a convenience CLI for training, evaluating, predicting, tuning, and interacting with NLU models. To see the CLI documentation: ``` python3 -m bavard_nlu.cli --help ``` You can also view the documentation for a sub-command for example: ``` python3 -m bavard_nlu.cli train --help ``` ## Testing Locally The tests for this repo consist of functional tests for catching bugs/code regressions, and validation tests for catching model performance regressions. The validation tests take much longer to execute. Both are run in CI. To run just the functional tests: ``` python3 -m unittest discover test/functional ``` %package -n python3-bavard-nlu Summary: A library and CLI for NLP tasks Provides: python-bavard-nlu BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-bavard-nlu # bavard-nlu ## Releasing The Package Releasing the package is automatically handled by CI, but three steps must be taken to trigger a successful release: 1. Increment the `VERSION` variable in `setup.py` to the new desired version (e.g. `VERSION="1.1.1"`) 2. Commit and tag the repo with the **exact same** value you populated the `VERSION` variable with (e.g. `git tag 1.1.1`) 3. Push the commit and tag to remote. These can be done together using: `git push --atomic origin ` CI will then release the package to pypi with that version once the commit and tag are pushed. ## Local Development ### Install Dependencies ``` pip3 install -e . pip3 install -r requirements-test.txt ``` ### NLUModel CLI There is a convenience CLI for training, evaluating, predicting, tuning, and interacting with NLU models. To see the CLI documentation: ``` python3 -m bavard_nlu.cli --help ``` You can also view the documentation for a sub-command for example: ``` python3 -m bavard_nlu.cli train --help ``` ## Testing Locally The tests for this repo consist of functional tests for catching bugs/code regressions, and validation tests for catching model performance regressions. The validation tests take much longer to execute. Both are run in CI. To run just the functional tests: ``` python3 -m unittest discover test/functional ``` %package help Summary: Development documents and examples for bavard-nlu Provides: python3-bavard-nlu-doc %description help # bavard-nlu ## Releasing The Package Releasing the package is automatically handled by CI, but three steps must be taken to trigger a successful release: 1. Increment the `VERSION` variable in `setup.py` to the new desired version (e.g. `VERSION="1.1.1"`) 2. Commit and tag the repo with the **exact same** value you populated the `VERSION` variable with (e.g. `git tag 1.1.1`) 3. Push the commit and tag to remote. These can be done together using: `git push --atomic origin ` CI will then release the package to pypi with that version once the commit and tag are pushed. ## Local Development ### Install Dependencies ``` pip3 install -e . pip3 install -r requirements-test.txt ``` ### NLUModel CLI There is a convenience CLI for training, evaluating, predicting, tuning, and interacting with NLU models. To see the CLI documentation: ``` python3 -m bavard_nlu.cli --help ``` You can also view the documentation for a sub-command for example: ``` python3 -m bavard_nlu.cli train --help ``` ## Testing Locally The tests for this repo consist of functional tests for catching bugs/code regressions, and validation tests for catching model performance regressions. The validation tests take much longer to execute. Both are run in CI. To run just the functional tests: ``` python3 -m unittest discover test/functional ``` %prep %autosetup -n bavard-nlu-0.0.27 %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-bavard-nlu -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 31 2023 Python_Bot - 0.0.27-1 - Package Spec generated