Skip to content

Commit 1a5b2bb

Browse files
committed
Bump to 4.0.1
1 parent a0e0e21 commit 1a5b2bb

File tree

6 files changed

+59
-61
lines changed

6 files changed

+59
-61
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ jobs:
114114
python-version: 3.8
115115
- name: Install dependencies
116116
run:
117-
python -m pip install -U pip wheel twine
117+
python -m pip install -U pip wheel twine build
118118
- name: Make dists
119119
run:
120-
python setup.py sdist bdist_wheel
120+
python -m build
121121
- name: PyPI upload
122122
env:
123123
TWINE_USERNAME: __token__

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGES
22
=======
33

4-
4.0.1 (2121-11-xx)
4+
4.0.1 (2121-11-10)
55
------------------
66

77
- Fix regression:
@@ -21,7 +21,7 @@ CHANGES
2121

2222
* Supported ``timeout.deadline`` and ``timeout.expired`` properties.
2323

24-
* Drooped ``timeout.remaining`` property: it can be calculated as
24+
* Dropped ``timeout.remaining`` property: it can be calculated as
2525
``timeout.deadline - loop.time()``
2626

2727
* Dropped ``timeout.timeout`` property that returns a relative timeout based on the

async_timeout/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing_extensions import final
99

1010

11-
__version__ = "4.0.0"
11+
__version__ = "4.0.1"
1212

1313

1414
__all__ = ("timeout", "timeout_at")

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=45",
4+
"wheel",
5+
]
6+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
[metadata]
2+
name = async-timeout
3+
version = attr: async_timeout.__version__
4+
url = https://github.com/aio-libs/async-timeout
5+
project_urls =
6+
Chat: Gitter = https://gitter.im/aio-libs/Lobby
7+
CI: GitHub Actions = https://github.com/aio-libs/async-timeout/actions
8+
Coverage: codecov = https://codecov.io/github/aio-libs/async-timeout
9+
GitHub: issues = https://github.com/aio-libs/async-timeout/issues
10+
GitHub: repo = https://github.com/aio-libs/async-timeout
11+
description = Timeout context manager for asyncio programs
12+
long_description = file: README.rst
13+
long_description_content_type = text/x-rst
14+
author = Andrew Svetlov <[email protected]>
15+
author_email = [email protected]
16+
license = Apache 2
17+
license_files = LICENSE
18+
classifiers =
19+
Development Status :: 5 - Production/Stable
20+
21+
Topic :: Software Development :: Libraries
22+
Framework :: AsyncIO
23+
24+
Intended Audience :: Developers
25+
26+
License :: OSI Approved :: Apache Software License
27+
28+
Programming Language :: Python
29+
Programming Language :: Python :: 3
30+
Programming Language :: Python :: 3 :: Only
31+
Programming Language :: Python :: 3.6
32+
Programming Language :: Python :: 3.7
33+
Programming Language :: Python :: 3.8
34+
Programming Language :: Python :: 3.9
35+
Programming Language :: Python :: 3.10
36+
37+
[options]
38+
python_requires = >=3.6
39+
packages =
40+
async_timeout
41+
zip_safe = True
42+
include_package_data = True
43+
44+
install_requires =
45+
typing_extensions>=3.6.5
46+
47+
148
[flake8]
249
exclude = .git,.env,__pycache__,.eggs
350
max-line-length = 88
@@ -14,8 +61,5 @@ lines_after_imports=2
1461
[tool:pytest]
1562
addopts= --cov=async_timeout --cov-report=term --cov-report=html --cov-branch
1663

17-
[metadata]
18-
license_file = LICENSE
19-
2064
[mypy-pytest]
2165
ignore_missing_imports = true

setup.py

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,4 @@
1-
import pathlib
2-
import re
3-
41
from setuptools import setup
52

63

7-
here = pathlib.Path(__file__).parent
8-
fname = here / "async_timeout" / "__init__.py"
9-
10-
11-
with fname.open() as fp:
12-
try:
13-
version = re.findall(r'^__version__ = "([^"]+)"$', fp.read(), re.M)[0]
14-
except IndexError:
15-
raise RuntimeError("Unable to determine version.")
16-
17-
18-
def read(name):
19-
fname = here / name
20-
with fname.open() as f:
21-
return f.read()
22-
23-
24-
install_requires = [
25-
"typing_extensions>=3.6.5",
26-
]
27-
28-
29-
setup(
30-
name="async-timeout",
31-
version=version,
32-
description=("Timeout context manager for asyncio programs"),
33-
long_description="\n\n".join([read("README.rst"), read("CHANGES.rst")]),
34-
classifiers=[
35-
"License :: OSI Approved :: Apache Software License",
36-
"Intended Audience :: Developers",
37-
"Programming Language :: Python",
38-
"Programming Language :: Python :: 3 :: Only",
39-
"Programming Language :: Python :: 3",
40-
"Programming Language :: Python :: 3.6",
41-
"Programming Language :: Python :: 3.7",
42-
"Programming Language :: Python :: 3.8",
43-
"Programming Language :: Python :: 3.9",
44-
"Programming Language :: Python :: 3.10",
45-
"Topic :: Internet :: WWW/HTTP",
46-
"Framework :: AsyncIO",
47-
],
48-
author="Andrew Svetlov",
49-
author_email="[email protected]",
50-
url="https://github.com/aio-libs/async_timeout/",
51-
license="Apache 2",
52-
packages=["async_timeout"],
53-
python_requires=">=3.6",
54-
install_requires=install_requires,
55-
include_package_data=True,
56-
)
4+
setup()

0 commit comments

Comments
 (0)