Skip to content

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

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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