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
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This is a skeleton Travis CI config file that provides a starting point for adding CI
# to a Python project. Since we primarily develop in python3, this skeleton config file
# will be specific to that language.
#
# See https://config.travis-ci.com/ for a full list of configuration options.

os: linux
Expand All @@ -9,9 +13,10 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"

# Scripts to run at install stage
install: ./configure

# Scripts to run at script stage
script: tmp/bin/pytest
script: tmp/bin/pytest -vvs -n 2
9 changes: 8 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ Release notes
vNext
-----

Version 21.1.21
---------------

*2020-01-21*
- Improve error reporting when oding missing DLLs
- Clean config and improve basic documentation


Version 21.1.14
----------------
---------------

*2020-11-12*
- Update dependencies
Expand Down
10 changes: 7 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ CommonCode
- homepage_url: https://github.com/nexB/commoncode
- keywords: utilities, scancode-toolkit, commoncode


Commoncode provides a set of common functions and utilities for handling various things like paths,
dates, files and hashes. Originally split from scancode-toolkit

dates, files and hashes. It started as library in scancode-toolkit.
Visit https://aboutcode.org and https://github.com/nexB/ for support and download.


To install this package use::

pip install commoncode]


To set up the development environment::

source configure
Expand Down
14 changes: 14 additions & 0 deletions commoncode.ABOUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
about_resource: .
copyright: copyright (c) nexB. Inc. and others
description: Commoncode provides a set of common functions and utilities for
handling various things like paths, dates, files and hashes. It started as
library in scancode-toolkit.
keywords: utilities, commoncode, scancode-toolkit
homepage_url: https://github.com/nexB/commoncode
holder: nexB. Inc. and others
holder_contact: info@aboutcode.org
homepage_url: https://github.com/nexB/commoncode
license_expression: apache-2.0
name: commoncode
package_url: pkg:pypi/commoncode
primary_language: Python
2 changes: 1 addition & 1 deletion etc/ci/azure-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
image_name: ''
python_versions: []
test_suites: {}
python_architecture: x86
python_architecture: x64

jobs:
- job: ${{ parameters.job_name }}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ norecursedirs = [
"thirdparty",
"tmp",
"tests/data",
".eggs"
".eggs",
]

python_files = "*.py"

python_classes = "Test"
Expand Down
6 changes: 3 additions & 3 deletions src/commoncode/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ def load_shared_library(dll_path, lib_dir):
`lib_dir` to the path.
"""

if not path.exists(dll_path):
raise ImportError('Shared library does not exists: %(dll_path)r' % locals())
if not dll_path or not path.exists(dll_path):
raise ImportError(f'Shared library "dll_path" does not exists: dll_path="{dll_path}" and lib_dir={lib_dir})')

if lib_dir and not path.exists(lib_dir):
raise ImportError('Shared library "lib_dir" does not exists: %(lib_dir)r' % locals())
raise ImportError(f'Shared library "lib_dir" does not exists: dll_path="{dll_path}" and lib_dir={lib_dir})')

if not isinstance(dll_path, str):
dll_path = os.fsdecode(dll_path)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.