Closed bzah closed 5 months ago
Thanks so much for upstreaming your changes! I've been meaning to perform an update of the existing projects versioned here, so it'll be great to have your improvements as well!
- Remove the leading
$
when suggestion commands, it makes it harder to copy-paste commands.
I think I added this specifically so that:
If you think it's unnecessary, I'll go with your suggestion.
- use
python -m pip install
no need to show flit here.
Good call. I think I was reading some older documentation for flit
when I wrote that. This will make our (development) lives much less complicated.
we could also change the overall layout to follow a src layout instead of a flat layout, but this may have a higher migration cost than the other changes suggested above.
That's a major change, but I would be willing to discuss it at the very least. This would affect several projects, but if the gains are worthwhile, I don't see an issue with migrating the template over. Perhaps we can start an issue about that specifically?
Remove the leading $ when suggestion commands, it makes it harder to copy-paste commands.
It's clear to users that these are terminal commands
I think it's the role of the renderer to make it clear it's a command and both sphinx for readthedoc or github are doing it well IMO. It's only when reading the raw rst file that it can be confusing right ?
I agree for the src layout, I will create a dedicated issue.
Description
This issue is meant to upstream the improvements suggested on xncml by @fmigneault comments in the PR https://github.com/xarray-contrib/xncml/pull/76
On CHANGELOG.rst/CHANGES.rst:
.. _changes_x.y.z:
as section titles and add the bummyversion config to manage these automatically (example of config here).On CONTRIBUTING.rst
$
when suggestion commands, it makes it harder to copy-paste commands... highlight:: shell
at the top and use explicit.. code-block:: shell
when needed.make dev
andmake release
), instead of rewriting their content through individual commands.On Makefile
python -m pip install
no need to show flit here.python -m pip install --editable .[all]
(see pyproject.toml below for the[all]
part).make release-conda
do wrap the conda release process described in CONTRIBUTING.rst~ (edit: not necessary as the initial release is done only once and subsequent release are managed automatically on the feedstock).pre-commit install
step tomake dev
.On pyproject.toml
all = ["{{project_name}}[dev]", "{{project_name}}[docs]"]
to easily install all dependency for when stting up a local dev environment.On readme.rst
.. code-block:: python
instead of ```python$
for shell commands~At last, an architectural suggestion: we could also change the overall layout to follow a src layout instead of a flat layout, but this may have a higher migration cost than the other changes suggested above.~ (separate issue #39)
note: I will be opening a PR shortly with these changes (apart from the architectural change).