Skip to content

Commit

Permalink
Merge pull request #238 from pavdmyt/updates-07042024
Browse files Browse the repository at this point in the history
New release (v3.0.2)

#238
  • Loading branch information
pavdmyt authored Apr 8, 2024
2 parents 633b952 + bdde743 commit a8569be
Show file tree
Hide file tree
Showing 8 changed files with 1,306 additions and 1,586 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/lint_test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- name: checkout-code
Expand All @@ -27,7 +27,7 @@ jobs:
- name: install-poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
version: 1.8.2

- name: install-dependencies
run: |
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: checkout-code
Expand All @@ -65,7 +65,7 @@ jobs:
- name: install-poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
version: 1.8.2

- name: install-dependencies
run: |
Expand All @@ -80,11 +80,11 @@ jobs:
runs-on: ubuntu-22.04
env:
PYTHONHASHSEED: 0
USING_COVERAGE: '3.10'
USING_COVERAGE: '3.11'
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12-dev", "pypy-3.9"]
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9"]

steps:
- name: checkout-code
Expand All @@ -100,7 +100,7 @@ jobs:
if: "!contains(matrix.python-version, 'pypy-3.9')"
uses: snok/install-poetry@v1
with:
version: 1.5.1
version: 1.8.2

- name: install-dependencies
if: "!contains(matrix.python-version, 'pypy-3.9')"
Expand All @@ -116,7 +116,7 @@ jobs:
- name: install-dependencies
if: "contains(matrix.python-version, 'pypy-3.9')"
run: |
pip install termcolor==2.3.0 pytest==7.4.1 pytest-xdist==3.3.1
pip install termcolor==2.3.0 pytest==8.1.1 pytest-xdist==3.5.0
- name: run-tests
if: "contains(matrix.python-version, 'pypy-3.9')"
Expand All @@ -131,7 +131,9 @@ jobs:
- name: submit-to-codecov-io
if: "contains(env.USING_COVERAGE, matrix.python-version)"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Release History
===============

3.0.2 / 2024-04-08
------------------

* Add ``py.typed`` marker file to be compliant with PEP561 (#237)
* Update cli-spinners to ``v2.9.2``
* Update dependencies


3.0.1 / 2023-09-05
------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pypi_pwd := $(shell grep password ~/.pypirc | awk -F"= " '{ print $$2 }')

.PHONY: flake
flake:
@poetry run flake8 --ignore=F821,E501,W503 .
@poetry run flake8 --ignore=F821,E501,W503,E704 .

.PHONY: lint
lint: flake
Expand Down
1,540 changes: 692 additions & 848 deletions poetry.lock

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "yaspin"
version = "3.0.1"
version = "3.0.2"
description = "Yet Another Terminal Spinner"
license = "MIT"
authors = ["Pavlo Dmytrenko <pavdmyt@aiven.io>"]
Expand Down Expand Up @@ -49,19 +49,19 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.9"
termcolor = "^2.3"
termcolor = "==2.3.0"

[tool.poetry.dev-dependencies]
black = "^23.3"
twine = "^4.0"
flake8 = "^6.1"
isort = "^5.10"
mypy = "^1.5"
pytest = "^7.4"
pytest-xdist = "^3.3"
pytest-cov = "^4.1"
pylint = "^2.17"
semgrep = "^1.35"
black = "^24.3"
twine = "^5.0"
flake8 = "^7.0"
isort = "^5.13"
mypy = "^1.9"
pytest = "^8.0"
pytest-xdist = "^3.4"
pytest-cov = "^5.0"
pylint = "^3.0"
semgrep = "^1.60"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/pavdmyt/yaspin/issues"
Expand Down
1,294 changes: 580 additions & 714 deletions requirements.txt

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions tests/test_yaspin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def test_set_spinner(spinner, expected):

def test_decorator_usage():
@yaspin()
def decorated_func():
...
def decorated_func(): ...

decorated_func()
1 change: 1 addition & 0 deletions yaspin/data/spinners.json
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@
"[= ]",
"[== ]",
"[=== ]",
"[====]",
"[ ===]",
"[ ==]",
"[ =]",
Expand Down

0 comments on commit a8569be

Please sign in to comment.