question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create Man Page for pysemver

See original GitHub issue

Situation

When creating packages for Linux distributions (RPM or DEB), it is good practice to have a man page for each executable.

However, we currently don’t have a dedicated man page for our pysemver script. Although we have rudimentary descriptions in our cli.rst, it doesn’t follow the man page style.

Proposed Solution

We should provide the man page for this project. When I’ve wrote this cli.rst file, I didn’t think of creating a man page. I better should have thought about that.

As such, I would suggest to improve the existing cli.rst page and turn it into a “real” man page. As we probably add more features in the future, we should prepare it to help users and packages.

I would propose to change the existing cli.rst file and add the usual man page structure:

NAME
    pysemver - Helper script for Semantic Versioning

SYNOPSIS
   pysemver compare version1 version2
   pysemver bump {major,minor,patch,prerelease,build} version

DESCRIPTION
   [...]
SEE ALSO
   https://python-semver.readthedocs.io/en/latest/

AUTHOR
   [...]

This can easily built with sphinx-build and choosing a man builder. After the man page was built, it can be added to the RPM or Debian package.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tomschrcommented, Nov 14, 2019

Unfortunately, I don’t know much about Debian packaging.

Distributing python-semver as package for some Linux distros should be considered. Maybe we should only consider for now Debian and Suse.

Good idea, that inspired me to another idea: why not extend the “Installing semver” section in our documentation? We could add where to get your package for your specific distribution and how to install it (via apt-get, dnf, or zypper).

By the way, you probably mean openSUSE. 😉

0reactions
scls19frcommented, Nov 14, 2019

Maybe we should have a look to see who is the maintainer of this Debian package. Distributing python-semver as package for some Linux distros should be considered. Maybe we should only consider for now Debian and Suse.

Read more comments on GitHub >

github_iconTop Results From Across the Web

semver: The semantic versioner for npm - Linux Man Pages (7)
The purpose for this behavior is twofold. First, prerelease versions frequently are updated very quickly, and contain many breaking changes that are (by...
Read more >
How To - Linux / UNIX Create a Manpage - nixCraft
Explains how to create your own man page under Linux / UNIX operating systems.
Read more >
How to Create a man Page on Linux - How-To Geek
Want your new Linux program to look professional? Give it a man page. We'll show you the easiest, and fastest, way to do...
Read more >
git-release command man page - git-extras - ManKier
Commits changes with message “Release ” or custom commit information, tags with the given and pushes the branch / tags.
Read more >
shell script - How can I sort a list with major.minor.patch level ...
I have to sort the following list with a shell script and make the latest version appear on the bottom or top. How...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found