Sign inSign up

tsuru/python3

By tsuru

Updated almost 8 years ago

Image for the Python 3 platform in tsuru PaaS.

Image
2

10K+

tsuru/python3 repository overview

Python3 platform

The Python3 platform uses Python 3.x.

Code deployment

If you just run a git push or tsuru app-deploy of your code, tsuru will try to download all of your depencies using requirements.txt or setup script. You can customize this behavior, see the next section for more details.

Code deployment with dependencies

There are two ways to list the applications dependencies: requirements.txt or setup.py. The priority order is: requirements -> setup. The file should be in the root of deploy files.

Using requirements.txt

You can define a file called requirements.txt that list all pip dependencies of your application, each line represents one dependency, here's an example:

$ cat requirements.txt
Flask==0.10.1
gunicorn==19.3.0
Using setup script

You can also define the setup script to list your depencies, here's an example:

$ cat setup.py
from setuptools import setup, find_packages
setup(
	name="app-name",
	packages=find_packages(),
	description="example",
	include_package_data=True,
	install_requires=[
    	"Flask==0.10.1",
    	"gunicorn==19.3.0",
	],
)

After invokin git push or tsuru app-deploy, tsuru will receive your code and tell the platform to install all the depencies using pip install -r requirements.txt or pip instal -e ./.

Tag summary

Content type

Image

Digest

sha256:aa7c4f664

Size

164.6 MB

Last updated

over 9 years ago

docker pull tsuru/python3