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

View File

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

View File

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

View File

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