Skip to content

Commit 0e5d118

Browse files
committed
Name change
1 parent 367d843 commit 0e5d118

17 files changed

+209
-208
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ install:
88
- pip install -r test_requirements.txt
99
- pip install coveralls
1010
script:
11-
- coverage run --source=gogs_client setup.py test
11+
- coverage run --source=gitea_client setup.py test
1212
after_success:
1313
- coveralls
1414
deploy:
1515
provider: pypi
16-
user: ethantkoenig
16+
user: unfoldingword
1717
password:
1818
secure: A95y2+mtUVlYXCWs8Iz9UsUjlL/H3mmbmru4M7yE96F+JLNHdvvpr6Ih9tL+4dXDluwV7ov+8YfyPGMZzW1FQXI32FBlJ4Q/C5+H+3pzqCIKj1BtdgaXsykIPbm56mZ3VQNXwQDS0ru4WP4LE2pM7dixse+XLB/mS/jU5kBBHRrxXOsx6H1ccZZlJ2aJ1RA56Mas9Yfe5Yd5IVnRpD0/MBqceceKd7CvZGE4XUjZFqsGM5TYuTAYWARQdNZhLEkLQ7pt5B30ZSkffV8ndyaqti9dy3wgSNOQsNnTDdpDlmkteL31Iz9kudCM2bz+GAe+T1ANVJ1xCgh/N3h0IfsJpsrem+9g0fr14gynOYiQfYNd1EKMReTCoRC4jqdcGCMvals9czR8m6JOAsdpSPEnhZihvxU+ASqnidMTr5FFiUAi0WnTB7SAOH29YA4V0ly48ELS3Y5UVl9GpBlh75Wx5J6jvJ+HM/lRFqnPhLVLp7y7sJ8+Z+UYMjK+J1EO9v6B3yb+o2E0IGU8mD4HnlSLe25do5mCHzLHwU8Q5T/DMxuat2MGgd3UAE89klKFH3f1FWSKv7tREiS/bn7Lw9ArFKVhCBIMtwDbF2hWOoQh4orQVYopFCFweKjsXlvcuEMkU8GIAgslcBjo62Ad4Ye0gjeVweO1kG/jOGybb5M4L0c=
1919
on:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Develop:
1616

1717

1818
python-gitea-client
19-
==================
19+
===================
2020

2121
This is a Python client to Gitea servers. The easiest way to install is via ``pip``::
2222

docs/auth.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authentication
22
==============
33

4-
.. py:currentmodule:: gogs_client.auth
4+
.. py:currentmodule:: gitea_client.auth
55
66
.. autoclass:: Authentication()
77
:members:

docs/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# gogs_client documentation build configuration file, created by
3+
# gitea_client documentation build configuration file, created by
44
# sphinx-quickstart on Mon Aug 8 21:56:44 2016.
55
#
66
# This file is execfile()d with the current directory set to its
@@ -52,7 +52,7 @@
5252
master_doc = 'index'
5353

5454
# General information about the project.
55-
project = u'gogs_client'
55+
project = u'gitea_client'
5656
copyright = u'2016, unfoldingWord'
5757
author = u'unfoldingWord'
5858

@@ -137,7 +137,7 @@
137137
# The name for this set of Sphinx documents.
138138
# "<project> v<release> documentation" by default.
139139
#
140-
# html_title = u'gogs_client v1.0.1'
140+
# html_title = u'gitea_client v1.0.1'
141141

142142
# A shorter title for the navigation bar. Default is the same as html_title.
143143
#
@@ -237,7 +237,7 @@
237237
# html_search_scorer = 'scorer.js'
238238

239239
# Output file base name for HTML help builder.
240-
htmlhelp_basename = 'gogs_clientdoc'
240+
htmlhelp_basename = 'gitea_clientdoc'
241241

242242
# -- Options for LaTeX output ---------------------------------------------
243243

