Skip to content

Commit ac212e1

Browse files
tillahoffmannSergeyPirogov
authored andcommitted
Deploy to pypi on merge into master (#31)
* Fix links in README. * Enable automatic deployment to pypi (pending password). * Add README content to pypi. * Deploy on tags only. * Add encrypted password for pypi.
1 parent 6f06fbe commit ac212e1

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ notifications:
2929
email:
3030
recipients:
3131
32+
33+
deploy:
34+
provider: pypi
35+
user: tillahoffmann
36+
password:
37+
secure: "MoX7m8vD5z9PMzxyf/AW0/GJrjw75K0O5fWyzYDVK0e9fE4en4DVZQXsQ+bI5aVoOfEpAJ/wGgR4t/tsdAXolZxVyK4qM3JKfv75fHcsT1Le++S6daxruTkJY/DbkY6gj9aSMqGX9M5qumeAF4nA7VXxgQ28B0Fc65UASr4tsQ6ekqumCRpqeFMFi7IHdEm2le8J9LSxlNXOGl1QgNkC/ABPAoZiOGn/hdcugaX4BGaorwDk4if8bfonr42pizNfIkMJgCQdU0n+1KqQdm30zD1JHmVOZXryi+QZUiTLHfvpjhIlHUGr7skU0sohUwen0VEbmgezvsF303bMkfQS3zS/GlwVODv6xGFGr7Vp6sYPc3452eB9wWi08lk1evPiyiFzTb4GJR37u9bwoj22/rtePfhXvP4hZs3KXHLDn6zE2LJT+OXSRWb+UD8TqS9kHIGiR7cqRXeTnca9UyGDgAnO/Q6bYvrKcoqb94ElW4VtMvLfwqGAVWYpdD4YdLZp5FoqA+U/1MuYVV81+z8ocem5f3jnuoYfbkKFbTE0wbYozjDIeirc1Bh6ekuODakF4oKcuWdOgnO5ZEobFO45BIM5DUKkOqsfCielWdLx+A8H7v6Y04bIVwCS3NRYEsuXZoBtda3lQVYVSNGeMJUtd0TCPmzolUTTVX3K2YAe6pw="
38+
# Required if building on more than one python version because each build will try to deploy
39+
skip_existing: true
40+
on:
41+
tags: true

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# testcontainers-python
22

3-
![testcontainer](http://robertwdempsey.com/wp-content/uploads/2015/10/docker-python.png)
4-
5-
[![Build Status](https://travis-ci.org/SergeyPirogov/testcontainers-python.svg?branch=master)](https://travis-ci.org/SergeyPirogov/testcontainers-python) [![PyPI](https://img.shields.io/pypi/v/testcontainers.svg?style=flat-square)](https://pypi.python.org/pypi/testcontainers)
3+
[![Build Status](https://travis-ci.org/testcontainers/testcontainers-python.svg?branch=master)](https://travis-ci.org/testcontainers/testcontainers-python) [![PyPI](https://img.shields.io/pypi/v/testcontainers.svg?style=flat-square)](https://pypi.python.org/pypi/testcontainers)
64
[![Documentation Status](https://readthedocs.org/projects/testcontainers-python/badge/?version=latest)](http://testcontainers-python.readthedocs.io/en/latest/?badge=latest)
75

86
Python port for testcontainers-java that allows using docker containers for functional and/or integration testing.
@@ -49,9 +47,7 @@ MySQL example
4947
with config as mysql:
5048
e = sqlalchemy.create_engine(mysql.get_connection_url())
5149
result = e.execute("select version()")
52-
53-
It will spin up MySQL version 5.7. Then you can connect to database using ``get_connection_url()`` method which returns sqlalchemy compatible url in format ``dialect+driver://username:password@host:port/database``.
5450

55-
[![asciicast](https://asciinema.org/a/e7p6w4z6nbluipv1n15dgmo9w.png)](https://asciinema.org/a/e7p6w4z6nbluipv1n15dgmo9w)
51+
It will spin up MySQL version 5.7. Then you can connect to database using ``get_connection_url()`` method which returns sqlalchemy compatible url in format ``dialect+driver://username:password@host:port/database``.
5652

5753
# Detailed [documentation](http://testcontainers-python.readthedocs.io/en/latest/)

setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@
1313

1414
import setuptools
1515

16+
with open('README.md') as fp:
17+
long_description = fp.read()
18+
1619
setuptools.setup(
1720
name='testcontainers',
1821
packages=setuptools.find_packages(exclude=['tests']),
19-
version='2.3',
22+
version='2.4',
2023
description=('Library provides lightweight, throwaway '
2124
'instances of common databases, '
2225
'Selenium web browsers, or anything else that can '
23-
'run in a Docker containers'),
26+
'run in a Docker container'),
2427
author='Sergey Pirogov',
2528
author_email='[email protected]',
26-
url='https://github.com/SergeyPirogov/testcontainers-python',
29+
url='https://github.com/testcontainers/testcontainers-python',
2730
keywords=['testing', 'logging', 'docker', 'test automation'],
2831
classifiers=[
2932
'License :: OSI Approved :: Apache Software License',
@@ -49,5 +52,7 @@
4952
'postgresql': ['sqlalchemy', 'psycopg2'],
5053
'selenium': ['selenium==2.53.1'],
5154
'google-cloud-pubsub': ['google-cloud-pubsub'],
52-
}
55+
},
56+
long_description_content_type="text/markdown",
57+
long_description=long_description,
5358
)

0 commit comments

Comments
 (0)