zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Fix postrelease tests. #394

Closed mauritsvanrees closed 1 year ago

mauritsvanrees commented 1 year ago

An extra question is asked because we try to set a non-canonical version. Sample failure:

File "/Users/maurits/community/zest.releaser/zest/releaser/tests/postrelease.txt", line 130, in postrelease.txt
Failed example:
    prerelease.main()
Differences (ndiff with -expected +actual):
    - Question...
    + Question: Run pyroma on the package before tagging? (Y/n)? 
    + Our reply: <ENTER>
    + Question: Do you want to run check-manifest? (Y/n)? 
    + Our reply: <ENTER>
    + lists of files in version control and sdist match
    + Changelog entries for version 0.2.20:
    + <BLANKLINE>
    + 0.2.20 (unreleased)
    + -------------------
    + <BLANKLINE>
    + - Brown bag release.
    + <BLANKLINE>
    + <BLANKLINE>
    + 0.2.19 (1972-12-25)
    + -------------------
    - Question: Enter version [0.2.20]:
    + Question: Enter version [0.2.20]: 
    ?                                  +
      Our reply: 0.3beta
    + Question: Do you want to use this version anyway? (Y/n)? 
    + Our reply: <ENTER>
      Checking data dict
    - Question: OK to commit this (Y/n)?
    + Question: OK to commit this (Y/n)? 
    ?                                   +
      Our reply: <ENTER>