Coder Social home page Coder Social logo

drone-plugins / drone-pypi Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 17.0 1.97 MB

Drone plugin to publish python packages to PyPi

Home Page: http://plugins.drone.io/drone-plugins/drone-pypi

License: Apache License 2.0

Go 100.00%
drone drone-plugin

drone-pypi's Introduction

drone-pypi

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Doc Go Report

Drone Plugin for PyPi publishing with twine. For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following commands:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -tags netgo -o release/linux/amd64/drone-pypi

Docker

Build the Docker image with the following commands:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --file docker/Dockerfile.linux.amd64 --tag plugins/pypi .

Usage

docker run --rm \
  -e PLUGIN_USERNAME=jdoe \
  -e PLUGIN_PASSWORD=my_secret \
  -e PLUGIN_SKIP_BUILD=false \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/pypi

drone-pypi's People

Contributors

bradrydzewski avatar jackspirou avatar mhumesf avatar msteinert avatar renovate-bot avatar rio avatar samualfageme avatar tboerger avatar tomvasile avatar xoxys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

drone-pypi's Issues

Support changing working directory

If the Python package + setup.py is in a subdirectory, you need to be able to cd into that directory for packaging to work correctly. E.g.

mypythonapp/
    setup.py  # for packaging `mypackage`
    mypackage/
        __init__.py

Merely giving the path to setup.py won't work, you need to change working directory to mypythonapp before running setup.py sdist.

Add `--skip-existing` flag option

Currently there is no way to pass the --skip-existing to twine with the drone-pypi plugin, ideally this should be settings/variables passed to it (use case is the same as in pypa/twine#115 only through drone)

Ability to supply package name

In non-prod environments, it would be incredibly convenient to supply a setting override_package_name or something like that, so that in my non-prod environment, I could override the package name to be simply "development". By doing this, I could ensure that the development branch would always correspond to the development pip package which would be helpful for testing/development.

Thanks!

I am looking here to see available functionality: http://plugins.drone.io/drone-plugins/drone-github-release/

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Found renovate config warnings

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
docker/Dockerfile.linux.amd64
docker/Dockerfile.linux.arm64
droneci
.drone.yml
  • golang 1.19
  • golang 1.19-alpine
  • golang 1.19
  • golang 1.19
  • golang 1.19
  • golang 1.19
  • golang 1.19
  • golang 1.19
gomod
go.mod
  • go 1.19
  • github.com/joho/godotenv v1.4.0
  • github.com/pkg/errors v0.9.1
  • github.com/urfave/cli v1.22.10

  • Check this box to trigger a request for Renovate to run again on this repository

Go error trying to use this plugin on drone 0.8

Is this known to still work i get this error

panic: EOF

goroutine 1 [running]:
github.com/drone/drone-go/plugin.MustParse()
	/drone/src/github.com/drone/drone-go/plugin/plugin.go:132 +0x59
main.main()
/drone/src/github.com/drone-plugins/drone-pypi/main.go:30 +0x24f

I have this config using the same url i use locally any ideas ?

  publish-pypi:
    image: plugins/drone-pypi
    repository: https://upload.pypi.org/legacy/
    username: ${pypi_username}
    password: ${pypi_password}
    distributions:
      - sdist
      - bdist_wheel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.