Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 2 support in pynipap #1356

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:
sudo nipap/nipap-passwd add -u unittest -p gottatest -n unittest
sudo nipap/nipap-passwd add -u readonly -p gottatest --readonly -n "Read-only user for running unit tests"
# install pynipap
cd pynipap; sudo python setup.py install; cd ..
cd pynipap; sudo python3 setup.py install; cd ..
# install nipap-cli dependencies
sudo -H pip3 install -r nipap-cli/requirements.txt
Expand Down
17 changes: 3 additions & 14 deletions pynipap/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,13 @@ Maintainer: Lukas Garberg <[email protected]>
Section: python
Priority: optional
Build-Depends: debhelper (>= 8), dh-python,
python (>= 2.7) | python2 (>= 2.7),
python3 (>= 3.1)
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.1
python3 (>= 3.6)
X-Python3-Version: >= 3.6
Standards-Version: 4.4.0

Package: python-pynipap
Architecture: all
Depends: ${misc:Depends}, python (>= 2.7) | python2 (>= 2.7)
Breaks: ${python:Breaks}
Description: Python module for accessing NIPAP
This package contains a client library for NIPAP. It's function is similar to
a simple ORM, which hides much of the complexity of working directly against
the XML-RPC interface.

Package: python3-pynipap
Architecture: all
Depends: ${misc:Depends}, python3 (>= 3.1)
Depends: ${misc:Depends}, python3 (>= 3.6)
Breaks: ${python3:Breaks}
Description: Python 3 module for accessing NIPAP
This package contains a client library for NIPAP. It's function is similar to
Expand Down
2 changes: 1 addition & 1 deletion pynipap/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export DH_VERBOSE=1
export PYBUILD_NAME=pynipap

%:
dh $@ --with python2,python3 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
6 changes: 1 addition & 5 deletions pynipap/pynipap.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,7 @@
"""
import sys
import logging
if sys.version_info[0] < 3:
import xmlrpclib
int = long
else:
import xmlrpc.client as xmlrpclib
import xmlrpc.client as xmlrpclib

__version__ = "0.32.1"
__author__ = "Kristian Larsson, Lukas Garberg"
Expand Down
3 changes: 1 addition & 2 deletions pynipap/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from distutils.core import setup
import sys
Expand Down Expand Up @@ -26,7 +26,6 @@
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware'
]
Expand Down
Loading