Skip to content

Commit aeeae0a

Browse files
Merge pull request #336 from pypa/fix-py38
fix #335 - use signature and add py38 to the matrix
2 parents fcf7c5e + ef1ffef commit aeeae0a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ python:
2222
- '3.4'
2323
- '3.5'
2424
- '3.6'
25+
- '3.7'
26+
- '3.8-dev'
27+
dist: xenial # needed for 3.7+
2528
env:
2629
- TOXENV=py-test
2730

src/setuptools_scm/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def function_has_arg(fn, argname):
100100
if PY2:
101101
argspec = inspect.getargspec(fn).args
102102
else:
103-
argspec = inspect.getfullargspec(fn).args
103+
104+
argspec = inspect.signature(fn).parameters
104105

105106
return argname in argspec
106107

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[tox]
2-
envlist=py{27,34,35,36,37}-test,flake8,check_readme,py{27,37}-selfcheck
2+
envlist=py{27,34,35,36,37,38}-test,flake8,check_readme,py{27,37}-selfcheck
33

44
[pytest]
55
filterwarnings=error
6+
markers=
7+
issue(id): reference to github issue
68

79
[flake8]
810
max-complexity = 10

0 commit comments

Comments
 (0)