commit 616b7fced939c066c2194c96be5aa508d37503ba Author: missytake Date: Fri May 19 19:03:34 2023 +0200 Set up basic project structure diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92b2ed8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.swp +*.egg-info/ +__pycache__/ +/.tox/ +/build/ +/venv/ +/env/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f062ea2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2023 missytake + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f887c0 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Verification Bot + +This Delta Chat bot is useful if your device is not always online. +It allows you to generate and send out verification QR codes. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..374b58c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..157c671 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,54 @@ +[metadata] +name = verificationbot +version = 0.0.1 +author = missytake +author_email = missytake@systemli.org +description = A Delta Chat bot to generate and send out verification QR codes +long_description = file: README.md +long_description_content_type = text/markdown +url = https://git.0x90.space/missytake/verifcationbot +project_urls = + Bug Tracker = https://git.0x90.space/missytake/verifcationbot/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: ISC License (ISCL) + Operating System :: OS Independent + +[options] +package_dir = + = src +packages = find: +python_requires = >=3.8 +#install_requires = +# dependency + +[options.packages.find] +where = src + +[options.entry_points] +console_scripts = + verificationbot = verificationbot:main + +[tox:tox] +envlist = lint, py38, py39, py310 +isolated_build = True + +[testenv:lint] +skip_install = True +deps = + black + flake8 + mypy +commands = + black --check --diff src tests + flake8 src tests + mypy --disallow-untyped-defs src tests + +[testenv] +deps = + pytest +commands = + pytest tests + +[flake8] +max_line_length = 88 diff --git a/src/verificationbot/__init__.py b/src/verificationbot/__init__.py new file mode 100644 index 0000000..9169e98 --- /dev/null +++ b/src/verificationbot/__init__.py @@ -0,0 +1,2 @@ +def main() -> None: + print("Hello World") diff --git a/src/verificationbot/__main__.py b/src/verificationbot/__main__.py new file mode 100644 index 0000000..8273c4f --- /dev/null +++ b/src/verificationbot/__main__.py @@ -0,0 +1,3 @@ +from . import main + +main() diff --git a/tests/test_basicpy.py b/tests/test_basicpy.py new file mode 100644 index 0000000..a3ba9dc --- /dev/null +++ b/tests/test_basicpy.py @@ -0,0 +1,2 @@ +def test_basicpy() -> None: + pass