File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ pypi-publish :
10+ name : upload release to PyPI
11+ runs-on : ubuntu-latest
12+ # Specifying a GitHub environment is optional, but strongly encouraged
13+ environment : release
14+ permissions :
15+ # IMPORTANT: this permission is mandatory for trusted publishing
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v2
19+
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v1
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+
25+ - name : Install dependencies
26+ shell : bash
27+ run : pip install -r requirements_dev.txt
28+
29+ - name : Build the project
30+ shell : bash
31+ run : python -m build .
32+
33+ - name : Publish package distributions to PyPI
34+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 33[ ![ Downloads] ( https://static.pepy.tech/badge/cantok/month )] ( https://pepy.tech/project/cantok )
44[ ![ Downloads] ( https://static.pepy.tech/badge/cantok )] ( https://pepy.tech/project/cantok )
55[ ![ codecov] ( https://codecov.io/gh/pomponchik/cantok/graph/badge.svg?token=eZ4eK6fkmx )] ( https://codecov.io/gh/pomponchik/cantok )
6+ [ ![ Hits-of-Code] ( https://hitsofcode.com/github/pomponchik/cantok?branch=main )] ( https://hitsofcode.com/github/pomponchik/cantok/view?branch=main )
67[ ![ Test-Package] ( https://github.com/pomponchik/cantok/actions/workflows/tests_and_coverage.yml/badge.svg )] ( https://github.com/pomponchik/cantok/actions/workflows/tests_and_coverage.yml )
78[ ![ Python versions] ( https://img.shields.io/pypi/pyversions/cantok.svg )] ( https://pypi.python.org/pypi/cantok )
89[ ![ PyPI version] ( https://badge.fury.io/py/cantok.svg )] ( https://badge.fury.io/py/cantok )
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ class CancellationReport:
2323
2424class AngryAwaitable (Coroutine ): # type: ignore[type-arg]
2525 def __await__ (self ): # type: ignore[no-untyped-def]
26- raise SynchronousWaitingError ('You cannot use the "await" keyword in the synchronous mode of the method. Add the "is_async" (bool) argument.' )
27- yield self
26+ raise SynchronousWaitingError ('You cannot use the "await" keyword in the synchronous mode of the method. Add the "is_async" (bool) argument.' ) # pragma: no cover
27+ yield self # pragma: no cover
2828
2929 def send (self , value : Any ) -> None :
3030 raise SynchronousWaitingError ('You cannot use the "await" keyword in the synchronous mode of the method. Add the "is_async" (bool) argument.' )
3131
3232 def throw (self , value : Any ) -> Any : # type: ignore[override]
33- pass
33+ pass # pragma: no cover
3434
3535 def close (self ) -> Any :
36- pass
36+ pass # pragma: no cover
3737
3838
3939class AbstractToken (ABC ):
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " cantok"
7- version = " 0.0.11 "
7+ version = " 0.0.12 "
88authors = [
99 { name =" Evgeniy Blinov" , email =" zheni-b@yandex.ru" },
1010]
@@ -29,6 +29,9 @@ classifiers = [
2929 ' Topic :: Software Development :: Libraries' ,
3030]
3131
32+ [tool .setuptools .package-data ]
33+ "cantok" = [" py.typed" ]
34+
3235[project .urls ]
3336'Source' = ' https://github.com/pomponchik/cantok'
3437'Documentation' = ' http://cantok.readthedocs.io/'
You can’t perform that action at this time.
0 commit comments