Skip to content

Commit a4a3554

Browse files
committed
Fixed setup.py on windows 🦙
1 parent d0a7596 commit a4a3554

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changelog
22

3-
## 0.10.0 :
3+
## 0.10.0 : 01.06.2020
44

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

78
## 0.9.0 : 11.05.2020
89

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
def read_files(files):
1111
data = []
1212
for file in files:
13-
with open(file) as f:
14-
data.append(f.read())
13+
with open(file, encoding='utf-8') as my_file:
14+
data.append(my_file.read())
1515
return "\n".join(data)
1616

1717

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

2222
setup(

0 commit comments

Comments
 (0)