Giter VIP home page Giter VIP logo

Comments (9)

ionelmc avatar ionelmc commented on August 11, 2024 1

We could have an option so people can use whatever they like. There's also setuptools_scm for this stuff.

from cookiecutter-pylibrary.

ionelmc avatar ionelmc commented on August 11, 2024 1

There is an option to use setuptools_scm. Bumpversion has a new maintainer, there are fresh releases: https://pypi.org/project/bumpversion/#history

I think the current choices are fine for now.

from cookiecutter-pylibrary.

psteinb avatar psteinb commented on August 11, 2024

@ionelmc can you elaborate on setuptools_scm ? I was not so happy with bumpversion automagically setup with this cookiecutter. Especially when SIGTERMing bumpversion all kinds of weird stuff happened. that was somewhat annoying. I'd opt for versioneer as well. But maybe setuptools_scm has something in stock, I am not aware of.

from cookiecutter-pylibrary.

ionelmc avatar ionelmc commented on August 11, 2024

There could be an option to have setuptools_scm configured (some extra stuff in setup.py, no .bumpversion.cfg file and some usage guide somewhere - in README.rst I guess?).

The idea with setuptools_scm is that you tag versions yourself and then everything flows automatically from that, as opposed to using a tool to automate everything like bumpversion. It has some problems when pip installing stuff from github zip archive tho.

But what's wrong with bumpversion? Elaborate the sigterm issue.

PS. https://github.com/c4urself/bump2version

from cookiecutter-pylibrary.

ionelmc avatar ionelmc commented on August 11, 2024

@psteinb so it looks like you know versioneer a bit - can you point me to some projects using it?

from cookiecutter-pylibrary.

nealmcb avatar nealmcb commented on August 11, 2024

FWIW, looks like a migration from bumpversion to bump2version (endorsed by the original bumpversion author) is firming up: Discussion: PyPI name transfer ยท Issue #86 ยท c4urself/bump2version

If the user bails mid-update (e.g. via sigterm) does bumpversion guarantee that either all files are changed, and commits and tags are updated, or that none of them are?
If not, I'm wondering if the "sigterm" concern might relate to that.

And I do like the idea of an option for setuptools_scm and/or versioneer if folks endorse those. All I know is that versioning can be much trickier than one would think!

from cookiecutter-pylibrary.

BjoernLudwigPTB avatar BjoernLudwigPTB commented on August 11, 2024

I just noticed this awesome project and browsed through the issues. It appears to me that versioneer is unmaintained as well, isn't it? It was well maintained until then, but this suddenly came to an end pretty much three years ago.

from cookiecutter-pylibrary.

BjoernLudwigPTB avatar BjoernLudwigPTB commented on August 11, 2024

An option to choose between setuptools_scm, the bumpversion successors or maybe python-semantic-release would be nice I suppose. I will dive deeper into your ideas and maybe propose something.

from cookiecutter-pylibrary.

ionelmc avatar ionelmc commented on August 11, 2024

There is tbump support since sometime.

from cookiecutter-pylibrary.

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.