Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
language: python

python:
- '2.7'
- '2.7'

env:
global:
- PYTEST="bin/py.test -n 2 -vvs"

matrix:
- TEST_SUITE="$PYTEST"
- TEST_SUITE="./etc/release/release.sh"

install:
- ./configure
script: bin/py.test -n 2

script:
- $TEST_SUITE

notifications:
slack:
on_success: always
on_failure: always
rooms:
- secure: VODG+P5REBhL7psD3XydwJBbEpB+3HBKsmEIHEgxrdPDvY/KDP35JTpJdkzhb+nc7EvIPdgVbVcpbiacDtXOskk4Si7X9sAXnQt+P0LTol5Pk0/qbC5BlS+HebPB5LUmUv4gYBhyLHbWvxOrBOJ9K7fNuH2I1+NWRUzHUWmlNwqwVvWZwuFNISVEqVvVP/+a9NUYJLYKR9h6TOXjCCVUdOfho4RW/0MPG5+R337QgaAFzoi90Ug3vR/IU29e1PMWbAxgxMVcDt+cSdqcu7mkn6esPIglxFW4rW2qWZFLRfOdJqvq0QTvx/zK2BYl1U5fHxyslb5eO1UhzfQjpSQcgy/Ex7K62YB7B6hVaOWg7j7/3+hbVARe0MKOFwDYEeQkLA5PQcquk7rAvnr2QfAesENXDIzxL/ghXzB94JAqm4pcElMfZIV/H9+5FSsW1OmOEF2g+HnytyCYGyRFZIgKahVHt+QUFXny9D53UujqqZe4Za223D4tRCToHkKpHvRkbPP66XRSxHDuoLRzO3hJLHAxHfoV+1rIkFq+ymryaobUX1kojHx8ihRDZn/ptNGIIm+GGDBQQwXcjf0oQW4keeKnA9bvi5MtHIjpGEZimW0UK1EvgtP0cN/xBEr2EHJDinFYpWoF1zX61P/S34z6OOAlt8NARLyZy/R+9ck8lRQ=
- secure: VODG+P5REBhL7psD3XydwJBbEpB+3HBKsmEIHEgxrdPDvY/KDP35JTpJdkzhb+nc7EvIPdgVbVcpbiacDtXOskk4Si7X9sAXnQt+P0LTol5Pk0/qbC5BlS+HebPB5LUmUv4gYBhyLHbWvxOrBOJ9K7fNuH2I1+NWRUzHUWmlNwqwVvWZwuFNISVEqVvVP/+a9NUYJLYKR9h6TOXjCCVUdOfho4RW/0MPG5+R337QgaAFzoi90Ug3vR/IU29e1PMWbAxgxMVcDt+cSdqcu7mkn6esPIglxFW4rW2qWZFLRfOdJqvq0QTvx/zK2BYl1U5fHxyslb5eO1UhzfQjpSQcgy/Ex7K62YB7B6hVaOWg7j7/3+hbVARe0MKOFwDYEeQkLA5PQcquk7rAvnr2QfAesENXDIzxL/ghXzB94JAqm4pcElMfZIV/H9+5FSsW1OmOEF2g+HnytyCYGyRFZIgKahVHt+QUFXny9D53UujqqZe4Za223D4tRCToHkKpHvRkbPP66XRSxHDuoLRzO3hJLHAxHfoV+1rIkFq+ymryaobUX1kojHx8ihRDZn/ptNGIIm+GGDBQQwXcjf0oQW4keeKnA9bvi5MtHIjpGEZimW0UK1EvgtP0cN/xBEr2EHJDinFYpWoF1zX61P/S34z6OOAlt8NARLyZy/R+9ck8lRQ=
email: false
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software license
================

Copyright (c) 2017 nexB Inc. and others. All rights reserved.
Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
http://nexb.com and https://github.com/nexB/deltacode/
The DeltaCode software is licensed under the Apache License version 2.0.
Data generated with DeltaCode require an acknowledgment.
Expand Down
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ For example::



Once you have the two codebase scans, simply install/configure
deltacode, and run it on the two scans::
Once you have the two codebase scans, simply run deltacode on the two scans::

(deltacode) $ deltacode --help
$ ./deltacode --help
Usage: deltacode [OPTIONS]

