%global _empty_manifest_terminate_build 0 Name: python-SeedsLabeler Version: 0.0.42 Release: 1 Summary: Seeds annotation tool License: MIT license URL: https://github.com/meryusha/seeds_labeler/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/b6/fbcc82b276aab2c009a8cbe4974cdc71abae13290bb55994630fcf934e18/SeedsLabeler-0.0.42.tar.gz BuildArch: noarch Requires: python3-pyqt5 Requires: python3-lxml Requires: python3-numpy Requires: python3-pandas Requires: python3-requests %description # Seeds Labeler ## Installation Install the last version of SeedsLabeler with `pip install SeedsLabeler --upgrade`. More details in [INSTALL.md](INSTALL.md). ## Run SeedsLabeler In a terminal, simply run `SeedsLabeler`. ## Guidelines For any modification request, open an issue. Once the issue is solved, commit your changes with the message "Fixes #". The issue will be automatically closes at the next push/merge/deployement. ## Updates `conda activate SeedsLabeler` `python SeedsLabeler.py` `python SeedsLabeler.py --project /Users/giancos/Desktop/SeedsLabeler/project.annt` ### Modify UI To update the user interface, modify `src/gui/mainwindow.ui` and recompile the equivalent python file with `pyuic5 src/gui/mainwindow.ui -o src/gui/ui_mainwindow.py` ## [Dev] Update pip pacakge (requires admin rights for pip project and github repo) Update [version.py](src/libs/version.py) with the new version number. Make wure twin is installed: `pip install twine` Run `python setup.py upload`. # OLD SERVER curl -H "Content-Type: image/jpeg" -H "project_id: Striga_Strat2" -H "api_token: bc470cc3459349b4bcbb685a217e83a0" -X POST --data-binary @sample.jpg http://cloudlabeling.org:4000/api/predict # SERVER ON THYA TECH curl -X POST 'https://api-infer.thya-technology.com/api/v1/inference' -H 'x-api-key: 0cda174e183667abd12e061e9ced3c0ecb008c52bd4830e7d293bd6847c211a4' -F 'projectId=4' -F 'images=@sample.jpg;type=image/jpeg' %package -n python3-SeedsLabeler Summary: Seeds annotation tool Provides: python-SeedsLabeler BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-SeedsLabeler # Seeds Labeler ## Installation Install the last version of SeedsLabeler with `pip install SeedsLabeler --upgrade`. More details in [INSTALL.md](INSTALL.md). ## Run SeedsLabeler In a terminal, simply run `SeedsLabeler`. ## Guidelines For any modification request, open an issue. Once the issue is solved, commit your changes with the message "Fixes #". The issue will be automatically closes at the next push/merge/deployement. ## Updates `conda activate SeedsLabeler` `python SeedsLabeler.py` `python SeedsLabeler.py --project /Users/giancos/Desktop/SeedsLabeler/project.annt` ### Modify UI To update the user interface, modify `src/gui/mainwindow.ui` and recompile the equivalent python file with `pyuic5 src/gui/mainwindow.ui -o src/gui/ui_mainwindow.py` ## [Dev] Update pip pacakge (requires admin rights for pip project and github repo) Update [version.py](src/libs/version.py) with the new version number. Make wure twin is installed: `pip install twine` Run `python setup.py upload`. # OLD SERVER curl -H "Content-Type: image/jpeg" -H "project_id: Striga_Strat2" -H "api_token: bc470cc3459349b4bcbb685a217e83a0" -X POST --data-binary @sample.jpg http://cloudlabeling.org:4000/api/predict # SERVER ON THYA TECH curl -X POST 'https://api-infer.thya-technology.com/api/v1/inference' -H 'x-api-key: 0cda174e183667abd12e061e9ced3c0ecb008c52bd4830e7d293bd6847c211a4' -F 'projectId=4' -F 'images=@sample.jpg;type=image/jpeg' %package help Summary: Development documents and examples for SeedsLabeler Provides: python3-SeedsLabeler-doc %description help # Seeds Labeler ## Installation Install the last version of SeedsLabeler with `pip install SeedsLabeler --upgrade`. More details in [INSTALL.md](INSTALL.md). ## Run SeedsLabeler In a terminal, simply run `SeedsLabeler`. ## Guidelines For any modification request, open an issue. Once the issue is solved, commit your changes with the message "Fixes #". The issue will be automatically closes at the next push/merge/deployement. ## Updates `conda activate SeedsLabeler` `python SeedsLabeler.py` `python SeedsLabeler.py --project /Users/giancos/Desktop/SeedsLabeler/project.annt` ### Modify UI To update the user interface, modify `src/gui/mainwindow.ui` and recompile the equivalent python file with `pyuic5 src/gui/mainwindow.ui -o src/gui/ui_mainwindow.py` ## [Dev] Update pip pacakge (requires admin rights for pip project and github repo) Update [version.py](src/libs/version.py) with the new version number. Make wure twin is installed: `pip install twine` Run `python setup.py upload`. # OLD SERVER curl -H "Content-Type: image/jpeg" -H "project_id: Striga_Strat2" -H "api_token: bc470cc3459349b4bcbb685a217e83a0" -X POST --data-binary @sample.jpg http://cloudlabeling.org:4000/api/predict # SERVER ON THYA TECH curl -X POST 'https://api-infer.thya-technology.com/api/v1/inference' -H 'x-api-key: 0cda174e183667abd12e061e9ced3c0ecb008c52bd4830e7d293bd6847c211a4' -F 'projectId=4' -F 'images=@sample.jpg;type=image/jpeg' %prep %autosetup -n SeedsLabeler-0.0.42 %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-SeedsLabeler -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue May 30 2023 Python_Bot - 0.0.42-1 - Package Spec generated