initial commit: basicpy project structure
This commit is contained in:
commit
2be428be70
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
*.swp
|
||||
*.egg-info/
|
||||
__pycache__/
|
||||
/.tox/
|
||||
/build/
|
||||
/venv/
|
||||
13
LICENSE
Normal file
13
LICENSE
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Copyright (c) 2025 missytake <missytake@systemli.org>
|
||||
|
||||
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.
|
||||
10
README.md
Normal file
10
README.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Keyserver Bot
|
||||
|
||||
## Setup
|
||||
|
||||
```
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -e .
|
||||
keyserver-bot --help
|
||||
```
|
||||
6
pyproject.toml
Normal file
6
pyproject.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[build-system]
|
||||
requires = [
|
||||
"setuptools>=42",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
51
setup.cfg
Normal file
51
setup.cfg
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[metadata]
|
||||
name = keyserver-bot
|
||||
version = 0.0.1
|
||||
author = missytake
|
||||
author_email = missytake@systemli.org
|
||||
description = A Chatmail bot to query contacts from keys.openpgp.org
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://git.0x90.space/missytake/keyserver-bot
|
||||
project_urls =
|
||||
Bug Tracker = https://git.0x90.space/missytake/keyserver-bot/issues
|
||||
|
||||
[options]
|
||||
package_dir =
|
||||
= src
|
||||
packages = find:
|
||||
python_requires = >=3.11
|
||||
install_requires =
|
||||
deltachat-rpc-client
|
||||
deltachat-rpc-server
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
keyserver-bot = keyserver_bot:main
|
||||
|
||||
[tox:tox]
|
||||
envlist = lint, py311, py312
|
||||
isolated_build = True
|
||||
|
||||
[testenv:lint]
|
||||
skip_install = True
|
||||
deps =
|
||||
black
|
||||
flake8
|
||||
mypy
|
||||
commands =
|
||||
black --check --diff --line-length 120 src tests
|
||||
flake8 src tests
|
||||
mypy --disallow-untyped-defs src tests
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
pytest
|
||||
commands =
|
||||
pytest tests
|
||||
|
||||
[flake8]
|
||||
max_line_length = 120
|
||||
2
src/keyserver_bot/__init__.py
Normal file
2
src/keyserver_bot/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def main() -> None:
|
||||
print("Hello World")
|
||||
3
src/keyserver_bot/__main__.py
Normal file
3
src/keyserver_bot/__main__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from . import main
|
||||
|
||||
main()
|
||||
Loading…
Reference in a new issue