https://github.com/lfreleng-actions/python-project-name-action
Extracts Python project name and derives the package name
https://github.com/lfreleng-actions/python-project-name-action
name naming project projects python
Last synced: 5 months ago
JSON representation
Extracts Python project name and derives the package name
- Host: GitHub
- URL: https://github.com/lfreleng-actions/python-project-name-action
- Owner: lfreleng-actions
- License: other
- Created: 2025-03-20T09:47:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-20T13:17:13.000Z (5 months ago)
- Last Synced: 2026-01-20T21:59:42.196Z (5 months ago)
- Topics: name, naming, project, projects, python
- Homepage:
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ð Python Project/Package Names
Extracts the Python project name and derives the Python package name.
## python-project-name-action
## Usage Example
An example workflow step using this action:
```yaml
steps:
# Code checkout performed in earlier step
- name: Fetch Python project/package name
uses: lfreleng-actions/python-project-name-action@main
```
## Â Inputs
| Variable Name | Required | Description |
| ------------------- | -------- | ------------------------------------- |
| PATH_PREFIX | False | Path/directory to Python project code |
## Outputs
| Output Variable | Mandatory | Value |
| ------------------- | --------- | --------------------------------------------------------- |
| PYTHON_PACKAGE_FILE | Yes | File used to extract metadata: pyproject.toml or setup.py |
| PYTHON_PROJECT_NAME | Yes | Extracted from pyproject.toml/setup.py |
| PYTHON_PACKAGE_NAME | Yes | Derived from value in pyproject.toml/setup.py |