Skip to content

Commit 7ac730c

Browse files
Refine setup.py
1 parent 39b53ef commit 7ac730c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
import sys
45
from pyp2rpm.version import version
56

67
from setuptools import setup
@@ -21,7 +22,7 @@ def run(self):
2122
# Build test data
2223
from subprocess import call
2324
from shutil import copy
24-
call(['python3', 'setup.py', 'sdist'],
25+
call([sys.executable, 'setup.py', 'sdist'],
2526
cwd='tests/test_data/utest')
2627
copy('tests/test_data/utest/dist/utest-0.1.0.tar.gz',
2728
'tests/test_data/')
@@ -52,7 +53,8 @@ def run(self):
5253
'click',
5354
'Jinja2',
5455
],
55-
tests_require=['pytest < 5;python_version<"3.5"', 'pytest < 6.2;python_version=="3.5"', 'pytest;python_version>="3.6"'],
56+
tests_require=['packaging < 21;python_version<"3.5"', 'pytest < 5;python_version<"3.5"',
57+
'pytest < 6.2;python_version=="3.5"', 'pytest;python_version>="3.6"'],
5658
extras_require={
5759
'venv metadata': ['virtualenv-api'],
5860
'sclize': ['spec2scl >= 1.2.0']

0 commit comments

Comments
 (0)