fix packaging

This commit is contained in:
Ben Harris 2019-07-22 15:58:02 -04:00
parent 476f2c231a
commit 4e198eaa9d
5 changed files with 13 additions and 18 deletions

3
MANIFEST.in Normal file
View File

@ -0,0 +1,3 @@
include ttbp/config/defaults/*.txt
include ttbp/config/defaults/style.css
include doc/manual.html

View File

@ -15,7 +15,7 @@ setup(
'License :: OSI Approved :: MIT License',
],
keywords='blog',
packages=['ttbp'],
packages=setuptools.find_packages(),
install_requires = [
'inflect==0.2.5',
'mistune==0.8.1',
@ -24,9 +24,9 @@ setup(
],
include_package_data = True,
entry_points = {
'console_scripts': [
'feels = ttbp.ttbp:main',
'ttbp = ttbp.ttbp:main',
]
'console_scripts': [
'feels = ttbp.ttbp:main',
'ttbp = ttbp.ttbp:main',
]
},
)

View File

@ -43,10 +43,7 @@ import re
import mistune
import json
import chatter
import config
import gopher
import util
from ttbp import config, chatter, gopher, util
FEED = os.path.join("/home", "ben", "public_html", "ttbp", "index.html")
SETTINGS = {}

View File

@ -6,8 +6,7 @@ import os
import time
import subprocess
import util
import config
from ttbp import util, config
GOPHER_PROMPT = """

View File

@ -47,11 +47,7 @@ from six.moves import input
import inflect
import config
import core
import chatter
import gopher
import util
from ttbp import config, core, chatter, gopher, util
__version__ = "0.12.2"
__author__ = "endorphant <endorphant@tilde.town)"
@ -226,7 +222,7 @@ def check_init():
print("\n\n")
if os.path.exists(os.path.join(os.path.expanduser("~"),".ttbp")):
if config.USER == "endorphant":
if config.USER == "ben":
print("hey boss! :D\n")
else:
print("{greeting}, {user}".format(greeting=chatter.say("greet"),
@ -589,7 +585,7 @@ def main_menu():
redraw()
show_credits()
elif choice == '9':
subprocess.call(["lynx", os.path.join(config.INSTALL_PATH, "..", "doc", "manual.html")])
subprocess.call(["lynx", "https://tilde.wiki/ttbp"])
redraw()
elif choice in QUITS:
return stop()