@@ -263,7 +263,7 @@
263263
# (source start file, target name, title,
264264
# author, documentclass [howto, manual, or own class]).
265265
latex_documents = [
266-
(master_doc, 'gogs_client.tex', u'gogs\\_client Documentation',
266+
(master_doc, 'gitea_client.tex', u'gitea\\_client Documentation',
267267
u'unfoldingWord', 'manual'),
268268
]
269269

@@ -299,7 +299,7 @@
299299
# One entry per manual page. List of tuples
300300
# (source start file, name, description, authors, manual section).
301301
man_pages = [
302-
(master_doc, 'gogs_client', u'gogs_client Documentation',
302+
(master_doc, 'gitea_client', u'gitea_client Documentation',
303303
[author], 1)
304304
]
305305

@@ -314,8 +314,8 @@
314314
# (source start file, target name, title, author,
315315
# dir menu entry, description, category)
316316
texinfo_documents = [
317-
(master_doc, 'gogs_client', u'gogs_client Documentation',
318-
author, 'gogs_client', 'One line description of project.',
317+
(master_doc, 'gitea_client', u'gitea_client Documentation',
318+
author, 'gitea_client', 'One line description of project.',
319319
'Miscellaneous'),
320320
]
321321

@@ -349,7 +349,7 @@ def maybe_skip_member(app, what, name, obj, skip, options):
349349
whitelisted_names = []
350350
if name in whitelisted_names:
351351
return False
352-
whitelisted_init_classes = ["GogsApi", "Token", "UsernamePassword", "Builder"]
352+
whitelisted_init_classes = ["GiteaApi", "Token", "UsernamePassword", "Builder"]
353353
if name == "__init__":
354354
if hasattr(obj, 'im_class'):
355355
return obj.im_class.__name__ not in whitelisted_init_classes

docs/entities.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
Gogs Entities
2-
=============
1+
Gitea Entities
2+
==============
33

4-
This page documents the classes provided by ``gogs_client`` module that represent entities
5-
(e.g. users, repositories) in a `Gogs <https://gogs.io/>`_ server.
4+
This page documents the classes provided by ``gitea_client`` module that represent entities
5+
(e.g. users, repositories) in a `Gitea <https://gitea.io/>`_ server.
66

7-
.. py:currentmodule:: gogs_client.entities
7+
.. py:currentmodule:: gitea_client.entities
88
9-
GogsUser
10-
--------
9+
GiteaUser
10+
---------
1111

12-
.. autoclass:: gogs_client.entities::GogsUser()
12+
.. autoclass:: gitea_client.entities::GiteaUser()
1313
:members:
1414

15-
GogsRepo
16-
--------
15+
GiteaRepo
16+
---------
1717

18-
.. autoclass:: gogs_client.entities::GogsRepo()
18+
.. autoclass:: gitea_client.entities::GiteaRepo()
1919
:members:
2020

21-
.. autoclass:: gogs_client.entities::GogsRepo.Urls()
21+
.. autoclass:: gitea_client.entities::GiteaRepo.Urls()
2222
:members:
2323

24-
.. autoclass:: gogs_client.entities::GogsRepo.Permissions()
24+
.. autoclass:: gitea_client.entities::GiteaRepo.Permissions()
2525
:members:
2626

27-
.. autoclass:: gogs_client.entities::GogsRepo.Hook()
27+
.. autoclass:: gitea_client.entities::GiteaRepo.Hook()
2828
:members:
2929

30-
.. autoclass:: gogs_client.entities::GogsRepo.DeployKey()
30+
.. autoclass:: gitea_client.entities::GiteaRepo.DeployKey()
3131
:members:
3232

33-
GogsOrg
34-
-------
33+
GiteaOrg
34+
--------
3535

36-
.. autoclass:: gogs_client.entities::GogsOrg()
36+
.. autoclass:: gitea_client.entities::GiteaOrg()
3737
:members:
3838

39-
GogsTeam
40-
--------
39+
GiteaTeam
40+
---------
4141

42-
.. autoclass:: gogs_client.entities::GogsTeam()
42+
.. autoclass:: gitea_client.entities::GiteaTeam()
4343
:members:
4444

45-
GogsBranch
46-
----------
45+
GiteaBranch
46+
-----------
4747

48-
.. autoclass:: gogs_client.entities::GogsBranch()
48+
.. autoclass:: gitea_client.entities::GiteaBranch()
4949
:members:
5050

51-
GogsCommit
52-
----------
51+
GiteaCommit
52+
-----------
5353

54-
.. autoclass:: gogs_client.entities::GogsCommit()
54+
.. autoclass:: gitea_client.entities::GiteaCommit()
5555
:members:

docs/examples.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Example 1: Retrieving a repository
66

77
Below is an example illustrating how to retrieve information about a repository::
88

9-
import gogs_client
9+
import gitea_client
1010

11-
token = gogs_client.Token("my_token")
11+
token = gitea_client.Token("my_token")
1212
username = "username" # username of owner of repo
1313
repository_name = "repo_name"
1414

15-
api = GogsApi("https://try.gogs.io/")
15+
api = GiteaApi("https://try.gitea.io/")
1616

1717
if not api.repo_exists(token, username, repository_name):
1818
print("Repository does not exist")
@@ -29,20 +29,20 @@ Example 2: Updating a user
2929

3030
Below is an example demonstrating how to update a user (requires admin privileges)::
3131

32-
import gogs_client
32+
import gitea_client
3333

3434
login_name = "my_login"
3535
user_email = "[email protected]"
3636

37-
update = gogs_client.GogsUserUpdate.Builder(login_name, user_email)\
37+
update = gitea_client.GiteaUserUpdate.Builder(login_name, user_email)\
3838
.set_full_name("New Full Name")\
3939
.set_password("New Password")\
4040
.set_admin(False)\ # set the updated user as non-admin
4141
.build()
4242

43-
api = gogs_client.GogsApi("https://try.gogs.io/")
43+
api = gitea_client.GiteaApi("https://try.gitea.io/")
4444
api.update_user(
45-
gogs_client.Token("my_token"), # must be admin
45+
gitea_client.Token("my_token"), # must be admin
4646
"username_to_update",
4747
update)
4848

@@ -52,11 +52,11 @@ Example 3: Creating a token
5252

5353
Below is an example illustrating how to create a token::
5454

55-
import gogs_client
55+
import gitea_client
5656

57-
api = gogs_client.GogsApi("https://try.gogs.io/")
57+
api = gitea_client.GiteaApi("https://try.gitea.io/")
5858

59-
auth = gogs_client.UsernamePassword("username", "password")
59+
auth = gitea_client.UsernamePassword("username", "password")
6060
token = api.create_token(auth, "my_token")
6161

6262
print("token: {}, name: {}".format(token.token, token.name))

docs/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
.. gogs_client documentation master file, created by
1+
.. gitea_client documentation master file, created by
22
sphinx-quickstart on Mon Aug 8 21:56:44 2016.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
gogs_client
7-
===========
6+
gitea_client
7+
============
88

9-
``gogs_client`` is a Python library that acts as a client to a `Gogs <https://gogs.io/>`_ server
9+
``gitea_client`` is a Python library that acts as a client to a `Gitea <https://gitea.io/>`_ server
1010

1111

1212
.. toctree::
@@ -24,6 +24,6 @@ Installation
2424

2525
The easiest way to install is via ``pip``::
2626

27-
$ pip install gogs_client
27+
$ pip install gitea_client
2828

29-
You can also download the source from `Github <https://github.com/unfoldingWord-dev/python-gogs-client>`_.
29+
You can also download the source from `Github <https://github.com/unfoldingWord-dev/python-gitea-client>`_.

docs/interface.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Interface
22
=========
33

4-
.. py:currentmodule:: gogs_client.interface
4+
.. py:currentmodule:: gitea_client.interface
55
6-
.. autoclass:: GogsApi
6+
.. autoclass:: GiteaApi
77
:members:
88

99
.. autoexception:: ApiFailure

docs/make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ if "%1" == "qthelp" (
129129
echo.
130130
echo.Build finished; now you can run "qcollectiongenerator" with the ^
131131
.qhcp project file in %BUILDDIR%/qthelp, like this:
132-
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\gogs_client.qhcp
132+
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\gitea_client.qhcp
133133
echo.To view the help file:
134-
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\gogs_client.ghc
134+
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\gitea_client.ghc
135135
goto end
136136
)
137137

docs/updates.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Updates
22
=======
33

4-
.. py:currentmodule:: gogs_client.updates
4+
.. py:currentmodule:: gitea_client.updates
55
6-
.. autoclass:: GogsUserUpdate()
6+
.. autoclass:: GiteaUserUpdate()
77
:members:
88

9-
.. autoclass:: gogs_client.updates::GogsUserUpdate.Builder()
9+
.. autoclass:: gitea_client.updates::GiteaUserUpdate.Builder()
1010
:members:
1111

12-
.. autoclass:: GogsHookUpdate()
12+
.. autoclass:: GiteaHookUpdate()
1313
:members:
1414

15-
.. autoclass:: gogs_client.updates::GogsHookUpdate.Builder()
15+
.. autoclass:: gitea_client.updates::GiteaHookUpdate.Builder()
1616
:members:

0 commit comments

Comments
 (0)