Commit 8d29c956 authored by marc0s's avatar marc0s

Prepare python package for the registry

parent 3cf933b6
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Quick and dirty RSS to StatusNet client
"""Quick and dirty RSS to StatusNet client
Git repository: http://git.tenak.net/?p=rss2sn.git
"""
__version__ = "1.0.0"
__licencse__ = """
Copyright (C) 2015 marcos@tenak.net
This program is free software: you can redistribute it and/or modify
......@@ -19,11 +22,13 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
__author__ = "marc0s <marcos+rss2sn@tenak.net>"
import argparse
import ConfigParser
import os
from argparse import RawDescriptionHelpFormatter
from datetime import datetime
import feedparser
......@@ -92,11 +97,14 @@ def quickSort(arr):
return less + pivotList + more
if __name__ == '__main__':
PARSER = argparse.ArgumentParser(description=__doc__)
PARSER = argparse.ArgumentParser(description=__doc__,
formatter_class=RawDescriptionHelpFormatter)
PARSER.add_argument('--CONFIG', '-c', dest='CONFIG', type=str,
help='The CONFIGuration file')
PARSER.add_argument('--account', '-a', dest='account', type=str,
required=True, help='The account to use')
PARSER.add_argument('--version', '-v', action='version',
version='%(prog)s {version}'.format(version=__version__))
ARGS = PARSER.parse_args()
# The Config file contains one or more accounts like this:
......
# -*- coding: utf-8 -*-
__version__ = "1.0.0"
import os
from distutils.core import setup
setup(
name='rss2sn',
version=__version__,
url='http://git.tenak.net/?p=rss2sn.git',
author='marc0s',
author_email='marc0s@tenak.net',
py_modules=['rss2sn'],
install_requires=['StatusNet', ' feedparser'],
license='GPL3',
description='A quick and dirty RSS to StatusNet bot',
long_description=open('README.md').read(),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment