File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 6
6
tags :
7
7
- " v*"
8
8
pull_request :
9
+
9
10
jobs :
10
11
build-and-test :
11
- runs-on : ubuntu-latest
12
+ runs-on : ubuntu-20.04
12
13
strategy :
13
14
matrix :
14
15
python-version :
19
20
- " 3.11"
20
21
steps :
21
22
- name : Check out code
22
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v4
23
24
- name : Set up Python ${{ matrix.python-version }}
24
- uses : actions/setup-python@v2
25
+ uses : actions/setup-python@v5
25
26
with :
26
27
python-version : ${{ matrix.python-version }}
27
28
- name : Build package
@@ -35,15 +36,15 @@ jobs:
35
36
run : sudo PATH=$PATH coverage run setup.py test
36
37
37
38
release :
38
- runs-on : ubuntu-latest
39
+ runs-on : ubuntu-20.04
39
40
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
40
41
needs :
41
42
- build-and-test
42
43
steps :
43
44
- name : Check out code
44
- uses : actions/checkout@v2
45
+ uses : actions/checkout@v4
45
46
- name : Set up Python
46
- uses : actions/setup-python@v2
47
+ uses : actions/setup-python@v5
47
48
with :
48
49
python-version : " 3.x"
49
50
- name : Build package
Original file line number Diff line number Diff line change 196
196
197
197
198
198
# 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 ) }
200
200
201
201
autoclass_content = "both"
Original file line number Diff line number Diff line change 3
3
import sys
4
4
import ctypes
5
5
import ctypes .util
6
- from distutils .sysconfig import get_python_lib
7
6
from itertools import product
8
7
from subprocess import Popen , PIPE
9
8
from sys import version_info
@@ -14,6 +13,12 @@ def get_config_var(name):
14
13
if name == 'SO' :
15
14
return '.so'
16
15
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" )
17
22
18
23
19
24
def _insert_ko (modprobe , modname ):
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
__pkgname__ = "python-iptables"
4
- __version__ = "1.0.2-dev "
4
+ __version__ = "1.1.0 "
Original file line number Diff line number Diff line change 3
3
"""python-iptables setup script"""
4
4
5
5
from setuptools import setup , Extension
6
- #from distutils.core import setup, Extension
7
6
8
7
# make pyflakes happy
9
8
__pkgname__ = None
You can’t perform that action at this time.
0 commit comments