fussing with user-facing update text
parent
a0e1800ef5
commit
e3669b8135
|
@ -9,7 +9,6 @@ TO-DO:
|
||||||
-and make a couple more custom stylesheets
|
-and make a couple more custom stylesheets
|
||||||
-replying to entries??
|
-replying to entries??
|
||||||
-direct mail to author
|
-direct mail to author
|
||||||
-paginate entry/neighbor list
|
|
||||||
-make a nicer entry view wrapper
|
-make a nicer entry view wrapper
|
||||||
-maybe with a box? and a nicer feed view?
|
-maybe with a box? and a nicer feed view?
|
||||||
|
|
||||||
|
@ -20,12 +19,11 @@ TO-DO:
|
||||||
-shortcut to most recent feels, writing entry, seeing own entry
|
-shortcut to most recent feels, writing entry, seeing own entry
|
||||||
-#hashtags
|
-#hashtags
|
||||||
-rainbow menu selection
|
-rainbow menu selection
|
||||||
-break out hardcoded globals into config files
|
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
CHANGELOG:
|
CHANGELOG:
|
||||||
ver 0.9.3
|
ver 0.9.3 (by ~vilmibm)
|
||||||
-packaging
|
-packaging
|
||||||
-easier to contribute to
|
-easier to contribute to
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -4,7 +4,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='ttbp',
|
name='ttbp',
|
||||||
version='0.9.3',
|
version='0.10.1',
|
||||||
description='command line social blogging tool used on tilde.town',
|
description='command line social blogging tool used on tilde.town',
|
||||||
url='https://github.com/modgethanc/ttbp',
|
url='https://github.com/modgethanc/ttbp',
|
||||||
author='~endorphant',
|
author='~endorphant',
|
||||||
|
|
|
@ -81,6 +81,6 @@ __________________________________________________________
|
||||||
| ____ ____ ____ _ ____ ____ _ _ ____ _ _ _ ____ |
|
| ____ ____ ____ _ ____ ____ _ _ ____ _ _ _ ____ |
|
||||||
| |___ |___ |___ | [__ |___ |\ | | __ | |\ | |___ |
|
| |___ |___ |___ | [__ |___ |\ | | __ | |\ | |___ |
|
||||||
| | |___ |___ |___ ___] |___ | \| |__] | | \| |___ |
|
| | |___ |___ |___ ___] |___ | \| |__] | | \| |___ |
|
||||||
| ver 0.10.0 (almost stable) |
|
| ver 0.10.0 (now with gophers) |
|
||||||
|__________________________________________________________|
|
|__________________________________________________________|
|
||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
|
@ -47,7 +47,6 @@ def publish_gopher(gopher_path, entry_filenames):
|
||||||
"""This function (re)generates a user's list of feels posts in their gopher
|
"""This function (re)generates a user's list of feels posts in their gopher
|
||||||
directory and their gophermap."""
|
directory and their gophermap."""
|
||||||
entry_filenames = entry_filenames[:] # force a copy since this might be shared state in core.py
|
entry_filenames = entry_filenames[:] # force a copy since this might be shared state in core.py
|
||||||
#entry_filenames.reverse()
|
|
||||||
ttbp_gopher = os.path.join(
|
ttbp_gopher = os.path.join(
|
||||||
os.path.expanduser('~/public_gopher'),
|
os.path.expanduser('~/public_gopher'),
|
||||||
gopher_path)
|
gopher_path)
|
||||||
|
|
44
ttbp/ttbp.py
44
ttbp/ttbp.py
|
@ -49,7 +49,7 @@ from . import chatter
|
||||||
from . import gopher
|
from . import gopher
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
__version__ = "0.9.3"
|
__version__ = "0.10.1"
|
||||||
__author__ = "endorphant <endorphant@tilde.town)"
|
__author__ = "endorphant <endorphant@tilde.town)"
|
||||||
|
|
||||||
p = inflect.engine()
|
p = inflect.engine()
|
||||||
|
@ -407,7 +407,7 @@ def setup():
|
||||||
|
|
||||||
# gopher opt-in
|
# gopher opt-in
|
||||||
SETTINGS.update({'gopher': gopher.select_gopher()})
|
SETTINGS.update({'gopher': gopher.select_gopher()})
|
||||||
redraw('opting into gopher: ' + str(SETTINGS['gopher']))
|
#redraw('opting into gopher: ' + str(SETTINGS['gopher']))
|
||||||
# TODO for now i'm hardcoding where people's gopher stuff is generated. if
|
# TODO for now i'm hardcoding where people's gopher stuff is generated. if
|
||||||
# there is demand for this to be configurable we can expose that.
|
# there is demand for this to be configurable we can expose that.
|
||||||
gopher.setup_gopher('feels')
|
gopher.setup_gopher('feels')
|
||||||
|
@ -664,6 +664,10 @@ def show_credits():
|
||||||
ttbp was written by ~endorphant in python. the codebase is
|
ttbp was written by ~endorphant in python. the codebase is
|
||||||
publicly available on github at https://github.com/modgethanc/ttbp
|
publicly available on github at https://github.com/modgethanc/ttbp
|
||||||
|
|
||||||
|
other contributors:
|
||||||
|
~vilmibm, packaging help and gopher support
|
||||||
|
~sanqui, the bug swatter
|
||||||
|
|
||||||
for the full changelog, see ~endorphant/projects/ttbp/changelog.txt
|
for the full changelog, see ~endorphant/projects/ttbp/changelog.txt
|
||||||
|
|
||||||
if you have ideas for ttbp, you are welcome to contact me to discuss them;
|
if you have ideas for ttbp, you are welcome to contact me to discuss them;
|
||||||
|
@ -1024,9 +1028,11 @@ def switch_build(ver):
|
||||||
ver = ver[0:-1]
|
ver = ver[0:-1]
|
||||||
|
|
||||||
# write user versionfile
|
# write user versionfile
|
||||||
|
'''
|
||||||
print("\nswitching you over to the "+build+" version...\n")
|
print("\nswitching you over to the "+build+" version...\n")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print("...")
|
print("...")
|
||||||
|
'''
|
||||||
versionFile = os.path.join(config.PATH, "version")
|
versionFile = os.path.join(config.PATH, "version")
|
||||||
open(versionFile, "w").write(ver)
|
open(versionFile, "w").write(ver)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
@ -1063,7 +1069,7 @@ def update_version():
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(2)
|
time.sleep(1)
|
||||||
|
|
||||||
userVersion = ""
|
userVersion = ""
|
||||||
|
|
||||||
|
@ -1113,6 +1119,21 @@ def update_version():
|
||||||
ttbprc.write(json.dumps(SETTINGS, sort_keys=True, indent=2, separators=(',',':')))
|
ttbprc.write(json.dumps(SETTINGS, sort_keys=True, indent=2, separators=(',',':')))
|
||||||
ttbprc.close()
|
ttbprc.close()
|
||||||
|
|
||||||
|
# from earlier than 0.10.1
|
||||||
|
|
||||||
|
if int(userVersion.split(".")[1]) < 10:
|
||||||
|
# select gopher
|
||||||
|
print("[ NEW FEATURE ]")
|
||||||
|
print("""
|
||||||
|
* thanks to help from ~vilmibm, ttbp now supports publishing to gopher!
|
||||||
|
* if you enable gopher publishing, feels will automatically publish to
|
||||||
|
gopher://tilde.town/1/~"""+config.USER+"""/feels
|
||||||
|
|
||||||
|
""")
|
||||||
|
SETTINGS.update({'gopher': gopher.select_gopher()})
|
||||||
|
print("opting into gopher: " + str(SETTINGS['gopher']))
|
||||||
|
gopher.setup_gopher('feels')
|
||||||
|
|
||||||
# increment user versionfile
|
# increment user versionfile
|
||||||
open(versionFile, "w").write(__version__)
|
open(versionFile, "w").write(__version__)
|
||||||
print("""
|
print("""
|
||||||
|
@ -1120,11 +1141,11 @@ you're all good to go, """+chatter.say("friend")+"""! please contact ~endorphant
|
||||||
somehing strange happened to you during this update.
|
somehing strange happened to you during this update.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
'''
|
||||||
# TODO these conditionals will need to change if we increment the Y level
|
# TODO these conditionals will need to change if we increment the Y level
|
||||||
# to 10.
|
# to 10.
|
||||||
|
|
||||||
# show patch notes
|
# show patch notes
|
||||||
#if userVersion != "0.9.0" and userVersion != "0.9.0b":
|
|
||||||
if userVersion[0:5] < "0.9.0":
|
if userVersion[0:5] < "0.9.0":
|
||||||
# version 0.9.0 patch notes:
|
# version 0.9.0 patch notes:
|
||||||
print("""
|
print("""
|
||||||
|
@ -1152,14 +1173,25 @@ ver 0.9.2 features:
|
||||||
""")
|
""")
|
||||||
if userVersion[0:5] < "0.9.3":
|
if userVersion[0:5] < "0.9.3":
|
||||||
# version 0.9.3 patch notes
|
# version 0.9.3 patch notes
|
||||||
print()
|
|
||||||
print("""
|
print("""
|
||||||
version 0.9.3 features:
|
version 0.9.3 features:
|
||||||
* ttbp is now packaged, making it easier to contribute to.
|
* ttbp is now packaged, making it easier to contribute to.
|
||||||
* things should otherwise be the same!
|
* things should otherwise be the same!
|
||||||
* check out https://github.com/modgethanc/ttbp if you'd like to contribute.
|
* check out https://github.com/modgethanc/ttbp if you'd like to contribute.
|
||||||
* takes advantage of new /var/global
|
* takes advantage of new /var/global
|
||||||
""".lstrip())
|
""".lstrip())
|
||||||
|
#if userVersion[0:5] < "0.10.1":
|
||||||
|
# todo: write a better updating function
|
||||||
|
if 1:
|
||||||
|
# version 0.10.1 patch notes
|
||||||
|
print("""
|
||||||
|
|
||||||
|
~[version 0.10.1 features]~
|
||||||
|
* thanks to help from ~vilmibm, ttbp now supports publishing to gopher!
|
||||||
|
* if you enable gopher publishing, feels will automatically publish to
|
||||||
|
gopher://tilde.town/1/~{user}/feels
|
||||||
|
""".lstrip())
|
||||||
|
'''
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue