[misc] Cleanup python packaging
This commit is contained in:
parent
fb543cffb9
commit
4c110e2c71
5
backend/README.md
Normal file
5
backend/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Kibicara backend
|
||||
|
||||
Kibicara relays messages between different platforms (= social networks).
|
||||
This is just the backend. For info about the whole project see [our git
|
||||
repo](https://git.0x90.space/ticketfrei/ticketfrei3).
|
6
backend/pyproject.toml
Normal file
6
backend/pyproject.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[build-system]
|
||||
requires = [
|
||||
"setuptools>=42",
|
||||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
70
backend/setup.cfg
Normal file
70
backend/setup.cfg
Normal file
|
@ -0,0 +1,70 @@
|
|||
[metadata]
|
||||
name = kibicara
|
||||
version = 0.1.0
|
||||
author = 0x90.space
|
||||
author_email = people@schleuder.0x90.space
|
||||
description = distribute messages across different social media
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://git.0x90.space/ticketfrei/ticketfrei3
|
||||
project_urls =
|
||||
Bug Tracker = https://git.0x90.space/ticketfrei/ticketfrei3/issues
|
||||
classifiers =
|
||||
Programming Language :: Python :: 3
|
||||
License :: Public Domain
|
||||
|
||||
[options]
|
||||
package_dir =
|
||||
= src
|
||||
packages = find:
|
||||
python_requires = >=3.10
|
||||
install_requires =
|
||||
aiofiles
|
||||
aiogram
|
||||
aiosqlite
|
||||
argon2_cffi
|
||||
fastapi
|
||||
httpx
|
||||
hypercorn
|
||||
ormantic @ https://github.com/dl6tom/ormantic/tarball/master#egg=ormantic-0.0.32
|
||||
passlib
|
||||
peony-twitter[all]
|
||||
pynacl
|
||||
python-multipart
|
||||
pytoml
|
||||
requests
|
||||
scrypt
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
kibicara = kibicara.kibicara:Main
|
||||
kibicara_mda = kibicara.platforms.email.mda:Main
|
||||
|
||||
[tox:tox]
|
||||
envlist = lint, py310
|
||||
isolated_build = True
|
||||
|
||||
[testenv:lint]
|
||||
skip_install = True
|
||||
deps =
|
||||
black
|
||||
flake8
|
||||
mypy
|
||||
commands =
|
||||
black -S --check --diff src tests
|
||||
flake8 src tests
|
||||
# not yet
|
||||
#mypy src tests
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
pytest
|
||||
pytest-asyncio
|
||||
commands =
|
||||
pytest tests
|
||||
|
||||
[flake8]
|
||||
max_line_length = 88
|
|
@ -1,34 +0,0 @@
|
|||
from setuptools import find_packages, setup
|
||||
|
||||
setup(
|
||||
name='kibicara',
|
||||
version='0.1.0',
|
||||
description='distribute messages across different social media',
|
||||
url='https://github.com/acipm/kibicara',
|
||||
license='0BSD',
|
||||
packages=find_packages(),
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'kibicara=kibicara.kibicara:Main',
|
||||
'kibicara_mda=kibicara.platforms.email.mda:Main',
|
||||
]
|
||||
},
|
||||
python_requires='>=3.8',
|
||||
install_requires=[
|
||||
'aiofiles',
|
||||
'aiogram',
|
||||
'aiosqlite',
|
||||
'argon2_cffi',
|
||||
'fastapi',
|
||||
'hypercorn',
|
||||
'ormantic @ https://github.com/dl6tom/ormantic/tarball/master#egg=ormantic-0.0.32',
|
||||
'passlib',
|
||||
'peony-twitter[all]',
|
||||
'pynacl',
|
||||
'python-multipart',
|
||||
'pytoml',
|
||||
'requests',
|
||||
'scrypt',
|
||||
'httpx',
|
||||
],
|
||||
)
|
0
backend/tests/tests_core/__init__.py
Normal file
0
backend/tests/tests_core/__init__.py
Normal file
0
backend/tests/tests_email/__init__.py
Normal file
0
backend/tests/tests_email/__init__.py
Normal file
0
backend/tests/tests_telegram/__init__.py
Normal file
0
backend/tests/tests_telegram/__init__.py
Normal file
0
backend/tests/tests_twitter/__init__.py
Normal file
0
backend/tests/tests_twitter/__init__.py
Normal file
|
@ -1,25 +0,0 @@
|
|||
[tox]
|
||||
envlist = py310, flake8, black, pytest
|
||||
|
||||
[testenv]
|
||||
deps = .
|
||||
|
||||
[testenv:flake8]
|
||||
deps = flake8
|
||||
commands =
|
||||
flake8 kibicara tests
|
||||
|
||||
[testenv:black]
|
||||
deps = black
|
||||
commands =
|
||||
black -S --check --diff kibicara tests
|
||||
|
||||
[testenv:pytest]
|
||||
deps =
|
||||
pytest
|
||||
pytest-asyncio
|
||||
commands =
|
||||
pytest tests
|
||||
|
||||
[flake8]
|
||||
max_line_length = 88
|
Loading…
Reference in a new issue