Skip to content

Commit f861833

Browse files
committed
Add TravisCI config for auto deployment
Tags applied to master will now be automatically deployed on PyPI
1 parent 69b55c9 commit f861833

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ install:
2222
# See https://github.com/travis-ci/travis-cookbooks/issues/155
2323
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
2424

25+
deploy:
26+
provider: pypi
27+
server: https://pypi.python.org/pypi
28+
user: mumrah
29+
password:
30+
secure: TIZNKxktOm42/LHLDCuKuPqmAfYKekyHL4MqEFpnqDI5T5sHzG9IQaOwppYfQNggHiILUBzk1j6w/FPJunJyd62AFtydkKtIccqENIIAio78afeCRMQDynstNXjDefmt0s90xLGSlLzDMxCEWB4F6frEtPl/8KpNSFB2fvj+HXY=
31+
on:
32+
tags: true
33+
all_branches: true
34+
# TODO replace all_branches with "branch: master" after https://github.com/travis-ci/travis-ci/issues/1675 is fixed
35+
# branch: master
36+
2537
script:
2638
- tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
27-
28-
branches:
29-
only:
30-
- master
31-
- /^release-.*$/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2013 David Arthur
189+
Copyright 2014 David Arthur
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

kafka/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__version__ = pkg_resources.require('kafka-python')[0].version
55
__author__ = 'David Arthur'
66
__license__ = 'Apache License 2.0'
7-
__copyright__ = 'Copyright 2012, David Arthur under Apache License, v2.0'
7+
__copyright__ = 'Copyright 2014, David Arthur under Apache License, v2.0'
88

99
from kafka.client import KafkaClient
1010
from kafka.conn import KafkaConnection

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,20 @@ def run(self):
3232
author="David Arthur",
3333
author_email="[email protected]",
3434
url="https://github.com/mumrah/kafka-python",
35-
license="Copyright 2012, David Arthur under Apache License, v2.0",
35+
license="Apache License 2.0",
3636
description="Pure Python client for Apache Kafka",
3737
long_description="""
3838
This module provides low-level protocol support for Apache Kafka as well as
3939
high-level consumer and producer classes. Request batching is supported by the
4040
protocol as well as broker-aware request routing. Gzip and Snappy compression
4141
is also supported for message sets.
42-
"""
42+
""",
43+
keywords="apache kafka",
44+
classifiers = [
45+
"Development Status :: 4 - Beta",
46+
"Intended Audience :: Developers",
47+
"License :: OSI Approved :: Apache Software License",
48+
"Programming Language :: Python",
49+
"Topic :: Software Development :: Libraries :: Python Modules"
50+
]
4351
)

0 commit comments

Comments
 (0)