%global _empty_manifest_terminate_build 0 Name: python-go-ml-core Version: 0.1.3.dev3 Release: 1 Summary: machine learning core library License: Gogoro Inc. URL: http://10.0.1.31/ML/ml-storage/ml-etl/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/34/a4/754d4fecab177fc855fc4b8e314058a7f2a352b624d55ce5f04977666572/go-ml-core-0.1.3.dev3.tar.gz BuildArch: noarch Requires: python3-boto3 Requires: python3-oss2 Requires: python3-pymongo Requires: python3-PyYAML Requires: python3-requests %description # go-ml-core Some share utilities in Gogoro Machine Learning Team. ## Release instructions - To install essential packages ``` pip3 install setuptools wheel twine ``` - To prepare a ~/.pypirc ``` [distutils] index-servers = pypi [pypi] repository:https://upload.pypi.org/legacy/ username: password: ``` - To revision new version in setup.py - To compile and upload ``` python3 setup.py sdist bdist_wheel twine upload --skip-existing dist/* ``` ## Config Setting ### Reference ``` config.yml ``` ### Optional configs - mlcore.datahelper.s3.write ``` default: mlcore.datahelper.s3.read ``` - mlcore.datahelper.s3.read.s3baseprefix ``` default: "ml/" ``` - mlcore.datahelper.s3.read.aws-access-key-id & mlcore.datahelper.s3.read.aws-secret-access-key ``` login using key or not ``` - mlcore.datahelper.s3.read.role-arn & mlcore.datahelper.s3.read.role-session-name ``` assume role or not ``` %package -n python3-go-ml-core Summary: machine learning core library Provides: python-go-ml-core BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-go-ml-core # go-ml-core Some share utilities in Gogoro Machine Learning Team. ## Release instructions - To install essential packages ``` pip3 install setuptools wheel twine ``` - To prepare a ~/.pypirc ``` [distutils] index-servers = pypi [pypi] repository:https://upload.pypi.org/legacy/ username: password: ``` - To revision new version in setup.py - To compile and upload ``` python3 setup.py sdist bdist_wheel twine upload --skip-existing dist/* ``` ## Config Setting ### Reference ``` config.yml ``` ### Optional configs - mlcore.datahelper.s3.write ``` default: mlcore.datahelper.s3.read ``` - mlcore.datahelper.s3.read.s3baseprefix ``` default: "ml/" ``` - mlcore.datahelper.s3.read.aws-access-key-id & mlcore.datahelper.s3.read.aws-secret-access-key ``` login using key or not ``` - mlcore.datahelper.s3.read.role-arn & mlcore.datahelper.s3.read.role-session-name ``` assume role or not ``` %package help Summary: Development documents and examples for go-ml-core Provides: python3-go-ml-core-doc %description help # go-ml-core Some share utilities in Gogoro Machine Learning Team. ## Release instructions - To install essential packages ``` pip3 install setuptools wheel twine ``` - To prepare a ~/.pypirc ``` [distutils] index-servers = pypi [pypi] repository:https://upload.pypi.org/legacy/ username: password: ``` - To revision new version in setup.py - To compile and upload ``` python3 setup.py sdist bdist_wheel twine upload --skip-existing dist/* ``` ## Config Setting ### Reference ``` config.yml ``` ### Optional configs - mlcore.datahelper.s3.write ``` default: mlcore.datahelper.s3.read ``` - mlcore.datahelper.s3.read.s3baseprefix ``` default: "ml/" ``` - mlcore.datahelper.s3.read.aws-access-key-id & mlcore.datahelper.s3.read.aws-secret-access-key ``` login using key or not ``` - mlcore.datahelper.s3.read.role-arn & mlcore.datahelper.s3.read.role-session-name ``` assume role or not ``` %prep %autosetup -n go-ml-core-0.1.3.dev3 %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-go-ml-core -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue May 30 2023 Python_Bot - 0.1.3.dev3-1 - Package Spec generated