Merge pull request #80 from oremanj/release-v1.0.0

Release v1.0.0
This commit is contained in:
Joshua Oreman 2022-01-14 13:31:55 -07:00 committed by GitHub
commit a3dedaea57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 6 deletions

View File

@ -1,4 +1,4 @@
v1.0.0, unreleased
v1.0.0, 14 Jan 2022
Propagate exceptions raised by the user's packet callback
Avoid calls to the packet callback during queue unbinding
Raise an error if a packet verdict is set after its parent queue is closed
@ -9,7 +9,7 @@ v1.0.0, unreleased
Add type hints
Remove the Packet.payload attribute; it was never safe (treated as a char* but not NUL-terminated) nor documented, but was exposed in the API (perhaps inadvertently).
v0.9.0, 12 Jan 2021
v0.9.0, 12 Jan 2022
Improve usability when Packet objects are retained past the callback
Add Packet.retain() to save the packet contents in such cases
Eliminate warnings during build on py3

View File

@ -1,3 +1,11 @@
.. image:: https://img.shields.io/pypi/v/netfilterqueue.svg
:target: https://pypi.org/project/netfilterqueue
:alt: Latest PyPI version
.. image:: https://github.com/oremanj/python-netfilterqueue/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/oremanj/python-netfilterqueue/actions?query=branch%3Amaster
:alt: Automated test status
==============
NetfilterQueue
==============
@ -9,6 +17,9 @@ or given a mark.
libnetfilter_queue (the netfilter library, not this module) is part of the
`Netfilter project <http://netfilter.org/projects/libnetfilter_queue/>`_.
The current version of NetfilterQueue requires Python 3.6 or later.
The last version with support for Python 2.7 was 0.9.0.
Example
=======

View File

@ -1,4 +1,4 @@
# This file is imported from __init__.py and exec'd from setup.py
__version__ = "0.9.0+dev"
VERSION = (0, 9, 0)
__version__ = "1.0.0+dev"
VERSION = (1, 0, 0)

View File

@ -44,8 +44,8 @@ setup(
name="NetfilterQueue",
version=__version__,
license="MIT",
author="Matthew Fox",
author_email="matt@tansen.ca",
author="Matthew Fox <matt@tansen.ca>, Joshua Oreman <oremanj@gmail.com>",
author_email="oremanj@gmail.com",
url="https://github.com/oremanj/python-netfilterqueue",
description="Python bindings for libnetfilter_queue",
long_description=open("README.rst", encoding="utf-8").read(),