From 7364cd2020cdf469ded5871894810042c053c39e Mon Sep 17 00:00:00 2001 From: papee Date: Tue, 18 Aug 2020 15:00:38 +0200 Subject: [PATCH 1/2] buy bitcoin guide --- zerobin/default_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerobin/default_settings.py b/zerobin/default_settings.py index dd74f85..8b7b8e1 100644 --- a/zerobin/default_settings.py +++ b/zerobin/default_settings.py @@ -9,13 +9,13 @@ PORT = "3255" # Names/links to insert in the footer. # MENU = ( - ("Create paste", "/"), ("Github", "https://github.com/Tygs/0bin"), ("Faq", "/faq/"), # You probably want to keep this # Any link with "mailto:" will be escaped to limit spam, but displayed # correctly to the user using JS. ("Contact", "mailto:your@email.com"), ("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :) + ("How to buy Bitcoin?", "/buy_bitcoin"), # Thanks the authors :) ) # Size limit of the paste content in bytes. Be careful, allowing a size too big can From aa064a572465496ff29a299f5498b3d2a2defb8e Mon Sep 17 00:00:00 2001 From: ksamuel Date: Wed, 19 Aug 2020 11:58:10 +0200 Subject: [PATCH 2/2] Add entry point, remove setup.py, add pyproject.toml, better default_settings --- pyproject.toml | 6 ++++++ setup.cfg | 3 +++ setup.py | 8 -------- zerobin/default_settings.py | 4 ++-- 4 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py 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