Skip to content

Commit 94d0a6d

Browse files
authored
Merge branch 'master' into fix-interface-name-is-too-big
2 parents 3456ef1 + 794aace commit 94d0a6d

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
tags:
77
- "v*"
88
pull_request:
9+
910
jobs:
1011
build-and-test:
11-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1213
strategy:
1314
matrix:
1415
python-version:
@@ -19,9 +20,9 @@ jobs:
1920
- "3.11"
2021
steps:
2122
- name: Check out code
22-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2324
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v5
2526
with:
2627
python-version: ${{ matrix.python-version }}
2728
- name: Build package
@@ -35,15 +36,15 @@ jobs:
3536
run: sudo PATH=$PATH coverage run setup.py test
3637

3738
release:
38-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-20.04
3940
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
4041
needs:
4142
- build-and-test
4243
steps:
4344
- name: Check out code
44-
uses: actions/checkout@v2
45+
uses: actions/checkout@v4
4546
- name: Set up Python
46-
uses: actions/setup-python@v2
47+
uses: actions/setup-python@v5
4748
with:
4849
python-version: "3.x"
4950
- name: Build package

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,6 @@
196196

197197

198198
# Example configuration for intersphinx: refer to the Python standard library.
199-
intersphinx_mapping = {'http://docs.python.org/': None}
199+
intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
200200

201201
autoclass_content="both"

iptc/util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44
import ctypes
55
import ctypes.util
6-
from distutils.sysconfig import get_python_lib
76
from itertools import product
87
from subprocess import Popen, PIPE
98
from sys import version_info
@@ -14,6 +13,12 @@ def get_config_var(name):
1413
if name == 'SO':
1514
return '.so'
1615
raise Exception('Not implemented')
16+
try:
17+
from distutils.sysconfig import get_python_lib
18+
except ModuleNotFoundError:
19+
import sysconfig
20+
def get_python_lib():
21+
return sysconfig.get_path("purelib")
1722

1823

1924
def _insert_ko(modprobe, modname):

iptc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22

33
__pkgname__ = "python-iptables"
4-
__version__ = "1.0.2-dev"
4+
__version__ = "1.1.0"

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""python-iptables setup script"""
44

55
from setuptools import setup, Extension
6-
#from distutils.core import setup, Extension
76

87
# make pyflakes happy
98
__pkgname__ = None

0 commit comments

Comments
 (0)