Skip to content

Commit

Permalink
Add TravisCI config for auto deployment
Browse files Browse the repository at this point in the history
Tags applied to master will now be automatically deployed on PyPI
  • Loading branch information
mumrah committed Aug 22, 2014
1 parent 69b55c9 commit f861833
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ install:
# See https://github.com/travis-ci/travis-cookbooks/issues/155
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm

deploy:
provider: pypi
server: https://pypi.python.org/pypi
user: mumrah
password:
secure: TIZNKxktOm42/LHLDCuKuPqmAfYKekyHL4MqEFpnqDI5T5sHzG9IQaOwppYfQNggHiILUBzk1j6w/FPJunJyd62AFtydkKtIccqENIIAio78afeCRMQDynstNXjDefmt0s90xLGSlLzDMxCEWB4F6frEtPl/8KpNSFB2fvj+HXY=
on:
tags: true
all_branches: true
# TODO replace all_branches with "branch: master" after https://github.com/travis-ci/travis-ci/issues/1675 is fixed
# branch: master

script:
- tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`

branches:
only:
- master
- /^release-.*$/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2013 David Arthur
Copyright 2014 David Arthur

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion kafka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__version__ = pkg_resources.require('kafka-python')[0].version
__author__ = 'David Arthur'
__license__ = 'Apache License 2.0'
__copyright__ = 'Copyright 2012, David Arthur under Apache License, v2.0'
__copyright__ = 'Copyright 2014, David Arthur under Apache License, v2.0'

from kafka.client import KafkaClient
from kafka.conn import KafkaConnection
Expand Down
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,20 @@ def run(self):
author="David Arthur",
author_email="[email protected]",
url="https://github.com/mumrah/kafka-python",
license="Copyright 2012, David Arthur under Apache License, v2.0",
license="Apache License 2.0",
description="Pure Python client for Apache Kafka",
long_description="""
This module provides low-level protocol support for Apache Kafka as well as
high-level consumer and producer classes. Request batching is supported by the
protocol as well as broker-aware request routing. Gzip and Snappy compression
is also supported for message sets.
"""
""",
keywords="apache kafka",
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)

0 comments on commit f861833

Please sign in to comment.