diff --git a/.env.dist b/.env.dist index 28423a20..bcc39b5f 100644 --- a/.env.dist +++ b/.env.dist @@ -1,3 +1,3 @@ -VERSION=1.3.1 +VERSION=1.3.2 PYPI_USERNAME=__token__ PYPI_PASSWORD= #api token diff --git a/Makefile b/Makefile index 5459d0c0..01758e07 100644 --- a/Makefile +++ b/Makefile @@ -35,10 +35,11 @@ set-version: ## set new package version echo "Updated version: ${GREEN}$$VERSION${RESET}" build: ## build module - python3 -m build +build: cleanup sed -E -i "s/^VERSION.+/VERSION=$$VERSION/" .env.dist + python3 -m build -## Making new release (test repo) +## Test repository upload-dev: ## upload module to test repository python3 -m twine upload --repository testpypi dist/* -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} @@ -46,16 +47,10 @@ upload-dev: ## upload module to test repository install-dev: ## install module from test repository pip install -i https://test.pypi.org/simple/ pytermor-delameter==${VERSION} -release-dev: ## build, upload and install using test repository -release-dev: cleanup build upload-dev install-dev - -## Making new release +## Primary repository upload: ## upload module python3 -m twine upload dist/* -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --verbose install: ## install module pip install pytermor==${VERSION} - -release: ## build, upload and install module -release: cleanup build upload install diff --git a/README.md b/README.md index 7e363db0..cb046c7b 100644 --- a/README.md +++ b/README.md @@ -780,6 +780,11 @@ As a rule of a thumb, **name** equals to **opening seq** in lower case. CYAN COLOR_OFF + + gray + GRAY + COLOR_OFF +
background colors @@ -812,6 +817,11 @@ As a rule of a thumb, **name** equals to **opening seq** in lower case. BG_CYAN BG_COLOR_OFF + + bg_gray + BG_GRAY + BG_COLOR_OFF + @@ -820,6 +830,18 @@ You can of course create your own sequences and formats, but with one limitation ## Changelog +### v1.3.2 + +Added `gray` and `bg_gray` format presets. + +### v1.3.1 + +Interface revisioning. + +### v1.2.1 + +`opening_seq` and `closing_seq` properties for `Format` class. + ### v1.2.0 `EmptySequenceSGR` and `EmptyFormat` classes. diff --git a/setup.cfg b/setup.cfg index ea1f591b..3b0dfd70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = pytermor -version = 1.3.1 +version = 1.3.2 author = Aleksandr Shavykin author_email = 0.delameter@gmail.com description = ANSI formatted terminal output library diff --git a/src/pytermor/fmt.py b/src/pytermor/fmt.py index 7e348436..fbb056c3 100644 --- a/src/pytermor/fmt.py +++ b/src/pytermor/fmt.py @@ -109,6 +109,7 @@ def autof(*args: str|int|SequenceSGR) -> Format: blue = autof(code.BLUE) magenta = autof(code.MAGENTA) cyan = autof(code.CYAN) +gray = autof(code.GRAY) bg_red = autof(code.BG_RED) bg_green = autof(code.BG_GREEN) @@ -116,3 +117,4 @@ def autof(*args: str|int|SequenceSGR) -> Format: bg_blue = autof(code.BG_BLUE) bg_magenta = autof(code.BG_MAGENTA) bg_cyan = autof(code.BG_CYAN) +bg_gray = autof(code.BG_GRAY)