Skip to content

Commit

Permalink
Fixed setup.py on windows 🦙
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Jun 1, 2020
1 parent d0a7596 commit a4a3554
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## 0.10.0 :
## 0.10.0 : 01.06.2020

- **Change**: All package exceptions inherits from `ApiFormException`
- **Change**: All package exceptions inherits from `ApiFormException`.
- **Fix**: Specifying encoding while opening files in `setup.py` (failing on Windows OS).

## 0.9.0 : 11.05.2020

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
def read_files(files):
data = []
for file in files:
with open(file) as f:
data.append(f.read())
with open(file, encoding='utf-8') as my_file:
data.append(my_file.read())
return "\n".join(data)


meta = {}
with open('django_api_forms/version.py') as f:
with open('django_api_forms/version.py', encoding='utf-8') as f:
exec(f.read(), meta)

setup(
Expand Down

0 comments on commit a4a3554

Please sign in to comment.