releasing 0.9

This commit is contained in:
Lionel Dricot 2022-03-04 23:56:57 +01:00
parent 42f0f06494
commit 100f69ebe7
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Offpunk History
## 0.5 - Unreleased
## 0.9 - March 05th 2022
- Initial Spartan protocol support
- Http links with content above 20Mo are not downloaded during sync (except when explicitely requested)
- Improving subscriptions with more feedback and better detection

View File

@ -12,7 +12,7 @@
# - Björn Wärmedal <bjorn.warmedal@gmail.com>
# - <jake@rmgr.dev>
_VERSION = "0.4"
_VERSION = "0.9"
import argparse
import cmd
@ -252,6 +252,8 @@ _MIME_HANDLERS = {
# see https://github.com/python/cpython/blob/master/Lib/urllib/parse.py
urllib.parse.uses_relative.append("gemini")
urllib.parse.uses_netloc.append("gemini")
urllib.parse.uses_relative.append("spartan")
urllib.parse.uses_netloc.append("spartan")
global TERM_WIDTH
TERM_WIDTH = 80
@ -1367,8 +1369,8 @@ def looks_like_url(word):
#sometimes, urllib crashed only when requesting the port
port = parsed.port
mailto = word.startswith("mailto:")
start = word.startswith("gemini://") or word.startswith("http://")\
or word.startswith("https://")
scheme = word.split("://")[0]
start = scheme in standard_ports
if not start and not mailto:
return looks_like_url("gemini://"+word)
elif mailto:
@ -1765,7 +1767,6 @@ class GeminiClient(cmd.Cmd):
parts = response.split(" ",maxsplit=1)
code,meta = int(parts[0]),parts[1]
if code == 2:
print("spartan file %s "%meta)
body = fp.read()
if meta.startswith("text"):
body = body.decode("UTF-8")

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='offpunk',
version='0.4',
version='0.9',
description="Offline Command line Gemini client forked from AV-98.",
author="Ploum",
author_email="offpunk@ploum.eu",