Skip to content

Commit a8d19d1

Browse files
authored
Merge pull request #226 from CESNET/pytrap_uriplist
Pytrap improved UnirecIPAddr and added UnirecIPList
2 parents 10f312c + 47a45e7 commit a8d19d1

File tree

15 files changed

+859
-14
lines changed

15 files changed

+859
-14
lines changed

pytrap/Makefile.am

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
.PHONY: rpm
22

3-
EXTRA_DIST=MANIFEST.in README README.md test.sh nemea-pytrap.spec setup.py src/pytrapmodule.c src/unirecmodule.c src/fields.c src/fields.h
3+
EXTRA_DIST=MANIFEST.in README README.md test.sh nemea-pytrap.spec setup.py \
4+
src/pytrapmodule.c \
5+
src/unirecmodule.c \
6+
src/unirecipaddr.c \
7+
src/unirecipaddr.h \
8+
src/unirecmacaddr.c \
9+
src/unirecmacaddr.h \
10+
src/unirectemplate.h \
11+
src/pytrapexceptions.h \
12+
src/iplist.c \
13+
src/iplist.h \
14+
src/fields.c src/fields.h
415

516
rpm:
617
mkdir -p RPMBUILD/SOURCES

pytrap/nemea-pytrap.spec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
%endif
77

88
Name: %{pypi_name}
9-
Version: 0.16.0
10-
Release: 1%{?dist}
9+
Version: 0.17.0
10+
Release: 2%{?dist}
1111
Summary: Python extension of the NEMEA project
1212

1313
License: BSD
@@ -55,5 +55,12 @@ TRAP_SOCKET_DIR=/tmp PAGER="" %{__python3} setup.py test
5555
%{python3_sitearch}/*
5656

5757
%changelog
58+
* Fri Jul 26 2024 Tomas Cejka <[email protected]> - 0.17.0
59+
- Add UnirecIPList() for lookup IPs in the list of IP prefixes
60+
- Add UnirecIPAddr.from_ipaddress() to load from python ipaddress
61+
- Add UnirecIPAddrRange.from_ipaddress() to load from python ipaddress
62+
- Add UnirecIPAddr.to_ipaddress() for convertion to python ipaddress
63+
- Add UnirecIPAddrRange.to_ipaddress() for convertion to python ipaddress
5864
* Thu Jul 21 2016 root - 0.9.6-1
5965
- Initial package.
66+

pytrap/setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SRC_PATH = os.path.relpath(os.path.join(os.path.dirname(__file__), ".", "src"))
55

66
name = 'nemea-pytrap'
7-
version = '0.16.0'
7+
version = '0.17.0'
88
release = version
99
description = 'Python extension of the NEMEA project.'
1010
long_description = 'The pytrap module is a native Python extension that allows for writing NEMEA modules in Python.'
@@ -14,7 +14,9 @@
1414
maintainer_email = '[email protected]'
1515

1616
pytrapmodule = Extension('pytrap.pytrap',
17-
sources = ['src/pytrapmodule.c', 'src/unirecmodule.c', 'src/unirecipaddr.c', 'src/unirecmacaddr.c', 'src/fields.c'],
17+
sources = ['src/pytrapmodule.c', 'src/unirecmodule.c',
18+
'src/unirecipaddr.c', 'src/unirecmacaddr.c',
19+
'src/iplist.c', 'src/fields.c'],
1820
libraries = ['trap', 'unirec'])
1921

2022
try:

pytrap/src/ipblacklist.c

Whitespace-only changes.

0 commit comments

Comments
 (0)