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