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

Skip to content

utf-8 bug fix #1270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2023
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