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 66 tags :
77 - " v*"
88 pull_request :
9+
910jobs :
1011 build-and-test :
11- runs-on : ubuntu-latest
12+ runs-on : ubuntu-20.04
1213 strategy :
1314 matrix :
1415 python-version :
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
Original file line number Diff line number Diff line change 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
201201autoclass_content = "both"
Original file line number Diff line number Diff line change 33import sys
44import ctypes
55import ctypes .util
6- from distutils .sysconfig import get_python_lib
76from itertools import product
87from subprocess import Popen , PIPE
98from 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
1924def _insert_ko (modprobe , modname ):
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33__pkgname__ = "python-iptables"
4- __version__ = "1.0.2-dev "
4+ __version__ = "1.1.0 "
Original file line number Diff line number Diff line change 33"""python-iptables setup script"""
44
55from setuptools import setup , Extension
6- #from distutils.core import setup, Extension
76
87# make pyflakes happy
98__pkgname__ = None
You can’t perform that action at this time.
0 commit comments