Skip to content

Commit 983e600

Browse files
committed
Yet again library making fix
1 parent 0c7c90f commit 983e600

10 files changed

+16
-18
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Locally defined gitWebhook module."""
22

3-
from src import *
3+
from gitWebhook import *
44

55
__all__ = ["webhookBlueprint", "gitWebhookBlueprintABC", "pullerWebhookBlueprint", "functionWebhookBlueprint"]

gitWebhook/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""Python module providing Flask blueprints for handling GitHub and GitLab webhooks."""
2+
3+
from gitWebhook.webhook import webhookBlueprint
4+
from gitWebhook.abstractWebhook import gitWebhookBlueprintABC
5+
from gitWebhook.pullerWebhook import pullerWebhookBlueprint
6+
from gitWebhook.functionWebhook import functionWebhookBlueprint
7+
8+
__all__ = ["webhookBlueprint", "gitWebhookBlueprintABC", "pullerWebhookBlueprint", "functionWebhookBlueprint"]
File renamed without changes.

src/functionWebhook.py renamed to gitWebhook/functionWebhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src.webhook import webhookBlueprint
1+
from gitWebhook.webhook import webhookBlueprint
22
from typing import Callable, Any
33

44
class functionWebhookBlueprint(webhookBlueprint):

src/pullerWebhook.py renamed to gitWebhook/pullerWebhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from logging import Logger
22
from typing import Any
33
from unittest import TestSuite
4-
from src.webhook import webhookBlueprint
4+
from gitWebhook.webhook import webhookBlueprint
55
from subprocess import run
66
from unittest import TestSuite, TestResult
77

src/webhook.py renamed to gitWebhook/webhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from hmac import new as hmacNew
44
from typing import Any
55
from logging import Logger
6-
from src.abstractWebhook import gitWebhookBlueprintABC
6+
from gitWebhook.abstractWebhook import gitWebhookBlueprintABC
77

88
GITHUB_HEADER = "X-Hub-Signature-256"
99

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "gitAppWebhook"
3-
version = "0.1"
3+
version = "0.2"
44
authors = [
55
{ name="TCA", email="[email protected]" },
66
]
@@ -19,6 +19,4 @@ dependencies = [
1919
[project.urls]
2020
Homepage = "https://github.com/TCA166/gitWebhook"
2121

22-
[options]
23-
package_dir = src
2422

src/__init__.py

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

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from flask import Request, request, Flask
3-
from src.webhook import verifyGithubRequest, verifyGitlabRequest, webhookBlueprint
4-
from src.functionWebhook import functionWebhookBlueprint
3+
from gitWebhook.webhook import verifyGithubRequest, verifyGitlabRequest, webhookBlueprint
4+
from gitWebhook.functionWebhook import functionWebhookBlueprint
55
import random
66
from hmac import new as hmacNew
77
from hashlib import sha256

wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src import pullerWebhookBlueprint
1+
from gitWebhook import pullerWebhookBlueprint
22
from flask import Flask
33
import json
44

0 commit comments

Comments
 (0)