Skip to content

Commit 583819e

Browse files
Add dev tools in setup.py
Signed-off-by: Abhishek Kumar <abhishek.kasyap09@gmail.com>
1 parent f02c00b commit 583819e

5 files changed

Lines changed: 30 additions & 22 deletions

File tree

.travis.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ matrix:
1515
language: generic
1616
python:
1717

18-
- os: osx
19-
env:
20-
- PYTHON="2.7.15"
21-
- TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
22-
language: generic
23-
python:
18+
# - os: osx
19+
# env:
20+
# - PYTHON="2.7.15"
21+
# - TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
22+
# language: generic
23+
# python:
2424

25-
- os: linux
26-
sudo: required
27-
env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
28-
language: python
29-
python: "2.7"
30-
dist: xenial
25+
# - os: linux
26+
# sudo: required
27+
# env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
28+
# language: python
29+
# python: "2.7"
30+
# dist: xenial
3131

32-
- os: linux
33-
sudo: required
34-
env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
35-
language: python
36-
python: "2.7"
37-
dist: bionic
32+
# - os: linux
33+
# sudo: required
34+
# env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
35+
# language: python
36+
# python: "2.7"
37+
# dist: bionic
3838

3939
- os: linux
4040
sudo: required

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
################################################################################
66
environment:
77
matrix:
8-
- PYTHON: "C:\\Python27"
9-
- PYTHON: "C:\\Python27-x64"
8+
# - PYTHON: "C:\\Python27"
9+
# - PYTHON: "C:\\Python27-x64"
1010
- PYTHON: "C:\\Python36"
1111
- PYTHON: "C:\\Python36-x64"
1212
# - PYTHON: "C:\\Python37"

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,14 @@ def read(*names, **kwargs):
216216

217217
#Fix Me later
218218
'pytest',
219+
'aboutcode-toolkit',
220+
'apipkg',
221+
'py',
222+
'colorama',
223+
'execnet',
219224
'pytest-xdist',
225+
'bumpversion',
226+
'coverage',
220227
'pytest-rerunfailures',
221228
'pytest-forked',
222229
'pytest-cov',

src/extractcode/uncompress.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import gzip
3131
import logging
3232
import os
33+
from shutil import move
3334

3435
try:
3536
# These imports add support for multistream BZ2 files
@@ -68,7 +69,7 @@ def uncompress(location, target_dir, decompressor, suffix=EXTRACT_SUFFIX):
6869
target_location = os.path.join(target_dir, os.path.basename(location) + suffix)
6970
if os.path.exists(target_location):
7071
fileutils.delete(target_location)
71-
os.rename(tmp_loc, target_location)
72+
move(tmp_loc, target_location)
7273
return warnings
7374

7475

tests/scancode/test_scancode_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
@unittest.skipIf(not on_linux, 'Check about files only on one OS')
4949
class TestCheckAboutFiles(unittest.TestCase):
5050
def test_about_files_thirdparty(self):
51-
subprocess.check_output('bin/about check thirdparty/'.split(), cwd=root_dir)
51+
subprocess.check_output('bin/about check thirdparty_general/'.split(), cwd=root_dir)
5252

5353
def test_about_files_src(self):
5454
subprocess.check_output('bin/about check src/'.split(), cwd=root_dir)

0 commit comments

Comments
 (0)