diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9ac9b91 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools >= 40.9.0", + "wheel", +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index a7142a6..cfde55b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,3 +25,6 @@ install_requires = * = static/img/*, static/css/*, static/js/*, view/* hello = *.msg +[options.entry_points] +console_scripts = + zerobin = zerobin.cli:main diff --git a/setup.py b/setup.py deleted file mode 100644 index cc99f67..0000000 --- a/setup.py +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python - - -from setuptools import setup - - -setup() - diff --git a/zerobin/default_settings.py b/zerobin/default_settings.py index 8b7b8e1..df0448f 100644 --- a/zerobin/default_settings.py +++ b/zerobin/default_settings.py @@ -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