Uh oh!
There was an error while loading. Please reload this page.
chore: migrate to uv, src layout, and PEP 8 package name - #79
Conversation
Thanks for the contribution! Before we can merge this, we need @n3rada to sign the Salesforce Inc. Contributor License Agreement. |
n3rada
commented
Jun 12, 2026
This PR also resolves #74. By locking dependencies with |
n3rada
commented
Jun 12, 2026
This PR also addresses #68. The |
n3rada
commented
Jun 12, 2026
Tangentially related to #67 as well: the old |
Hello 👋
I took some time to modernise the packaging of this project so it is easier to contribute to and install from.
What Changed
setup.py,setup.cfg,requirements.txt, andrequirements-dev.txtwith a singlepyproject.tomlcompliant with PEP 621, usinguv_buildas the build backend.src/layout, which is now the recommended structure for Python projects to avoid import shadowing issues.SalesforcePy/tosalesforcepy/to follow PEP 8 (lowercase package names).import salesforcepy as sfdc).pythonpath = ["src", "tests"]to the pytest config so tests resolve correctly without any install step.pyproject.toml.from __future__ import absolute_importacross all modules (Python 2 compatibility shim, not needed on Python 3).try/except ImportErrorurllib compat block insfdc.pyfor the same reason.SyntaxWarningcaused by invalid escape sequences (\**kwargs) in docstrings.README.mdwith installation instructions foruvandpip.All 79 existing tests pass without modification to the test logic itself.
Hope this is useful.
Happy to adjust anything.