8000 Merge pull request #1270 from stonebig/master · winpython/winpython@02d5194 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02d5194

Browse files
authored
Merge pull request #1270 from stonebig/master
utf-8 bug fix
2 parents f12d3ff + 4c10387 commit 02d5194

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '7.0.20231022'
31+
__version__ = '7.0.20231103'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/data/packages.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3712,3 +3712,21 @@ description = Fast N-dimensional aggregation functions with Numba
37123712
[numpy-groupies]
37133713
description = Optimised tools for group-indexing operations: aggregated sum and more.
37143714
3715+
[deepmerge]
3716+
description = a toolset to deeply merge python dictionaries.
3717+
3718+
[ragna]
3719+
description = RAG orchestration framework
3720+
3721+
[emoji]
3722+
description = Emoji for Python
3723+
3724+
[huey]
3725+
description = huey, a little task queue
3726+
3727+
[pydantic-settings]
3728+
description = Settings management using Pydantic
3729+
3730+
[questionary]
3731+
description = Python library to build pretty command line user prompts ⭐️
3732+

winpython/wppm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
8080
# we store only normalized names now (PEP 503)
8181
db = cp.ConfigParser()
8282
try:
83-
db.read_file(open(str(Path(DATA_PATH) / database)), encoding = 'utf-8')
83+
db.read_file(open(str(Path(DATA_PATH) / database), encoding = 'utf-8'))
8484
except:
85-
db.read_file(open(str(Path(DATA_PATH) / database)))
85+
db.read_file(open(str(Path(DATA_PATH) / database)))
8686
my_metadata = dict(
8787
description="",
8888
url="https://pypi.org/project/" + name,
@@ -115,7 +115,7 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
115115
try:
116116
db[normalize(name)] = {}
117117
db[normalize(name)]["description"] = my_metadata["description"]
118-
with open(str(Path(DATA_PATH) / database), "w") as configfile:
118+
with open(str(Path(DATA_PATH) / database), "w", encoding='UTF-8') as configfile:
119119
db.write(configfile)
120120
except:
121121
pass

0 commit comments

Comments
 (0)
0