An open API service indexing awesome lists of open source software.

https://github.com/durandtibo/pip-install-package-action

GitHub action to find a valid package version and install it
https://github.com/durandtibo/pip-install-package-action

Last synced: about 2 months ago
JSON representation

GitHub action to find a valid package version and install it

Awesome Lists containing this project

README

        

# Python Package GitHub Action



CI


Nightly Tests


PYPI version




Code style: black


Doc style: google


Ruff


Doc style: google



GitHub action to find valid package versions based on python version

## What's new

Please refer to
the [release page](https://github.com/durandtibo/pip-install-package-action/releases) for
the latest release notes.

### Basic usage

```yaml
- name: Install valid package version
uses: durandtibo/[email protected]
with:
package-name: 'numpy'
package-version: 2.0.2
python-version: 3.11
```

### Inputs

| name | description | default value |
|-------------------|-----------------------------------------|---------------|
| `package-name` | The package name e.g. `numpy` | none |
| `package-version` | The target package version e.g. `2.0.2` | none |
| `python-version` | The python version e.g. `3.11` | none |

### Outputs

| name | description |
|-------------------------|-------------------------------------------------------------------|
| `closest-valid-version` | The closest valid package version given the input package version | |

## Suggestions and Communication

Everyone is welcome to contribute to the community.
If you have any questions or suggestions, you can
submit [Github Issues](https://github.com/durandtibo/pip-install-package-action/issues).
We will reply to you as soon as possible. Thank you very much.

## License

`pip-install-package-action` is licensed under BSD 3-Clause "New" or "Revised" license available
in [LICENSE](LICENSE)
file.