Skip to content

Refactor setup.py to use Path and read_text for file reading#339

Open
mahdirahimi1999 wants to merge 1 commit intoboto:developfrom
mahdirahimi1999:fix/setup-py-context-manager
Open

Refactor setup.py to use Path and read_text for file reading#339
mahdirahimi1999 wants to merge 1 commit intoboto:developfrom
mahdirahimi1999:fix/setup-py-context-manager

Conversation

@mahdirahimi1999
Copy link

Changes:

  • Updated setup.py to use Path.read_text() instead of open() for reading files.
  • Simplified version retrieval and long description loading using pathlib.Path.

Benefits:

  • Cleaner and more efficient file handling.
  • Improved readability and modern Python practices.

Files Modified:

  • setup.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant