Skip to content

mircobordoni/drone-pypi

 
 

Repository files navigation

drone-pypi

Build Status

Drone plugin for publishing to the Python package index

Usage

Upload a source distribution to PyPI

./drone-pypi <<EOF
{
	"workspace": {
		"path": "/drone/my-module-py"
	}
	"vargs": {
		"username": "guido",
		"password": "secret"
	}
}
EOF

Upload a source distribution and a wheel to PyPI

./drone-pypi <<EOF
{
	"workspace": {
		"path": "/drone/my-module-py"
	}
	"vargs": {
		"distributions": ["sdist", "bdist_wheel"],
		"username": "guido",
		"password": "secret"
	}
}
EOF

Upload a source distribution to a private PyPI server, e.g. simplepypi

./drone-pypi <<EOF
{
	"workspace": {
		"path": "/drone/my-module-py"
	}
	"vargs": {
		"repository": "https://pypi.example.com"
	}
}
EOF

Docker

Build the Docker container using the netgo build tag to eliminate the CGO dependency:

CGO_ENABLED=0 go build -a -tags netgo
docker build --rm=true -t plugins/drone-pypi .

About

Drone plugin for publishing to the Python package index

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 89.8%
  • Python 10.2%