Skip to content

Commit 367d843

Browse files
committed
Renamed to gitea_client
1 parent 3335287 commit 367d843

File tree

15 files changed

+54
-53
lines changed

15 files changed

+54
-53
lines changed

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
Master:
2-
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gogs-client.svg?branch=master
2+
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gitea-client.svg?branch=master
33
:alt: Build Status
4-
:target: https://travis-ci.org/unfoldingWord-dev/python-gogs-client
5-
.. image:: https://coveralls.io/repos/github/unfoldingWord-dev/python-gogs-client/badge.svg?branch=master
4+
:target: https://travis-ci.org/unfoldingWord-dev/python-gitea-client
5+
.. image:: https://coveralls.io/repos/github/unfoldingWord-dev/python-gitea-client/badge.svg?branch=master
66
:alt: Coverage
7-
:target: https://coveralls.io/github/unfoldingWord-dev/python-gogs-client?branch=master
7+
:target: https://coveralls.io/github/unfoldingWord-dev/python-gitea-client?branch=master
88

99
Develop:
10-
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gogs-client.svg?branch=develop
10+
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gitea-client.svg?branch=develop
1111
:alt: Build Status
12-
:target: https://travis-ci.org/unfoldingWord-dev/python-gogs-client
13-
.. image:: https://coveralls.io/repos/github/unfoldingWord-dev/python-gogs-client/badge.svg?branch=develop
12+
:target: https://travis-ci.org/unfoldingWord-dev/python-gitea-client
13+
.. image:: https://coveralls.io/repos/github/unfoldingWord-dev/python-gitea-client/badge.svg?branch=develop
1414
:alt: Coverage
15-
:target: https://coveralls.io/github/unfoldingWord-dev/python-gogs-client?branch=develop
15+
:target: https://coveralls.io/github/unfoldingWord-dev/python-gitea-client?branch=develop
1616

1717

18-
python-gogs-client
18+
python-gitea-client
1919
==================
2020

21-
This is a Python client to Gogs servers. The easiest way to install is via ``pip``::
21+
This is a Python client to Gitea servers. The easiest way to install is via ``pip``::
2222

23-
$ pip install gogs_client
23+
$ pip install gitea_client
2424

25-
Documentation for the module can be found `here <http://pythonhosted.org/gogs-client/>`_.
25+
Documentation for the module can be found `here <http://pythonhosted.org/gitea-client/>`_.

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ qthelp:
9191
@echo
9292
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
9393
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
94-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/gogs_client.qhcp"
94+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/gitea_client.qhcp"
9595
@echo "To view the help file:"
96-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/gogs_client.qhc"
96+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/gitea_client.qhc"
9797

9898
.PHONY: applehelp
9999
applehelp:
@@ -110,8 +110,8 @@ devhelp:
110110
@echo
111111
@echo "Build finished."
112112
@echo "To view the help file:"
113-
@echo "# mkdir -p $$HOME/.local/share/devhelp/gogs_client"
114-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/gogs_client"
113+
@echo "# mkdir -p $$HOME/.local/share/devhelp/gitea_client"
114+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/gitea_client"
115115
@echo "# devhelp"
116116

117117
.PHONY: epub

gitea_client/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from gitea_client.auth import Authentication, Token, UsernamePassword
2+
from gitea_client.entities import GogsUser, GogsRepo, GogsBranch, GogsCommit, GogsOrg, GogsTeam
3+
from gitea_client.interface import GogsApi, ApiFailure, NetworkFailure
4+
from gitea_client.updates import GogsUserUpdate, GogsHookUpdate

gogs_client/auth.py renamed to gitea_client/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Various classes for Gogs authentication
33
"""
4-
from gogs_client.entities import json_get
4+
from gitea_client.entities import json_get
55

66

77
class Authentication(object):

gogs_client/entities.py renamed to gitea_client/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class Hook(GogsEntity):
216216
#: Use :data:`id` instead
217217
hook_id = property(lambda self: self.id)
218218

219-
#: The hook's type (gogs, slack, etc.)
219+
#: The hook's type (gitea, gogs, slack, etc.)
220220
#:
221221
#: :type: str
222222
type = attr.ib()

gogs_client/interface.py renamed to gitea_client/interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import requests
22

3-
from gogs_client._implementation.http_utils import RelativeHttpRequestor, append_url
4-
from gogs_client.auth import Token
5-
from gogs_client.entities import GogsUser, GogsRepo, GogsBranch, GogsOrg, GogsTeam
3+
from gitea_client._implementation.http_utils import RelativeHttpRequestor, append_url
4+
from gitea_client.auth import Token
5+
from gitea_client.entities import GogsUser, GogsRepo, GogsBranch, GogsOrg, GogsTeam
66

77

88
class GogsApi(object):
@@ -397,7 +397,7 @@ def create_hook(self, auth, repo_name, hook_type, config, events=None, organizat
397397
398398
:param auth.Authentication auth: authentication object, must be admin-level
399399
:param str repo_name: the name of the repo for which we create the hook
400-
:param str hook_type: The type of webhook, either "gogs" or "slack"
400+
:param str hook_type: The type of webhook, either "gitea", "gogs" or "slack"
401401
:param dict config: Settings for this hook (possible keys are
402402
``"url"``, ``"content_type"``, ``"secret"``)
403403
:param list events: Determines what events the hook is triggered for. Default: ["push"]
File renamed without changes.

gogs_client/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)