From 327ff016daf6c4dba55f43adc87e65c9110da198 Mon Sep 17 00:00:00 2001 From: mousebot Date: Thu, 23 Apr 2020 17:43:21 -0300 Subject: [PATCH] fns fns! & clean up & clean up output too. --- README.md | 5 ----- mkv_this/mkv_this.py | 10 +++++----- setup.py | 4 ++-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e165c9b..59dbaa9 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,6 @@ to do this you need `python3` and `pip`. if you don't have them, install them th if you get sth like `ModuleNotFound error: No module named 'modulename'`, just run `pip install modulename` to get the missing module. -### repository - -if you are reading this on pypi.org, the repo is here: -https://git.disroot.org/mousebot/mkv-this. - ### macos it seems to run on macos too. diff --git a/mkv_this/mkv_this.py b/mkv_this/mkv_this.py index 5754bcb..fcd03a1 100755 --- a/mkv_this/mkv_this.py +++ b/mkv_this/mkv_this.py @@ -94,12 +94,12 @@ def main(): def writesent(tmodel): return output.write(str(tmodel.make_sentence( tries=2000, max_overlap_ratio=args.overlap, - max_chars=args.length)) + '\n \n') + max_chars=args.length)) + '\n\n') def writeshortsent(tmodel): return output.write(str(tmodel.make_short_sentence( tries=2000, max_overlap_ratio=args.overlap, - max_chars=args.length)) + '\n \n') + max_chars=args.length)) + '\n\n') fnf = 'error: file not found. please provide a path to a really-existing \ file!' @@ -116,7 +116,7 @@ def main(): else: text = read(args.infile) # read combine file: - ctext = read(args.combine) + ctext = read(args.combine) except FileNotFoundError: print(fnf) sys.exit() @@ -157,7 +157,7 @@ def main(): # normal sentence: else: writesent(combo_model) - output.write(str(' \n \n * \n \n')) + output.write(str('*\n\n')) # add a star between each appended set. output.close() @@ -192,7 +192,7 @@ def main(): # normal sentence: else: writesent(text_model) - output.write(str(' \n \n * \n \n')) + output.write(str('*\n\n')) # add a star between each appended set. output.close() diff --git a/setup.py b/setup.py index 9c33a41..d496a27 100644 --- a/setup.py +++ b/setup.py @@ -7,11 +7,11 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup(name='mkv-this', - version='0.1.29', + version='0.1.30', description='cli wrapper for markovify: take a text file, markovify, output the results to a text file.', long_description=long_description, long_description_content_type='text/markdown', - url='', + url='https://git.disroot.org/mousebot/mkv-this', author='mousebot', author_email='martianhiatus@riseup.net', license='AGPLv3',