proper module and naming

pull/1/head
Langenfeld 2018-11-14 13:53:24 +01:00
rodzic 933fd1922e
commit c2c1303406
4 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -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")

Wyświetl plik

@ -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>

Wyświetl plik

@ -0,0 +1,5 @@
from gitea.Gitea import Gitea
from gitea.Gitea import Repository
from gitea.Gitea import User
from gitea.Gitea import Organization

Wyświetl plik

@ -0,0 +1 @@
requests==2.18.4