Skip to content

Commit

Permalink
Bump to 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 10, 2021
1 parent a0e0e21 commit 1a5b2bb
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 61 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ jobs:
python-version: 3.8
- name: Install dependencies
run:
python -m pip install -U pip wheel twine
python -m pip install -U pip wheel twine build
- name: Make dists
run:
python setup.py sdist bdist_wheel
python -m build
- name: PyPI upload
env:
TWINE_USERNAME: __token__
Expand Down
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CHANGES
=======

4.0.1 (2121-11-xx)
4.0.1 (2121-11-10)
------------------

- Fix regression:
Expand All @@ -21,7 +21,7 @@ CHANGES

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

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

* Dropped ``timeout.timeout`` property that returns a relative timeout based on the
Expand Down
2 changes: 1 addition & 1 deletion async_timeout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing_extensions import final


__version__ = "4.0.0"
__version__ = "4.0.1"


__all__ = ("timeout", "timeout_at")
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=45",
"wheel",
]
build-backend = "setuptools.build_meta"
50 changes: 47 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
[metadata]
name = async-timeout
version = attr: async_timeout.__version__
url = https://github.com/aio-libs/async-timeout
project_urls =
Chat: Gitter = https://gitter.im/aio-libs/Lobby
CI: GitHub Actions = https://github.com/aio-libs/async-timeout/actions
Coverage: codecov = https://codecov.io/github/aio-libs/async-timeout
GitHub: issues = https://github.com/aio-libs/async-timeout/issues
GitHub: repo = https://github.com/aio-libs/async-timeout
description = Timeout context manager for asyncio programs
long_description = file: README.rst
long_description_content_type = text/x-rst
author = Andrew Svetlov <andrew.svetlov@gmail.com>
author_email = andrew.svetlov@gmail.com
license = Apache 2
license_files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable

Topic :: Software Development :: Libraries
Framework :: AsyncIO

Intended Audience :: Developers

License :: OSI Approved :: Apache Software License

Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
python_requires = >=3.6
packages =
async_timeout
zip_safe = True
include_package_data = True

install_requires =
typing_extensions>=3.6.5


[flake8]
exclude = .git,.env,__pycache__,.eggs
max-line-length = 88
Expand All @@ -14,8 +61,5 @@ lines_after_imports=2
[tool:pytest]
addopts= --cov=async_timeout --cov-report=term --cov-report=html --cov-branch

[metadata]
license_file = LICENSE

[mypy-pytest]
ignore_missing_imports = true
54 changes: 1 addition & 53 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,56 +1,4 @@
import pathlib
import re

from setuptools import setup


here = pathlib.Path(__file__).parent
fname = here / "async_timeout" / "__init__.py"


with fname.open() as fp:
try:
version = re.findall(r'^__version__ = "([^"]+)"$', fp.read(), re.M)[0]
except IndexError:
raise RuntimeError("Unable to determine version.")


def read(name):
fname = here / name
with fname.open() as f:
return f.read()


install_requires = [
"typing_extensions>=3.6.5",
]


setup(
name="async-timeout",
version=version,
description=("Timeout context manager for asyncio programs"),
long_description="\n\n".join([read("README.rst"), read("CHANGES.rst")]),
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
],
author="Andrew Svetlov",
author_email="andrew.svetlov@gmail.com",
url="https://github.com/aio-libs/async_timeout/",
license="Apache 2",
packages=["async_timeout"],
python_requires=">=3.6",
install_requires=install_requires,
include_package_data=True,
)
setup()

0 comments on commit 1a5b2bb

Please sign in to comment.