diff --git a/pyproject.toml b/pyproject.toml index b7a09c9..0058424 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,13 @@ description = "A python script to collect the server-wide blocklists from Friend authors = ["Tobias Diekershoff"] license = "GNU General Public License v3.0" readme = "README.md" +include = [ + { path = "src/brewserverblocklist" }, +] +packages = [ + { include = "brewserverblocklist", from = "src"}, + { include = "bargparse", from = "src"} +] [tool.poetry.scripts] brewserverblocklist = "brewserverblocklist.brewserverblocklist:main" diff --git a/src/bargparse/__init__.py b/src/bargparse/__init__.py new file mode 100644 index 0000000..f7a0711 --- /dev/null +++ b/src/bargparse/__init__.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python + +# SPDX-FileCopyrightText: 2023 Tobias Diekershoff +# +# SPDX-License-Identifier: GPL-3.0-or-later diff --git a/src/brewserverblocklist/brewserverblocklist.py b/src/brewserverblocklist/brewserverblocklist.py index ca901ce..b6ffa62 100644 --- a/src/brewserverblocklist/brewserverblocklist.py +++ b/src/brewserverblocklist/brewserverblocklist.py @@ -12,7 +12,7 @@ import configparser import sys from os.path import exists import requests -import bargparse +from bargparse.bargparse import MyParser class BrewBlocklist(): """ @@ -157,7 +157,7 @@ def main(): * collect the ingredient * serve the result """ - parser = bargparse.MyParser() + parser = MyParser() parser.add_argument('-c', '--config', dest='configfile', required=True,