kopia lustrzana https://github.com/Langenfeld/py-gitea
proper module and naming
rodzic
933fd1922e
commit
c2c1303406
|
@ -1,6 +1,6 @@
|
|||
from GITEA import *
|
||||
from gitea import *
|
||||
|
||||
gitea = GITEA("https://test-gitea.something", "api-token")
|
||||
gitea = Gitea("https://test-gitea.something", "api-token")
|
||||
|
||||
##create Organization that does exist
|
||||
org = Organization(gitea, "existing-organization")
|
||||
|
|
|
@ -2,9 +2,6 @@ import json
|
|||
import requests
|
||||
import logging
|
||||
|
||||
"""
|
||||
based on https://github.com/m301/py-gitea
|
||||
"""
|
||||
|
||||
class Organization:
|
||||
|
||||
|
@ -102,7 +99,7 @@ class Repository:
|
|||
return Repository(gitea, repoOwner, repoName)
|
||||
|
||||
|
||||
class GITEA():
|
||||
class Gitea():
|
||||
|
||||
"""
|
||||
@:param url: url of Gitea server without .../api/<version>
|
|
@ -0,0 +1,5 @@
|
|||
from gitea.Gitea import Gitea
|
||||
from gitea.Gitea import Repository
|
||||
from gitea.Gitea import User
|
||||
from gitea.Gitea import Organization
|
||||
|
|
@ -0,0 +1 @@
|
|||
requests==2.18.4
|
Ładowanie…
Reference in New Issue