8000 utf-8 bug fix by stonebig · Pull Request #1270 · winpython/winpython · GitHub
[go: up one dir, main page]

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
2 changes: 1 addition & 1 deletion winpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

__version__ = '7.0.20231022'
__version__ = '7.0.20231103'
__license__ = __doc__
__project_url__ = 'http://winpython.github.io/'
18 changes: 18 additions & 0 deletions winpython/data/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3712,3 +3712,21 @@ description = Fast N-dimensional aggregation functions with Numba
[numpy-groupies]
description = Optimised tools for group-indexing operations: aggregated sum and more.

[deepmerge]
description = a toolset to deeply merge python dictionaries.

[ragna]
description = RAG orchestration framework

[emoji]
description = Emoji for Python

[huey]
description = huey, a little task queue

[pydantic-settings]
description = Settings management using Pydantic

[questionary]
description = Python library to build pretty command line user prompts ⭐️

6 changes: 3 additions & 3 deletions winpython/wppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
# we store only normalized names now (PEP 503)
db = cp.ConfigParser()
try:
db.read_file(open(str(Path(DATA_PATH) / database)), encoding = 'utf-8')
db.read_file(open(str(Path(DATA_PATH) / database), encoding = 'utf-8'))
except:
db.read_file(open(str(Path(DATA_PATH) / database)))
db.read_file(open(str(Path(DATA_PATH) / database)))
my_metadata = dict(
description="",
url="https://pypi.org/project/" + name,
Expand Down Expand Up @@ -115,7 +115,7 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
try:
db[normalize(name)] = {}
db[normalize(name)]["description"] = my_metadata["description"]
with open(str(Path(DATA_PATH) / database), "w") as configfile:
with open(str(Path(DATA_PATH) / database), "w", encoding='UTF-8') as configfile:
db.write(configfile)
except:
pass
Expand Down
0