Skip to content

Commit

Permalink
Update Python packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Nov 26, 2016
1 parent 71ef002 commit 94bdee6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
7 changes: 5 additions & 2 deletions chatterbot/__init__.py
@@ -1,9 +1,12 @@
"""
ChatterBot is a machine learning, conversational dialog engine.
"""
import sys

if 'install' not in sys.argv and 'egg_info' not in sys.argv:
from .chatterbot import ChatBot

__version__ = '0.4.13'
__version__ = '0.4.14'
__author__ = 'Gunther Cox'
__email__ = 'gunthercx@gmail.com'

__url__ = 'https://github.com/gunthercox/ChatterBot'
29 changes: 17 additions & 12 deletions setup.py
@@ -1,26 +1,31 @@
#!/usr/bin/env python
"""
ChatterBot setup file.
"""

from setuptools import setup


# Dynamically retrieve the version information from the chatterbot module
version = __import__('chatterbot').__version__
author = __import__('chatterbot').__author__
author_email = __import__('chatterbot').__email__
CHATTERBOT = __import__('chatterbot')
VERSION = CHATTERBOT.__version__
AUTHOR = CHATTERBOT.__author__
AUTHOR_EMAIL = CHATTERBOT.__email__
URL = CHATTERBOT.__url__
DESCRIPTION = CHATTERBOT.__doc__

req = open('requirements.txt')
requirements = req.readlines()
req.close()
with open('requirements.txt') as requirements:
REQUIREMENTS = requirements.readlines()

setup(
name='ChatterBot',
version=version,
url='https://github.com/gunthercox/ChatterBot',
version=VERSION,
url=URL,
setup_requires=['setuptools-markdown'],
long_description_markdown_filename='readme.md',
description='An open-source chat bot program written in Python.',
author=author,
author_email=author_email,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=[
'chatterbot',
'chatterbot.adapters',
Expand All @@ -39,7 +44,7 @@
],
package_dir={'chatterbot': 'chatterbot'},
include_package_data=True,
install_requires=requirements,
install_requires=REQUIREMENTS,
license='BSD',
zip_safe=False,
platforms=['any'],
Expand Down

0 comments on commit 94bdee6

Please sign in to comment.