s3transfer
s3transfer copied to clipboard
Refactor setup.py to use Path and read_text for file reading
Changes:
- Updated
setup.pyto usePath.read_text()instead ofopen()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