Skip to content

Commit

Permalink
Merge pull request #17 from agates/upstream-pr
Browse files Browse the repository at this point in the history
Add "extra_build_dependency_packages" input
  • Loading branch information
JRubics authored Jan 24, 2022
2 parents f390ede + 46f4989 commit 0f571e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ This will instruct poetry **not** to install any developer requirements. this ma

Allow poetry pre-release versions to be installed.

### `extra_build_dependency_packages`

An optional space-separated list of debian packages to be installed before building the package

## Example usage

The following will build and publish the python package to the PyPI using the last version of python and poetry. Specify the python package version and dependencies in `pyproject.toml` in the root directory of your project.
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ inputs:
allow_poetry_pre_release:
description: "Allow usage of poetry pre-release and development versions"
required: false
extra_build_dependency_packages:
description: "An optional space-separated list of debian packages to be installed before building the package"
required: false
runs:
using: "docker"
image: "docker://jrubics/poetry-publish:v1.9"
image: "docker://jrubics/poetry-publish:v1.10"
args:
- ${{ inputs.python_version }}
- ${{ inputs.poetry_version }}
Expand All @@ -51,3 +54,4 @@ runs:
- ${{ inputs.allow_poetry_pre_release }}
- ${{ inputs.repository_username }}
- ${{ inputs.repository_password }}
- ${{ inputs.extra_build_dependency_packages }}
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -e

if [ -n "${11}" ]; then
apt-get update
apt-get -y upgrade
apt-get -y install --no-install-recommends ${11}
fi

if [ $1 != 'latest' ]; then
pyenv latest install $1
pyenv latest global $1
Expand Down

0 comments on commit 0f571e7

Please sign in to comment.