Giter VIP home page Giter VIP logo

Comments (5)

reinout avatar reinout commented on August 24, 2024

zest.releaser doesn't continue deliberately :-) A version that's not in setup.py or version.txt is mostly a corner case. That corner case plus the additional corner case of not setting python_file_with_version... Two corner cases in a row is too much for poor zest.releaser.

Your proposal looks ok, though :-) I'd probably add a version_written = False line just above https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/vcs.py#L213 and set it to True after https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/vcs.py#L222 . And an exception if it didn't work. Something like that?

from zest.releaser.

tomviner avatar tomviner commented on August 24, 2024

Hi Reinout, granted it's corner case, but thanks for approving the issue :-)

I started off with your suggestion but ended up refactoring a tiny bit. See what you think.

#71

from zest.releaser.

reinout avatar reinout commented on August 24, 2024

I merged #71, but I made the error logging a bit more elaborate. I'll release later this morning.

from zest.releaser.

reinout avatar reinout commented on August 24, 2024

I released 3.55. Can you check if it works for you?

from zest.releaser.

tomviner avatar tomviner commented on August 24, 2024

Just checked with my original package, and:

prerelease --verbose
...
Enter version [0.1.0]: 0.2.1
...
ERROR: We could read a version from setup.py, but could not write it back. See http://zestreleaser.readthedocs.org/en/latest/versions.html for hints.
Traceback (most recent call last):
...
RuntimeError: Cannot set version

👍 Nice doing business with you! Thanks

from zest.releaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.