summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 06:41:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 06:41:58 +0000
commit3f9034d72b78cde460718f8a062fe25eb775d12a (patch)
tree05d26e819723f59b4b34ec05ed4707af0049f210
parent8c610d3d906eb3ee3176401189bb1c49492c3253 (diff)
automatic import of python-stencila-hubopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-stencila-hub.spec83
-rw-r--r--sources1
3 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..622084f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stencila.hub-4.47.19.tar.gz
diff --git a/python-stencila-hub.spec b/python-stencila-hub.spec
new file mode 100644
index 0000000..39bd7c6
--- /dev/null
+++ b/python-stencila-hub.spec
@@ -0,0 +1,83 @@
+%global _empty_manifest_terminate_build 0
+Name: python-stencila.hub
+Version: 4.47.19
+Release: 1
+Summary: Stencila Hub API
+License: Apache 2.0
+URL: https://pypi.org/project/stencila.hub/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/62/f9/53dc679fed1edc528a92d753eeef198fc51c2068db22202447d68e8e1e50/stencila.hub-4.47.19.tar.gz
+BuildArch: noarch
+
+Requires: python3-urllib3
+Requires: python3-dateutil
+
+%description
+ ## Authentication Many endpoints in the Stencila Hub API require an authentication token. These tokens carry many privileges, so be sure to keep them secure. Do not place your tokens in publicly accessible areas such as client-side code. The API is only served over HTTPS to avoid exposing tokens and other data on the network. To obtain a token, [&#x60;POST /api/tokens&#x60;](#operations-tokens-tokens_create) with either a &#x60;username&#x60; and &#x60;password&#x60; pair, or an [OpenID Connect](https://openid.net/connect/) token. Then use the token in the &#x60;Authorization&#x60; header of subsequent requests with the prefix &#x60;Token&#x60; e.g. curl -H \&quot;Authorization: Token 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34\&quot; https://hub.stenci.la/api/projects/ Alternatively, you can use &#x60;Basic&#x60; authentication with the token used as the username and no password. This can be more convenient when using command line tools such as [cURL](https://curl.haxx.se/) e.g. curl -u 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ Or, the less ubiquitous, but more accessible [httpie](https://httpie.org/): http --auth 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ In both examples above, the trailing colon is not required but avoids being asked for a password. ## Versioning The Stencila Hub is released using semantic versioning. The current version is available from the [&#x60;GET /api/status&#x60;](/api/status) endpoint. Please see the [Github release page](https://github.com/stencila/hub/releases) and the [changelog](https://github.com/stencila/hub/blob/master/CHANGELOG.md) for details on each release. We currently do not provide versioning of the API but plan to do so soon (probably by using a &#x60;Accept: application/vnd.stencila.hub+json;version&#x3D;1.0&#x60; request header). If you are using, or interested in using, the API please contact us and we may be able to expedite this. # noqa: E501
+
+
+
+
+%package -n python3-stencila.hub
+Summary: Stencila Hub API
+Provides: python-stencila.hub
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-stencila.hub
+ ## Authentication Many endpoints in the Stencila Hub API require an authentication token. These tokens carry many privileges, so be sure to keep them secure. Do not place your tokens in publicly accessible areas such as client-side code. The API is only served over HTTPS to avoid exposing tokens and other data on the network. To obtain a token, [&#x60;POST /api/tokens&#x60;](#operations-tokens-tokens_create) with either a &#x60;username&#x60; and &#x60;password&#x60; pair, or an [OpenID Connect](https://openid.net/connect/) token. Then use the token in the &#x60;Authorization&#x60; header of subsequent requests with the prefix &#x60;Token&#x60; e.g. curl -H \&quot;Authorization: Token 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34\&quot; https://hub.stenci.la/api/projects/ Alternatively, you can use &#x60;Basic&#x60; authentication with the token used as the username and no password. This can be more convenient when using command line tools such as [cURL](https://curl.haxx.se/) e.g. curl -u 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ Or, the less ubiquitous, but more accessible [httpie](https://httpie.org/): http --auth 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ In both examples above, the trailing colon is not required but avoids being asked for a password. ## Versioning The Stencila Hub is released using semantic versioning. The current version is available from the [&#x60;GET /api/status&#x60;](/api/status) endpoint. Please see the [Github release page](https://github.com/stencila/hub/releases) and the [changelog](https://github.com/stencila/hub/blob/master/CHANGELOG.md) for details on each release. We currently do not provide versioning of the API but plan to do so soon (probably by using a &#x60;Accept: application/vnd.stencila.hub+json;version&#x3D;1.0&#x60; request header). If you are using, or interested in using, the API please contact us and we may be able to expedite this. # noqa: E501
+
+
+
+
+%package help
+Summary: Development documents and examples for stencila.hub
+Provides: python3-stencila.hub-doc
+%description help
+ ## Authentication Many endpoints in the Stencila Hub API require an authentication token. These tokens carry many privileges, so be sure to keep them secure. Do not place your tokens in publicly accessible areas such as client-side code. The API is only served over HTTPS to avoid exposing tokens and other data on the network. To obtain a token, [&#x60;POST /api/tokens&#x60;](#operations-tokens-tokens_create) with either a &#x60;username&#x60; and &#x60;password&#x60; pair, or an [OpenID Connect](https://openid.net/connect/) token. Then use the token in the &#x60;Authorization&#x60; header of subsequent requests with the prefix &#x60;Token&#x60; e.g. curl -H \&quot;Authorization: Token 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34\&quot; https://hub.stenci.la/api/projects/ Alternatively, you can use &#x60;Basic&#x60; authentication with the token used as the username and no password. This can be more convenient when using command line tools such as [cURL](https://curl.haxx.se/) e.g. curl -u 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ Or, the less ubiquitous, but more accessible [httpie](https://httpie.org/): http --auth 48866b1e38a2e9db0baada2140b2327937f4a3636dd5f2dfd8c212341c88d34: https://hub.stenci.la/api/projects/ In both examples above, the trailing colon is not required but avoids being asked for a password. ## Versioning The Stencila Hub is released using semantic versioning. The current version is available from the [&#x60;GET /api/status&#x60;](/api/status) endpoint. Please see the [Github release page](https://github.com/stencila/hub/releases) and the [changelog](https://github.com/stencila/hub/blob/master/CHANGELOG.md) for details on each release. We currently do not provide versioning of the API but plan to do so soon (probably by using a &#x60;Accept: application/vnd.stencila.hub+json;version&#x3D;1.0&#x60; request header). If you are using, or interested in using, the API please contact us and we may be able to expedite this. # noqa: E501
+
+
+
+
+%prep
+%autosetup -n stencila.hub-4.47.19
+
+%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-stencila.hub -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 4.47.19-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d3bf834
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e3543b9683a39c92b50ca498fd7501df stencila.hub-4.47.19.tar.gz