Skip to content
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

Upgrade version in documentation #690

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented Aug 1, 2024

The latest hazelcast-python-client release is 5.4.0, but the Sphinx configuration has not been updated so it's still labelled 5.3.0 in the documentation.

image

Post Merge:

The latest `hazelcast-python-client` release is `5.4.0`, but the Sphinx configuration has not been updated so it's still labelled `5.3.0` in the documentation.
@JackPGreen JackPGreen requested review from yuce and srknzl August 1, 2024 22:52
@srknzl srknzl merged commit fc30677 into hazelcast:master Aug 2, 2024
9 checks passed
JackPGreen added a commit to JackPGreen/hazelcast-python-client that referenced this pull request Aug 2, 2024
The version specified in the documentation is provided by the Sphinx config in `docs/conf.py`.

This duplicates the version specified in `hazelcast/init.py`, and previously [became outdated](hazelcast#690).

Unfortunately, in this PR I updated the version incorrectly (i.e. to `5.4.0`, not `5.5.0`), highlighting the issues with duplicating this data.

Instead, we should have a single place the version if specified, and reference it in the Sphinx config.

Example output following this change:

In addition, while trying to build the documents locally, `make html` failed with a cryptic error message:
> *** commands commence before first target. Stop.

I didn't have Sphinx installed, and while `make` was happy to evaluate the `if` check for it's existence, printing an error message was disallowed outside of a target. Fixed by adding a target, and requiring that on any Sphinx related targets.
This can be tested by updating the `SPHINXBUILD` command to something that doesn't exist and trying to build the documentation:
> % make html
Makefile:13: *** The 'non-existant-sphinx-build' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the 'non-existant-sphinx-build' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/.  Stop.
JackPGreen added a commit that referenced this pull request Aug 2, 2024
The version specified in the documentation is provided by the Sphinx
config in `docs/conf.py`.

This duplicates the version specified in `hazelcast/init.py`, and
previously [became
outdated](#690).

Unfortunately, in this PR I updated the version incorrectly (i.e. to
`5.4.0`, not `5.5.0`), highlighting the issues with duplicating this
data.

Instead, we should have a single place the version if specified, and
reference it in the Sphinx config.

Example output following this change:
<img width="898" alt="image"
src="https://github.com/user-attachments/assets/36718c1f-fdfc-406c-bbf8-31d9ac207ff5">

In addition, while trying to build the documents locally, `make html`
failed with a cryptic error message:
> *** commands commence before first target. Stop.

I didn't have Sphinx installed, and while `make` was happy to evaluate
the `if` check for it's existence, printing an error message was
disallowed outside of a target. Fixed by adding a target, and requiring
that on any Sphinx related targets.

This can be tested by updating the `SPHINXBUILD` command to something
that doesn't exist and trying to build the documentation:
> % make html
Makefile:13: *** The 'non-existant-sphinx-build' command was not found.
Make sure you have Sphinx installed, then set the SPHINXBUILD
environment variable to point to the full path of the
'non-existant-sphinx-build' executable. Alternatively you can add the
directory with the executable to your PATH. If you don\'t have Sphinx
installed, grab it from http://sphinx-doc.org/. Stop.
@yuce yuce added this to the 5.5.0 milestone Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants