Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
cleanups for new pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Apr 18, 2018
1 parent 73fa833 commit 9156972
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
language: python
sudo: required
addons:
apt_packages:
- pandoc
cache:
directories:
- "$HOME/.cache/pip"
Expand Down Expand Up @@ -46,14 +43,14 @@ jobs:
- git config --global user.name "Travis CI"
- git remote set-url --push origin "git@github.com:$TRAVIS_REPO_SLUG"
- export ${!TRAVIS*}
- sphinx-versioning push docs gh-pages .
- sphinx-versioning push docs docs .
- stage: deploy
install:
- pip install pypandoc==1.4
install: skip
script: skip
deploy:
provider: pypi
user: amn41
distributions: "sdist bdist_wheel"
on:
branch: master
tags: true
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ pep8ignore =

[metadata]
description-file = README.md
license_file = LICENSE.txt

[bdist_wheel]
# this will create a universal wheel for all distributions and py2 & py3
universal=1
31 changes: 22 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from setuptools import setup, find_packages
import io
import os

here = os.path.abspath(os.path.dirname(__file__))

# Avoids IDE errors, but actual version is read from version.py
__version__ = None
exec(open('rasa_core/version.py').read())

try:
import pypandoc
readme = pypandoc.convert_file('README.md', 'rst')
except (IOError, ImportError):
with io.open('README.md', encoding='utf-8') as f:
readme = f.read()
# Get the long description from the README file
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

tests_requires = [
"pytest",
Expand Down Expand Up @@ -58,11 +58,17 @@
}

setup(
name='rasa_core',
name='rasa-core',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
# supported python versions
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
"Topic :: Software Development :: Libraries",
],
packages=find_packages(exclude=["tests", "tools"]),
version=__version__,
Expand All @@ -72,16 +78,23 @@
include_package_data=True,
description="Machine learning based dialogue engine "
"for conversational software.",
long_description=readme,
long_description=long_description,
long_description_content_type="text/markdown",
author='Rasa Technologies GmbH',
author_email='hi@rasa.ai',
maintainer="Tom Bocklisch",
maintainer_email="tom@rasa.com",
keywords=["nlp", "machine-learning", "machine-learning-library", "bot",
"bots",
"botkit", "rasa", "conversational-agents",
"conversational-ai",
"chatbot", "chatbot-framework", "bot-framework"],
url="https://rasa.ai",
download_url="https://github.com/RasaHQ/rasa_core/archive/{}.tar.gz".format(__version__)
download_url="https://github.com/RasaHQ/rasa_core/archive/{}.tar.gz".format(__version__),
project_urls={
'Bug Reports': 'https://github.com/rasahq/rasa_core/issues',
'Source': 'https://github.com/rasahq/rasa_core',
},
)

print("\nWelcome to Rasa Core!")
Expand Down

0 comments on commit 9156972

Please sign in to comment.