summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-neuro-cli.spec179
-rw-r--r--sources1
3 files changed, 181 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5d85671 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/neuro-cli-23.2.0.tar.gz
diff --git a/python-neuro-cli.spec b/python-neuro-cli.spec
new file mode 100644
index 0000000..c002633
--- /dev/null
+++ b/python-neuro-cli.spec
@@ -0,0 +1,179 @@
+%global _empty_manifest_terminate_build 0
+Name: python-neuro-cli
+Version: 23.2.0
+Release: 1
+Summary: Neuro Platform client
+License: Apache 2
+URL: https://github.com/neuro-inc/platform-client-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/97/71/8a0200028ebe618e133298dde05c299f1a2f7c6e56fde3371bd34acb29d9/neuro-cli-23.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-jose
+Requires: python3-dateutil
+Requires: python3-neuro-sdk
+Requires: python3-click
+Requires: python3-humanize
+Requires: python3-typing-extensions
+Requires: python3-certifi
+Requires: python3-wcwidth
+Requires: python3-prompt-toolkit
+Requires: python3-rich
+Requires: python3-jedi
+
+%description
+[![codecov](https://codecov.io/gh/neuro-cli/platform-client-python/branch/master/graph/badge.svg)](https://codecov.io/gh/neuro-cli/platform-client-python)
+
+# Preface
+
+Welcome to Neuro CLI tool for https://neu.ro/.
+Package ship command line tool called `neuro`. With it you can:
+* Execute and debug jobs
+* Manipulate Data
+* Make some fun
+
+# Contributing
+
+For OSX users install coreutils to properly interpret shell commands:
+
+```
+brew install coreutils
+```
+
+Before you begin, it is recommended to have clean virtual environment installed:
+
+```shell
+python -m venv .env
+source .env/bin/activate
+```
+
+Development flow:
+
+* Install dependencies: `make setup`
+* Reformat code: `make format`
+* Lint: `make lint`
+* Run tests: `make test`
+* Run end-to-end tests: `make e2e`
+
+
+%package -n python3-neuro-cli
+Summary: Neuro Platform client
+Provides: python-neuro-cli
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-neuro-cli
+[![codecov](https://codecov.io/gh/neuro-cli/platform-client-python/branch/master/graph/badge.svg)](https://codecov.io/gh/neuro-cli/platform-client-python)
+
+# Preface
+
+Welcome to Neuro CLI tool for https://neu.ro/.
+Package ship command line tool called `neuro`. With it you can:
+* Execute and debug jobs
+* Manipulate Data
+* Make some fun
+
+# Contributing
+
+For OSX users install coreutils to properly interpret shell commands:
+
+```
+brew install coreutils
+```
+
+Before you begin, it is recommended to have clean virtual environment installed:
+
+```shell
+python -m venv .env
+source .env/bin/activate
+```
+
+Development flow:
+
+* Install dependencies: `make setup`
+* Reformat code: `make format`
+* Lint: `make lint`
+* Run tests: `make test`
+* Run end-to-end tests: `make e2e`
+
+
+%package help
+Summary: Development documents and examples for neuro-cli
+Provides: python3-neuro-cli-doc
+%description help
+[![codecov](https://codecov.io/gh/neuro-cli/platform-client-python/branch/master/graph/badge.svg)](https://codecov.io/gh/neuro-cli/platform-client-python)
+
+# Preface
+
+Welcome to Neuro CLI tool for https://neu.ro/.
+Package ship command line tool called `neuro`. With it you can:
+* Execute and debug jobs
+* Manipulate Data
+* Make some fun
+
+# Contributing
+
+For OSX users install coreutils to properly interpret shell commands:
+
+```
+brew install coreutils
+```
+
+Before you begin, it is recommended to have clean virtual environment installed:
+
+```shell
+python -m venv .env
+source .env/bin/activate
+```
+
+Development flow:
+
+* Install dependencies: `make setup`
+* Reformat code: `make format`
+* Lint: `make lint`
+* Run tests: `make test`
+* Run end-to-end tests: `make e2e`
+
+
+%prep
+%autosetup -n neuro-cli-23.2.0
+
+%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-neuro-cli -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 23.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..15e8cf7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f0cccb401dbe1e9d6bf5aa3ad2514b92 neuro-cli-23.2.0.tar.gz