Replace setup.py by pyproject.toml#33
Conversation
|
Dear @coroa Many thanks for your contribution. I will review it asap in the next few days. |
- corrected some typos - added the client
- removed `setup.py` from `tox.ini`
|
Hi @coroa I corrected some typos in the Best, |
- removed usage of `setup.py` - updated packing commands **to do:** - `test` env still won't work - `docs` env still won't work - test package README builds correctly
|
Not straightforward to configure |
|
True, i haven't used |
|
Thanks @coroa I will keep working on it for the next few weeks while seeing how I found it difficult for me to go along without |
|
All |
|
On a different note, i got rid of |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #33 +/- ##
=======================================
Coverage 93.33% 93.33%
=======================================
Files 4 4
Lines 15 15
Branches 0 2 +2
=======================================
Hits 14 14
Misses 1 1 ☔ View full report in Codecov by Sentry. |
|
Thanks very much, @coroa, for this contribution. I made all tests pass. I want to review the documentation to ensure everything is updated. On another more philosophical note, and to keep the discussion active 😉, I understand the Python community is moving towards the Also, I disagree with placing all configurations in the I may be wrong, but I see a loss of (some) capabilities. But, in this case, I will adopt this strategy because that's where the community is moving and adopting the Many thanks for putting this forward. Hope soon I can finish reviewing it and merge it. |
I actually was not familiar with tox enough which predisposed me against I have a slight preference for less files, so i tend to embrace the It currently feels like everything would converge toward the latter eventually. |
Very interesting. I was not aware tools like vscode were not reading from
IMHO, the difference is that
That's true. 😉 Good conversation! |
|
@joaomcteixeira Found this by accident (seems I have the tendency to leave a comment in arbitrary issues). 😉 🙈 I saw that you've use bumpversion to modify the version in the You could amend the TOML file with this: [project]
# ...
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "mymodule.__version__"}--- Taken from pypa/setuptools#3190 I have to admit, it's currently in beta so you might get some warnings. See also https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata |
The use of setup.py is being superseeded by declarations in pyproject.toml slowly.
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
Here i am migrating everything from setup.py there.
Explicit
packages,package_dirandpy_moduleshave been removed in favour of setuptools defaultsrc-layout-based "Auto-Discovery" (https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#auto-discovery).include_package_datawas omitted since that is on by default.