Skip to content

Commit

Permalink
Merge pull request #58 from raimon49/release-2.0.1
Browse files Browse the repository at this point in the history
Release 2.0.1
  • Loading branch information
raimon49 authored Jan 6, 2020
2 parents 2067dc5 + c68ece3 commit 742c814
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### 2.0.1

* Better license file open handling in Python 3

### 2.0.0

* Dropped support Python 2.7
Expand Down
6 changes: 3 additions & 3 deletions piplicenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
open = open # allow monkey patching

__pkgname__ = 'pip-licenses'
__version__ = '2.0.0'
__version__ = '2.0.1'
__author__ = 'raimon'
__license__ = 'MIT License'
__summary__ = ('Dump the software license list of '
Expand Down Expand Up @@ -139,7 +139,7 @@ def get_pkg_license_file(pkg):
for test_file in glob.glob(license_file_base):
if os.path.exists(test_file):
license_file = test_file
with open(test_file) as license_file_handle:
with open(test_file, encoding='utf-8') as license_file_handle:
license_text = license_file_handle.read()
break
return (license_file, license_text)
Expand Down Expand Up @@ -598,7 +598,7 @@ def save_if_needs(output_file, output_string):
return

try:
with open(output_file, 'w') as f:
with open(output_file, 'w', encoding='utf-8') as f:
f.write(output_string)
sys.stdout.write('created path: ' + output_file + '\n')
sys.exit(0)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bdist_wheel]
universal=1
universal=0
[aliases]
test=pytest
[tool:pytest]
Expand Down

0 comments on commit 742c814

Please sign in to comment.