Open kloczek opened 1 year ago
That warning looks like it was recently fixed in sphinxcontrib-applehelp 1.3.0
and you have 1.0.2.dev20221204
.
A PR for the first patch would be great! I guess sphinx-sitemap
should come out of docs/requirements.txt as well?
For the second patch, how about trying the Git method and if that fails, default to using sphinx_sitemap.__version__
. Otherwise, the latest
version of the online docs will always show the version as the most recent release, which may not be accurate if the docs contain changes for a pending release.
OK .. one sec I'll try upgrae my rpm package with sphinxcontrib-applehelp
.
Will back shortly :tong
or the second patch, how about trying the Git method and if that fails, default to using sphinx_sitemap.version. Otherwise, the latest version of the online docs will always show the version as the most recent release, which may not be accurate if the docs contain changes for a pending release.
If you see some way how to build with git and otherwise with module sphinx_sitemap.__version__
feel free to implemnt that š
If you don't like that patch I'll keep it in my build because I need to buold documentation without git metadata š
If you see some way how to build with git and otherwise with module
sphinx_sitemap.__version__
feel free to implemnt that
I'd have to test it out, but I was thinking something like:
try:
GIT_TAG_OUTPUT = subprocess.check_output(...)
[...]
except subprocess.CalledProcessError as e:
print(e) # some sort of fallback message
version = sphinx_sitemap.__version__
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
I also have two small patches which I'm using during build my package with sphinx documentation as man page. Beow patch alows build socumetation without have installed
sphinx-sitemap
module using straight source treeSesond patch allows obtain module version not from git tag but from module version
Second on is usuefull on build module out of autogenerated fron git tag tar ball which has no .git metadata. With abpve patches is possible to generate documentation by:
Feel free to commit those patch or let me know if you want them as PRs.