Skip to content

Commit

Permalink
Add support for Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kura committed Jul 3, 2021
1 parent de5a2b0 commit 728cba1
Show file tree
Hide file tree
Showing 68 changed files with 1,572 additions and 990 deletions.
32 changes: 23 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,27 @@ matrix:
- popd
script: tox

- python: "pypy3"
env: TOXENV=pypy3,pypy3-setproctitle
- python: "3.9"
env: TOXENV=py39,py39-setproctitle,py39-uvloop
sudo: true
before_install:
- git clone https://github.com/libuv/libuv.git
- pushd libuv/
- git checkout $(git describe --tags)
- sh autogen.sh
- "./configure"
- make
- sudo make install
- popd
script: tox

- python: "3.8"
- python: "pypy3.7-7.3.5"
env: TOXENV=pypy3,pypy3-setproctitle,pypy3-uvloop
script: tox

- python: "3.9"
env: TOXENV=lint
- python: "3.8"
- python: "3.9"
env: TOXENV=docs
deploy:
provider: pages
Expand All @@ -59,15 +73,15 @@ matrix:
local_dir: .tox/docs/tmp/html
on:
branch: master
- python: "3.8"
- python: "3.9"
env: TOXENV=build
- python: "3.8"
- python: "3.9"
env: TOXENV=man
- python: "3.8"
- python: "3.9"
env: TOXENV=poetry
- python: "3.8"
- python: "3.9"
env: TOXENV=setuppy
- python: '3.8'
- python: '3.9'
env: TOXENV=shellcheck
addons:
apt:
Expand Down
16 changes: 12 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,26 @@ the functionality yourself.
Current release
---------------

.. _2.1.15:
.. _2.1.16:

2.1.15
2.1.16
======

- Blackhole now officially supports Python 3.8 and PyPy3. There are issues
using blackhole with uvloop on PyPy3 so that usecase is not supported.
- Blackhole now officially supports Python 3.9.
- Blackhole no longer supports Python 3.6.

-------------
Past releases
-------------

.. _2.1.15:

2.1.15
======

- Blackhole now officially supports Python 3.8 and PyPy3. There are issues
using blackhole with uvloop on PyPy3 so that usecase is not supported.

.. _2.1.13:

2.1.13
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2013-2020 Kura
Copyright (c) 2013-2021 Kura

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Expand Down
4 changes: 2 additions & 2 deletions blackhole/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -52,7 +52,7 @@
__copyright__ = "None"
__credits__ = ("Kura",)
__license__ = "MIT"
__version__ = "2.1.15"
__version__ = "2.1.16"
__maintainer__ = "Kura"
__email__ = "[email protected]"
__status__ = "Stable"
Expand Down
2 changes: 1 addition & 1 deletion blackhole/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
4 changes: 2 additions & 2 deletions blackhole/child.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -109,7 +109,7 @@ def stop(self, *args, **kwargs):
server.close()
self.heartbeat_task.cancel()
self.server_task.cancel()
for task in asyncio.Task.all_tasks(self.loop):
for task in asyncio.all_tasks(self.loop):
task.cancel()
self.loop.stop()
self._started = False
Expand Down
2 changes: 1 addition & 1 deletion blackhole/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
3 changes: 1 addition & 2 deletions blackhole/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -133,7 +133,6 @@ async def wait(self):
line = await asyncio.wait_for(
self._reader.readline(),
self.config.timeout,
loop=self.loop,
)
except asyncio.TimeoutError:
await self.timeout()
Expand Down
2 changes: 1 addition & 1 deletion blackhole/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion blackhole/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_extra/testssl.sh.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--.
(The MIT License)
Copyright (c) 2013-2020 Kura
Copyright (c) 2013-2021 Kura
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/blackhole.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*/
(The MIT License)

Copyright (c) 2013-2020 Kura
Copyright (c) 2013-2021 Kura

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-application.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-child.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-config.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-control.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-daemon.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-exceptions.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-logs.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-protocols.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-smtp.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-streams.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-supervisor.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-utils.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api-worker.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
# (The MIT License)
#
# Copyright (c) 2013-2020 Kura
# Copyright (c) 2013-2021 Kura
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
Expand Down
1 change: 0 additions & 1 deletion docs/source/changelog.rst

This file was deleted.

Loading

0 comments on commit 728cba1

Please sign in to comment.