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

Add content for how-to/download-new-upstream-version #27

Merged

Conversation

dviererbe
Copy link
Collaborator

This pull requests adds the article for how to download a new upstream version.

Is related to #19

@s-makin and @keirthana you should be able to commit to this branch and merge it; feel free to make changes :)

Copy link
Collaborator

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks pretty good :) just a few small nits and suggestions. Thanks for writing it!

docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
determine the name and the lastest upstream version of the source package.

.. note::
If the upstream project has a signing key it should be stored in the source
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be stored in the source

It may be me but to a beginner's eyes, this is a bit ambiguous. Is there an action for the user in there or is this just a convention for the upstream project and we asking the user to look for the signing key. I definitely think a brief explanation for the signing key could help, like Sally pointed out.

@dviererbe
Copy link
Collaborator Author

  1. I also noticed that there is no example or mention of just running uscan without any parameter
  2. Also my memory is playing tricks on me; the manpage url is not set in the docs/conf.py; therefore the :manpage: links do not work. I thought that I already configured this :/

@dviererbe dviererbe force-pushed the add-how-to-download-new-upstream-version branch from 82ca387 to cf37871 Compare August 22, 2023 09:19
@dviererbe
Copy link
Collaborator Author

I just rebased this branch on the overhaul branch to get the commit (58d13fb), so that the :manpage: refs work.

Mostly the same content, just restructured/enhanced:
- incorporated wording/structure feedback from Sally and Keirthana
- added subheadings
- demoted notes to paragraph
- added :term:, :file: sphinx roles
- replaced code-block with `.. code:: bash` syntax
- added reference to get-package-source to uscan forced download

Co-authored-by: Sally <sally.makin@canonical.com>
Co-authored-by: Keirthana T S <keirthana.ts@canonical.com>
Copy link
Collaborator

@keirthana keirthana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@s-makin
Copy link
Collaborator

s-makin commented Aug 31, 2023

I just rebased this branch on the overhaul branch to get the commit (58d13fb), so that the :manpage: refs work.

The manpage link for uscan doesn't seem to be working. When I go via the manpages, all of the links work except for mantic - there doesn't seem to be a mantic page for uscan, the page keeps timing out.

@s-makin
Copy link
Collaborator

s-makin commented Aug 31, 2023

I just rebased this branch on the overhaul branch to get the commit (58d13fb), so that the :manpage: refs work.

The manpage link for uscan doesn't seem to be working. When I go via the manpages, all of the links work except for mantic - there doesn't seem to be a mantic page for uscan, the page keeps timing out.

Same for the links to git manpage.

It may be better for us to configure the manpages link to make them version agnostic by doing: manpages.ubuntu.com/manpages/<package-name>.html - this currently redirects to the Lunar version of the page by default, but means we wouldn't have to update it manually each time it gets out of date (reduces ongoing maintenance burden)

Copy link
Collaborator

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of comments/suggestions, but otherwise looks good :)


uscan --verbose

Check for new :term:`Upstream` version (no download)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest we move this to be the first sub-heading. Any user may want to check their version before downloading, so I think that would be a more logical ordering.

Copy link
Collaborator Author

@dviererbe dviererbe Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to run uscan --safe to run uscan. The --safe flag basically disables downloading anything. Both are for 2 different use cases.

You would run uscan, e.g.:

  • as the package maintainer to download and package the new release

You would run uscan --safe, e.g.:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@s-makin With that said; do you still think that the order should be moved?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My impression is that checking the debian/watch file works or fixing a bug might be easier or at least more common steps that a packager would need to know before they become a package maintainer (although I could be wrong there!). If that's correct, then I'd move the uscan --safe section. Otherwise I'd leave it as-is - I'll bow to your greater knowledge on this one!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I don't know which use case is more common. I will ask around in Foundations

docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved
docs/how-to/download-new-upstream-version.rst Outdated Show resolved Hide resolved

There are special cases where they do not work for technical reasons.

.. note::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note appears twice - is that intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was intentional for readers that read the article only partially. I also don't think that it is elegant.

Do you have a more elegant solution?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm...What if the header was something like "Downloading upstream versions", with the note contents underneath that heading, and then the two current headings become subheadings beneath that? I'm not sure that the note would make so much sense then, but at least it would remove the duplication. Might need an additional sentence or two to introduce the difference? (sadly, that's the best I have!)

dviererbe and others added 2 commits August 31, 2023 15:02
Co-authored-by: Sally <sally.makin@canonical.com>
Co-authored-by: Sally <sally.makin@canonical.com>
@dviererbe
Copy link
Collaborator Author

I just rebased this branch on the overhaul branch to get the commit (58d13fb), so that the :manpage: refs work.

The manpage link for uscan doesn't seem to be working. When I go via the manpages, all of the links work except for mantic - there doesn't seem to be a mantic page for uscan, the page keeps timing out.

Same for the links to git manpage.

It may be better for us to configure the manpages link to make them version agnostic by doing: manpages.ubuntu.com/manpages/<package-name>.html - this currently redirects to the Lunar version of the page by default, but means we wouldn't have to update it manually each time it gets out of date (reduces ongoing maintenance burden)

That is weird, because the links work for me. I get redirected from mantic to lunar.

How would manpages.ubuntu.com/manpages/<package-name>.html work for linking e.g. uscan? uscan is part of the devscripts package which itself has multiple tools.

@dviererbe dviererbe merged commit c58c09f into canonical:overhaul Oct 10, 2023
1 check failed
@dviererbe dviererbe deleted the add-how-to-download-new-upstream-version branch November 21, 2023 10:05
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.

None yet

4 participants