diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:55:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 03:55:10 +0000 |
commit | 365100334ede20f7ca356d505e69552ccbe2b3f6 (patch) | |
tree | ee90f7811d0bc0aa3b0f4504c2567ed65f5f7b04 | |
parent | 8992ab302cea7630079ae1c9594d9907cf11772e (diff) |
automatic import of python-go-ml-core
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-go-ml-core.spec | 290 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 292 insertions, 0 deletions
@@ -0,0 +1 @@ +/go-ml-core-0.1.3.dev3.tar.gz diff --git a/python-go-ml-core.spec b/python-go-ml-core.spec new file mode 100644 index 0000000..1336209 --- /dev/null +++ b/python-go-ml-core.spec @@ -0,0 +1,290 @@ +%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:<username> +password:<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:<username> +password:<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:<username> +password:<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 +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.3.dev3-1 +- Package Spec generated @@ -0,0 +1 @@ +1e9ddee82e001f3eaa00b3ca1f7179da go-ml-core-0.1.3.dev3.tar.gz |