You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sagemathgh-36964: Add `# sage_setup: distribution` directives to all files, remove remaining `# coding: utf-8`
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixessagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
These directives at the top of the file inform developers about the
intended assignment of modules to pip-installable distributions.
As of this PR, there should be no change to the existing distributions
(sagemath-categories...) nor the monolithic build of the Sage library.
<!-- Why is this change required? What problem does it solve? -->
- Cherry-picked from sagemath#35095
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixessagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->
- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- Depends on sagemath#36951 (merged here)
- Depends on sagemath#36676 (merged here)
- Depends on sagemath#37667 (merged here)
URL: sagemath#36964
Reported by: Matthias Köppe
Reviewer(s): Kwankyu Lee, Matthias Köppe, Tobias Diez
``pyproject.toml`` (generated from ``pyproject.toml.m4``) as
291
+
`[project] dependencies <https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#declaring-required-dependency>`_ (in the older terminology of ``setup.cfg`` and ``setup.py``,
292
+
these dependencies were known as ``install_requires``).
293
293
294
294
*Reducing module-level run-time dependencies:*
295
295
@@ -467,14 +467,17 @@ features, which will only be working if the user also has installed
467
467
**sagemath-symbolics**.
468
468
469
469
*Declaring optional run-time dependencies:* It is possible to declare
470
-
such optional dependencies as `extras_require <https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies>`_ in ``setup.cfg``
471
-
(generated from ``setup.cfg.m4``). This is a very limited mechanism
470
+
such dependencies as `[project.optional-dependencies] <https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies>`_ in ``pyproject.toml``
471
+
(generated from ``pyproject.toml.m4``).
472
+
(In the older terminology of ``setup.cfg`` and ``setup.py``,
473
+
these optional dependencies were known as ``extras_require``.)
474
+
This is a very limited mechanism
472
475
-- in particular it does not affect the build phase of the
473
476
distribution in any way. It basically only provides a way to give a
474
477
nickname to a distribution that can be installed as an add-on.
475
478
476
-
In our example, we could declare an ``extras_require`` so that users
477
-
could use ``pip install sagemath-coding[symbolics]``.
479
+
In our example, we could declare an optional dependency so that users
480
+
could use ``pip install "sagemath-coding[symbolics]"``.
478
481
479
482
480
483
Doctest-only dependencies
@@ -516,7 +519,7 @@ The version information for dependencies comes from the files
0 commit comments