mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 05:00:07 -03:30
Updated setup.py --version to python3 -m setuptools_scm.
This commit is contained in:
4
Makefile
4
Makefile
@@ -5,8 +5,8 @@ NPM_BIN ?= npm
|
|||||||
CHROMIUM_BIN=/tmp/chrome-linux/chrome
|
CHROMIUM_BIN=/tmp/chrome-linux/chrome
|
||||||
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
MANAGEMENT_COMMAND ?= awx-manage
|
MANAGEMENT_COMMAND ?= awx-manage
|
||||||
VERSION := $(shell $(PYTHON) setup.py --version)
|
VERSION := $(shell $(PYTHON) -m setuptools_scm)
|
||||||
COLLECTION_VERSION := $(shell $(PYTHON) setup.py --version | cut -d . -f 1-3)
|
COLLECTION_VERSION := $(shell $(PYTHON) -m setuptools_scm | cut -d . -f 1-3)
|
||||||
|
|
||||||
# NOTE: This defaults the container image version to the branch that's active
|
# NOTE: This defaults the container image version to the branch that's active
|
||||||
COMPOSE_TAG ?= $(GIT_BRANCH)
|
COMPOSE_TAG ?= $(GIT_BRANCH)
|
||||||
|
|||||||
@@ -3,3 +3,9 @@ line-length = 160
|
|||||||
fast = true
|
fast = true
|
||||||
skip-string-normalization = true
|
skip-string-normalization = true
|
||||||
exclude = "awx_collection"
|
exclude = "awx_collection"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
|
||||||
|
|
||||||
|
|
||||||
|
[tool.setuptools_scm]
|
||||||
|
|||||||
Reference in New Issue
Block a user