Skip to content

Commit 703cb9c

Browse files
committed
refactor: extract fields from pyproject.toml with diffrerent regex.
1 parent 2c3f80e commit 703cb9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
UTIL_VERSION := $(shell grep -Po 'version\s*=\s*"\K[\w.]+' pyproject.toml)
2-
UTIL_NAME := $(shell grep -Po 'name\s*=\s*"\K(\w.)+' pyproject.toml)
1+
UTIL_VERSION := $(shell grep -Po 'version\s*=\s*"\K[\d.]+' pyproject.toml)
2+
UTIL_NAME := $(shell grep -Po 'name\s*=\s*"\K\w+' pyproject.toml)
33
PWD := $(shell pwd)
44

55
USER_UID ?= $(shell id --user)

0 commit comments

Comments
 (0)