Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 1.28 KB

File metadata and controls

31 lines (22 loc) · 1.28 KB

projectversionparser

build release Coverage Status

Simple tool for quickly grabbing the version from a pyproject.toml or package.json file

Get the latest release here

Running

Running without any arguments will look for project files in the current directory and will parse the first one it finds.

Running with an argument will use that as the filename to try to parse.

$ projectversionparser ./pyproject.toml
PACKAGE_VERSION=0.1.0
PACKAGE_NAME=my-package-name

To set the output as env variables, use either:

$ source <(projectversionparser)

or

$ projectversionparser > envfile
$ source ./envfile