-
Notifications
You must be signed in to change notification settings - Fork 15
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
Replace setup.py by pyproject.toml #33
base: main
Are you sure you want to change the base?
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 Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ 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 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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_dir
andpy_modules
have 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_data
was omitted since that is on by default.