%global _empty_manifest_terminate_build 0 Name: python-stashy Version: 0.7 Release: 1 Summary: Python API client for the Atlassian Bitbucket Server (formerly known as Stash) REST API License: Apache License 2.0 URL: http://github.com/cosmin/stashy Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/33/552c2890543c4a8e648db171ca415034e37bd48a6c62ea9d0e41fcd47143/stashy-0.7.tar.gz BuildArch: noarch %description # stashy Python client for the Atlassian Bitbucket Server (formerly known as Stash) [REST API](https://docs.atlassian.com/bitbucket-server/rest/5.7.0/bitbucket-rest.html). Supports Python 2.6, 2.7, 3.5, 3.6 and 3.7 [![Build Status](https://travis-ci.org/cosmin/stashy.png?branch=master)](https://travis-ci.org/cosmin/stashy) [![PyPI version](https://img.shields.io/pypi/v/stashy.svg)](https://pypi.org/project/stashy) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/stashy.svg)](https://anaconda.org/conda-forge/stashy) ## Installation ``` pip install stashy ``` ## Testing ``` tox ``` ## Usage ```python import stashy stash = stashy.connect("http://localhost:7990/stash", "admin", "admin") ``` ## Examples * Retrieve all groups ```python stash.admin.groups.list() ``` * Retrieve all users that match a given filter ```python stash.admin.users.list(filter="admin") ``` * Add a user to a group ```python stash.admin.groups.add_user('stash-users', 'admin') ``` * Iterate over all projects (that you have access to) ```python stash.projects.list() ``` * List all the repositories in a given project ```python stash.projects[PROJECT].repos.list() ``` * Create a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests.create('PR_TITLE', 'SOURCE_REF', 'TARGET_REF', 'PR_COMMENT', 'PR_REVIEWERS_LIST')) ``` * List all the commits in a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].commits()) ``` * List all comments of pull request ```python list(stash..projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].activities(fromType='COMMENTED'))) ``` * Delete specific comment ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].delete_comment(COMMENT_ID, COMMENT_VERSION) ``` * Show the diff of a pull request ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].diff() ``` * List all branch restrictions for a repo ```python stash.projects[PROJECT].repos[REPO].restricted.list() ``` * List all branch permission entities for a repo ```python stash.projects[PROJECT].repos[REPO].permitted.list() ``` ## Implemented ``` /admin/groups [DELETE, GET, POST] /admin/groups/add-user [POST] /admin/groups/more-members [GET] /admin/groups/more-non-members [GET] /admin/groups/remove-user [POST] /admin/users [GET, POST, DELETE, PUT] /admin/users/add-group [POST] /admin/users/credentials [PUT] /admin/users/more-members [GET] /admin/users/more-non-members [GET] /admin/users/remove-group [POST] /admin/permissions/groups [GET, PUT, DELETE] /admin/permissions/groups/none [GET] /admin/permissions/users [GET, PUT, DELETE] /admin/permissions/users/none [GET] /groups [GET] /projects [POST, GET] /projects/{projectKey} [DELETE, PUT, GET] /projects/{projectKey}/permissions/groups [GET, PUT, DELETE] /projects/{projectKey}/permissions/groups/none [GET] /projects/{projectKey}/permissions/users [GET, PUT, DELETE] /projects/{projectKey}/permissions/users/none [GET] /projects/{projectKey}/permissions/{permission}/all [GET, POST] /projects/{projectKey}/settings/hooks [GET] /projects/{projectKey}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos [POST, GET] /projects/{projectKey}/repos/{repositorySlug} [DELETE, POST, PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/branches [GET, PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/branches/default [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/branches/info/{changesetId} [GET] /projects/{projectKey}/repos/{repositorySlug}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/permissions [GET, POST,DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId} [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/decline [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/reopen [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/tags [GET, POST, DELETE] /build-status/1.0/commits/{commit-hash} [GET, POST] /keys/1.0/projects/{projectKey}/ssh [GET, POST] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh [GET, POST] /ssh/1.0/keys [GET, POST] /sync/latest/projects/{projectKey}/repos/{repositorySlug} [POST] sync/latest/projects/{projectKey}/repos/{repositorySlug}/synchronize [POST] ``` ## Not yet implemented ``` /admin/mail-server [DELETE] /application-properties [GET] /hooks/{hookKey}/avatar [GET] /logs/logger/{loggerName} [GET] /logs/logger/{loggerName}/{levelName} [PUT] /logs/rootLogger [GET] /logs/rootLogger/{levelName} [PUT] /markup/preview [POST] /profile/recent/repos [GET] /projects/{projectKey}/avatar.png [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/recreate [POST] /projects/{projectKey}/repos/{repositorySlug}/browse [GET] /projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/commits/{changesetId:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/files [GET] /projects/{projectKey}/repos/{repositorySlug}/files/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants [GET, DELETE, POST] /users [GET, PUT] /users/credentials [PUT] /keys/1.0/projects/{projectKey}/ssh/{keyId} [GET, DELETE] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh/{keyId} [GET, DELETE] /ssh/1.0/keys [DELETE] /ssh/1.0/keys/{keyId} [DELETE] /ssh/1.0/settings [GET] ``` %package -n python3-stashy Summary: Python API client for the Atlassian Bitbucket Server (formerly known as Stash) REST API Provides: python-stashy BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-stashy # stashy Python client for the Atlassian Bitbucket Server (formerly known as Stash) [REST API](https://docs.atlassian.com/bitbucket-server/rest/5.7.0/bitbucket-rest.html). Supports Python 2.6, 2.7, 3.5, 3.6 and 3.7 [![Build Status](https://travis-ci.org/cosmin/stashy.png?branch=master)](https://travis-ci.org/cosmin/stashy) [![PyPI version](https://img.shields.io/pypi/v/stashy.svg)](https://pypi.org/project/stashy) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/stashy.svg)](https://anaconda.org/conda-forge/stashy) ## Installation ``` pip install stashy ``` ## Testing ``` tox ``` ## Usage ```python import stashy stash = stashy.connect("http://localhost:7990/stash", "admin", "admin") ``` ## Examples * Retrieve all groups ```python stash.admin.groups.list() ``` * Retrieve all users that match a given filter ```python stash.admin.users.list(filter="admin") ``` * Add a user to a group ```python stash.admin.groups.add_user('stash-users', 'admin') ``` * Iterate over all projects (that you have access to) ```python stash.projects.list() ``` * List all the repositories in a given project ```python stash.projects[PROJECT].repos.list() ``` * Create a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests.create('PR_TITLE', 'SOURCE_REF', 'TARGET_REF', 'PR_COMMENT', 'PR_REVIEWERS_LIST')) ``` * List all the commits in a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].commits()) ``` * List all comments of pull request ```python list(stash..projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].activities(fromType='COMMENTED'))) ``` * Delete specific comment ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].delete_comment(COMMENT_ID, COMMENT_VERSION) ``` * Show the diff of a pull request ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].diff() ``` * List all branch restrictions for a repo ```python stash.projects[PROJECT].repos[REPO].restricted.list() ``` * List all branch permission entities for a repo ```python stash.projects[PROJECT].repos[REPO].permitted.list() ``` ## Implemented ``` /admin/groups [DELETE, GET, POST] /admin/groups/add-user [POST] /admin/groups/more-members [GET] /admin/groups/more-non-members [GET] /admin/groups/remove-user [POST] /admin/users [GET, POST, DELETE, PUT] /admin/users/add-group [POST] /admin/users/credentials [PUT] /admin/users/more-members [GET] /admin/users/more-non-members [GET] /admin/users/remove-group [POST] /admin/permissions/groups [GET, PUT, DELETE] /admin/permissions/groups/none [GET] /admin/permissions/users [GET, PUT, DELETE] /admin/permissions/users/none [GET] /groups [GET] /projects [POST, GET] /projects/{projectKey} [DELETE, PUT, GET] /projects/{projectKey}/permissions/groups [GET, PUT, DELETE] /projects/{projectKey}/permissions/groups/none [GET] /projects/{projectKey}/permissions/users [GET, PUT, DELETE] /projects/{projectKey}/permissions/users/none [GET] /projects/{projectKey}/permissions/{permission}/all [GET, POST] /projects/{projectKey}/settings/hooks [GET] /projects/{projectKey}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos [POST, GET] /projects/{projectKey}/repos/{repositorySlug} [DELETE, POST, PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/branches [GET, PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/branches/default [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/branches/info/{changesetId} [GET] /projects/{projectKey}/repos/{repositorySlug}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/permissions [GET, POST,DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId} [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/decline [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/reopen [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/tags [GET, POST, DELETE] /build-status/1.0/commits/{commit-hash} [GET, POST] /keys/1.0/projects/{projectKey}/ssh [GET, POST] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh [GET, POST] /ssh/1.0/keys [GET, POST] /sync/latest/projects/{projectKey}/repos/{repositorySlug} [POST] sync/latest/projects/{projectKey}/repos/{repositorySlug}/synchronize [POST] ``` ## Not yet implemented ``` /admin/mail-server [DELETE] /application-properties [GET] /hooks/{hookKey}/avatar [GET] /logs/logger/{loggerName} [GET] /logs/logger/{loggerName}/{levelName} [PUT] /logs/rootLogger [GET] /logs/rootLogger/{levelName} [PUT] /markup/preview [POST] /profile/recent/repos [GET] /projects/{projectKey}/avatar.png [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/recreate [POST] /projects/{projectKey}/repos/{repositorySlug}/browse [GET] /projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/commits/{changesetId:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/files [GET] /projects/{projectKey}/repos/{repositorySlug}/files/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants [GET, DELETE, POST] /users [GET, PUT] /users/credentials [PUT] /keys/1.0/projects/{projectKey}/ssh/{keyId} [GET, DELETE] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh/{keyId} [GET, DELETE] /ssh/1.0/keys [DELETE] /ssh/1.0/keys/{keyId} [DELETE] /ssh/1.0/settings [GET] ``` %package help Summary: Development documents and examples for stashy Provides: python3-stashy-doc %description help # stashy Python client for the Atlassian Bitbucket Server (formerly known as Stash) [REST API](https://docs.atlassian.com/bitbucket-server/rest/5.7.0/bitbucket-rest.html). Supports Python 2.6, 2.7, 3.5, 3.6 and 3.7 [![Build Status](https://travis-ci.org/cosmin/stashy.png?branch=master)](https://travis-ci.org/cosmin/stashy) [![PyPI version](https://img.shields.io/pypi/v/stashy.svg)](https://pypi.org/project/stashy) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/stashy.svg)](https://anaconda.org/conda-forge/stashy) ## Installation ``` pip install stashy ``` ## Testing ``` tox ``` ## Usage ```python import stashy stash = stashy.connect("http://localhost:7990/stash", "admin", "admin") ``` ## Examples * Retrieve all groups ```python stash.admin.groups.list() ``` * Retrieve all users that match a given filter ```python stash.admin.users.list(filter="admin") ``` * Add a user to a group ```python stash.admin.groups.add_user('stash-users', 'admin') ``` * Iterate over all projects (that you have access to) ```python stash.projects.list() ``` * List all the repositories in a given project ```python stash.projects[PROJECT].repos.list() ``` * Create a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests.create('PR_TITLE', 'SOURCE_REF', 'TARGET_REF', 'PR_COMMENT', 'PR_REVIEWERS_LIST')) ``` * List all the commits in a pull request ```python list(stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].commits()) ``` * List all comments of pull request ```python list(stash..projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].activities(fromType='COMMENTED'))) ``` * Delete specific comment ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].delete_comment(COMMENT_ID, COMMENT_VERSION) ``` * Show the diff of a pull request ```python stash.projects[PROJECT].repos[REPO].pull_requests[PULL_REQUEST].diff() ``` * List all branch restrictions for a repo ```python stash.projects[PROJECT].repos[REPO].restricted.list() ``` * List all branch permission entities for a repo ```python stash.projects[PROJECT].repos[REPO].permitted.list() ``` ## Implemented ``` /admin/groups [DELETE, GET, POST] /admin/groups/add-user [POST] /admin/groups/more-members [GET] /admin/groups/more-non-members [GET] /admin/groups/remove-user [POST] /admin/users [GET, POST, DELETE, PUT] /admin/users/add-group [POST] /admin/users/credentials [PUT] /admin/users/more-members [GET] /admin/users/more-non-members [GET] /admin/users/remove-group [POST] /admin/permissions/groups [GET, PUT, DELETE] /admin/permissions/groups/none [GET] /admin/permissions/users [GET, PUT, DELETE] /admin/permissions/users/none [GET] /groups [GET] /projects [POST, GET] /projects/{projectKey} [DELETE, PUT, GET] /projects/{projectKey}/permissions/groups [GET, PUT, DELETE] /projects/{projectKey}/permissions/groups/none [GET] /projects/{projectKey}/permissions/users [GET, PUT, DELETE] /projects/{projectKey}/permissions/users/none [GET] /projects/{projectKey}/permissions/{permission}/all [GET, POST] /projects/{projectKey}/settings/hooks [GET] /projects/{projectKey}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos [POST, GET] /projects/{projectKey}/repos/{repositorySlug} [DELETE, POST, PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/branches [GET, PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/branches/default [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/branches/info/{changesetId} [GET] /projects/{projectKey}/repos/{repositorySlug}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/permissions [GET, POST,DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId} [GET, PUT] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/decline [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/reopen [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch [POST, DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments [POST] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [DELETE] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey} [GET] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled [PUT, DELETE] /projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/tags [GET, POST, DELETE] /build-status/1.0/commits/{commit-hash} [GET, POST] /keys/1.0/projects/{projectKey}/ssh [GET, POST] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh [GET, POST] /ssh/1.0/keys [GET, POST] /sync/latest/projects/{projectKey}/repos/{repositorySlug} [POST] sync/latest/projects/{projectKey}/repos/{repositorySlug}/synchronize [POST] ``` ## Not yet implemented ``` /admin/mail-server [DELETE] /application-properties [GET] /hooks/{hookKey}/avatar [GET] /logs/logger/{loggerName} [GET] /logs/logger/{loggerName}/{levelName} [PUT] /logs/rootLogger [GET] /logs/rootLogger/{levelName} [PUT] /markup/preview [POST] /profile/recent/repos [GET] /projects/{projectKey}/avatar.png [GET, POST] /projects/{projectKey}/repos/{repositorySlug}/recreate [POST] /projects/{projectKey}/repos/{repositorySlug}/browse [GET] /projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/commits/{changesetId:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/files [GET] /projects/{projectKey}/repos/{repositorySlug}/files/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} [PUT, GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path:.*} [GET] /projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants [GET, DELETE, POST] /users [GET, PUT] /users/credentials [PUT] /keys/1.0/projects/{projectKey}/ssh/{keyId} [GET, DELETE] /keys/1.0/projects/{projectKey}/repos/{repositorySlug}/ssh/{keyId} [GET, DELETE] /ssh/1.0/keys [DELETE] /ssh/1.0/keys/{keyId} [DELETE] /ssh/1.0/settings [GET] ``` %prep %autosetup -n stashy-0.7 %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-stashy -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 11 2023 Python_Bot - 0.7-1 - Package Spec generated