1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Add entry point, remove setup.py, add pyproject.toml, better default_settings

This commit is contained in:
ksamuel 2020-08-19 11:58:10 +02:00
parent ed12243d67
commit aa064a5724
4 changed files with 11 additions and 10 deletions

6
pyproject.toml Normal file
View File

@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
"wheel",
]
build-backend = "setuptools.build_meta"

View File

@ -25,3 +25,6 @@ install_requires =
* = static/img/*, static/css/*, static/js/*, view/*
hello = *.msg
[options.entry_points]
console_scripts =
zerobin = zerobin.cli:main

View File

@ -1,8 +0,0 @@
#!/usr/bin/env python
from setuptools import setup
setup()

View File

@ -1,6 +1,6 @@
# Get error messages and auto reload.
# Don't set this to True in production
DEBUG = True
DEBUG = False
# Port and host for the embedded python server
HOST = "127.0.0.1"
@ -20,7 +20,7 @@ MENU = (
# Size limit of the paste content in bytes. Be careful, allowing a size too big can
# slow down the user's browser
MAX_SIZE = 1024 * 600
MAX_SIZE = 1024 * 1000
# Display a tiny counter for pastes created.
DISPLAY_COUNTER = True