From 4e198eaa9dba35759dd66069cbfb528f3367e91f Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 22 Jul 2019 15:58:02 -0400 Subject: [PATCH] fix packaging --- MANIFEST.in | 3 +++ setup.py | 10 +++++----- ttbp/core.py | 5 +---- ttbp/gopher.py | 3 +-- ttbp/ttbp.py | 10 +++------- 5 files changed, 13 insertions(+), 18 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..8edabe2 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include ttbp/config/defaults/*.txt +include ttbp/config/defaults/style.css +include doc/manual.html diff --git a/setup.py b/setup.py index 6b87c47..23fdef6 100644 --- a/setup.py +++ b/setup.py @@ -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', + ] }, ) diff --git a/ttbp/core.py b/ttbp/core.py index 3059dc9..79ed7e3 100644 --- a/ttbp/core.py +++ b/ttbp/core.py @@ -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 = {} diff --git a/ttbp/gopher.py b/ttbp/gopher.py index a671faa..d5ac000 100644 --- a/ttbp/gopher.py +++ b/ttbp/gopher.py @@ -6,8 +6,7 @@ import os import time import subprocess -import util -import config +from ttbp import util, config GOPHER_PROMPT = """ diff --git a/ttbp/ttbp.py b/ttbp/ttbp.py index 4b27bae..8ad0928 100644 --- a/ttbp/ttbp.py +++ b/ttbp/ttbp.py @@ -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