Added __version__, corrected relative imports.
This commit is contained in:
12
rtv/main.py
12
rtv/main.py
@@ -4,10 +4,11 @@ import praw
|
|||||||
from requests.exceptions import ConnectionError, HTTPError
|
from requests.exceptions import ConnectionError, HTTPError
|
||||||
from praw.errors import InvalidUserPass
|
from praw.errors import InvalidUserPass
|
||||||
|
|
||||||
from rtv.errors import SubmissionURLError, SubredditNameError
|
from .errors import SubmissionURLError, SubredditNameError
|
||||||
from rtv.utils import curses_session, load_config, HELP
|
from .utils import curses_session, load_config, HELP
|
||||||
from rtv.subreddit import SubredditPage
|
from .subreddit import SubredditPage
|
||||||
from rtv.submission import SubmissionPage
|
from .submission import SubmissionPage
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION = """
|
DESCRIPTION = """
|
||||||
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
|
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
|
||||||
@@ -54,8 +55,7 @@ def main():
|
|||||||
args.subreddit = 'front'
|
args.subreddit = 'front'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# TODO: Move version number to a centralized location
|
reddit = praw.Reddit(user_agent='desktop:https://github.com/michael-lazar/rtv:(by /u/civilization_phaze_3)')
|
||||||
reddit = praw.Reddit(user_agent='reddit terminal viewer v1.05a')
|
|
||||||
reddit.config.decode_html_entities = True
|
reddit.config.decode_html_entities = True
|
||||||
|
|
||||||
if args.username:
|
if args.username:
|
||||||
|
|||||||
13
setup.py
13
setup.py
@@ -1,19 +1,12 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import os
|
|
||||||
#python setup.py develop --user
|
|
||||||
#python setup.py develop --user --uninstall
|
|
||||||
|
|
||||||
|
__version__ = '1.0a8'
|
||||||
def read(*paths):
|
|
||||||
""" read files """
|
|
||||||
with open(os.path.join(*paths), 'r') as filename:
|
|
||||||
return filename.read()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='rtv',
|
name='rtv',
|
||||||
version='1.0a7',
|
version=__version__,
|
||||||
description='A simple terminal viewer for Reddit (Reddit Terminal Viewer)',
|
description='A simple terminal viewer for Reddit (Reddit Terminal Viewer)',
|
||||||
long_description=(read('README.rst')),
|
long_description=open('README.rst').read(),
|
||||||
url='https://github.com/michael-lazar/rtv',
|
url='https://github.com/michael-lazar/rtv',
|
||||||
author='Michael Lazar',
|
author='Michael Lazar',
|
||||||
author_email='lazar.michael22@gmail.com',
|
author_email='lazar.michael22@gmail.com',
|
||||||
|
|||||||
Reference in New Issue
Block a user