Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Makefile updated

+24 -4
+1 -1
Makefile
··· 2 2 # ------------------------------------------------------------------------------ 3 3 PROJECT_NAME=kefi 4 4 IMAGE_ID=registry.dekaside.com/${PROJECT_NAME}/${PROJECT_NAME}-backend 5 - VERSION=`python -c 'import kefi; print(kefi.__version__)'` 5 + VERSION=`cat pyproject.toml | grep 'version = ' | cut -d ' ' -f 3 | cut -d '"' -f 2 | head -n 1` 6 6 7 7 # Common commands to handle the project. 8 8 # ------------------------------------------------------------------------------
+1 -1
docker/Dockerfile
··· 1 - FROM python:3.9-slim-buster 1 + FROM python:3.10-slim-buster 2 2 3 3 RUN apt-get update \ 4 4 && apt-get install -y gcc
+11 -1
kefi/__init__.py
··· 1 - __version__ = "1.0.0" 1 + from pathlib import Path 2 + 3 + from single_source import get_version 4 + 5 + __version__ = get_version(__name__, Path(__file__).parent.parent) or "1.0.0" 6 + __version_info__ = tuple( 7 + [ 8 + int(num) if num.isdigit() else num 9 + for num in __version__.replace("-", ".", 1).split(".") 10 + ] 11 + )
+10 -1
poetry.lock
··· 974 974 use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"] 975 975 976 976 [[package]] 977 + name = "single-source" 978 + version = "0.3.0" 979 + description = "Access to the project version in Python code for PEP 621-style projects" 980 + category = "main" 981 + optional = false 982 + python-versions = ">=3.6,<4.0" 983 + 984 + [[package]] 977 985 name = "six" 978 986 version = "1.16.0" 979 987 description = "Python 2 and 3 compatibility utilities" ··· 1252 1260 [metadata] 1253 1261 lock-version = "1.1" 1254 1262 python-versions = "^3.10" 1255 - content-hash = "423be8060037f158b349e69155f69eaf9f43fbcd4203b3f5db55cd595ed27c0b" 1263 + content-hash = "3de1ef8fa7f1fa256f2923864a5ce3adc1f26678d8c3a4d1de284df38749e8aa" 1256 1264 1257 1265 [metadata.files] 1258 1266 aiodns = [ ··· 1733 1741 {file = "requests-2.28.1-py3-none-any.whl", hash = "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"}, 1734 1742 {file = "requests-2.28.1.tar.gz", hash = "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"}, 1735 1743 ] 1744 + single-source = [] 1736 1745 six = [ 1737 1746 {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, 1738 1747 {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
+1
pyproject.toml
··· 20 20 alembic = "^1.7.4" 21 21 psycopg2-binary = "^2.9.1" 22 22 aiohttp = {version = "^3.8.0", extras = ["speedups"]} 23 + single-source = "^0.3.0" 23 24 24 25 [tool.poetry.dev-dependencies] 25 26 black = "^22.10.0"