Identify the changes that need to be made to the 'old' scan file (-o or
Expand All @@ -54,7 +53,7 @@ deltacode, and run it on the two scans::
files in the .json or .csv output. If not
selected, only changed files are included.

(deltacode) $ deltacode -n ~/psql-10.0-fileinfo.json -o ~/psql-9.6-fileinfo.json -j ~/psql-10.0-psql-9.6-delta.json
$ ./deltacode -n ~/psql-10.0-fileinfo.json -o ~/psql-9.6-fileinfo.json -j ~/psql-10.0-psql-9.6-delta.json

=========
Problems?
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2017 nexB Inc. http://www.nexb.com/ - All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. http://www.nexb.com/ - All rights reserved.
#
################################
# change these variables to customize this script locally
Expand Down
2 changes: 1 addition & 1 deletion configure.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo OFF

@rem Copyright (c) 2015 nexB Inc. http://www.nexb.com/ - All rights reserved.
@rem Copyright (c) 2015-2018 nexB Inc. http://www.nexb.com/ - All rights reserved.

@rem ################################
@rem # change these variables to customize this script locally
Expand Down
2 changes: 1 addition & 1 deletion deltacode.ABOUT
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ license: apache-2.0
license_text_file: apache-2.0.LICENSE
notice_file: NOTICE

copyright: Copyright (c) 2017 nexB Inc. and others
copyright: Copyright (c) 2017-2018 nexB Inc. and others
6 changes: 3 additions & 3 deletions etc/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

def unsupported():
print('Unsupported OS/platform.')
print('See https://github.com/nexB/scancode-toolkit/ for supported OS/platforms.')
print('Enter a ticket https://github.com/nexB/scancode-toolkit/issues asking for support of your OS/platform combo.')
print('See https://github.com/nexB/deltacode/ for supported OS/platforms.')
print('Enter a ticket https://github.com/nexB/deltacode/issues asking for support of your OS/platform combo.')
sys.exit(1)

if sys.maxsize > 2 ** 32:
Expand All @@ -36,4 +36,4 @@ def unsupported():

arches = supported_combos[os]
if arch not in arches:
unsupported()
unsupported()
2 changes: 1 addition & 1 deletion etc/configure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python

# Copyright (c) 2015 nexB Inc. http://www.nexb.com/ - All rights reserved.
# Copyright (c) 2018 nexB Inc. http://www.nexb.com/ - All rights reserved.

"""
This script a configuration helper to select pip requirement files to install
Expand Down
2 changes: 1 addition & 1 deletion etc/release/release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2017 nexB Inc. http://www.nexb.com/ - All rights reserved.
# Copyright (c) 2018 nexB Inc. http://www.nexb.com/ - All rights reserved.
#

# ScanCode release script
Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def read(*names, **kwargs):
name='deltacode',
version=get_version(),
license='Apache-2.0',
description='Delta-related utilities.',
long_description='Delta-related utilities.',
description='Utility for comparing codebases using scancode-toolkit',
long_description=read('README.rst'),
author='nexB Inc.',
author_email='info@nexb.com',
url='https://github.com/nexb/deltacode',
Expand All @@ -89,9 +89,7 @@ def read(*names, **kwargs):
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Utilities',
Expand Down
2 changes: 1 addition & 1 deletion src/deltacode/NOTICE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software license
================

Copyright (c) 2017 nexB Inc. and others. All rights reserved.
Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
http://nexb.com and https://github.com/nexB/deltacode/
The DeltaCode software is licensed under the Apache License version 2.0.
Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion src/deltacode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion src/deltacode/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion src/deltacode/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion src/deltacode/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down Expand Up @@ -42,7 +42,7 @@

def load_csv(location):
"""
Copied from https://github.com/nexB/scancode-toolkit/blob/848de9fa4aaa1bd487b1cb36a8559a473e6459af/etc/scripts/test_json2csv.py
Copied from https://github.com/nexB/scancode-toolkit/blob/develop/etc/scripts/test_json2csv.py
Load a CSV file at location and return a tuple of (field names, list of rows as
mappings field->value).
"""
Expand All @@ -56,7 +56,7 @@ def check_csvs(
result_file, expected_file,
regen=False):
"""
Copied from https://github.com/nexB/scancode-toolkit/blob/848de9fa4aaa1bd487b1cb36a8559a473e6459af/etc/scripts/test_json2csv.py
Copied from https://github.com/nexB/scancode-toolkit/blob/develop/etc/scripts/test_json2csv.py
Load and compare two CSVs.
`ignore_keys`, a tuple of keys that will be ignored in the comparisons,
has been removed from this function as unnecessary.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_deltacode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/deltacode/
# The DeltaCode software is licensed under the Apache License version 2.0.
# Data generated with DeltaCode require an acknowledgment.
Expand Down