setuptools and git flow

15 views
Skip to first unread message

Charles Dimino

unread,
Apr 1, 2014, 4:07:48 PM4/1/14
to distut...@googlegroups.com
Hey all,

I'm trying to use setuptools to manage my project, and this project uses git flow.

Part of git flow (and in general) is that you don't know when you're working on develop branch what your next version will be yet.  In a way, this means that work done on your develop branch doesn't have *any* version at all.  Only once you create a release branch, will you know what your version will be.

This is at odds with the way setuptools documentation talks about re: daily builds and snapshot releases.  There's no option to change your project's "official" version identified entirely - only to append to it.

So what ends up happening is a project has its release (1.0.0, for example), and eventually the released version identifier makes its way back into the develop branch.  Then, when a new nightly develop build gets created, it's marked as 1.0.0-NIGHTLY-01012014.  This is a problem, because it's *not* a 1.0.0 nightly build, it's a POST-1.0.0 nightly build.

Since the develop branch isn't supposed to have an actual version, what are some recommendations?  Should the version value in setup.py just be set to something like "DEVELOP" in the develop branch?  That'd always create "DEVELOP-NIGHTLY-01012014" tags, which is acceptable.

Thanks,
Charlie

Charles Dimino

unread,
Apr 1, 2014, 7:43:37 PM4/1/14
to Donald Stufft, distut...@googlegroups.com
Realistically, yes, that's what I've been doing, but I was just wondering if there was a theoretically better way to handle the fact that develop branches don't really have "versions" to speak of.


On Tue, Apr 1, 2014 at 4:39 PM, Donald Stufft <don...@stufft.io> wrote:
> _______________________________________________
> Distutils-SIG maillist  -  Distut...@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

I think most people just increment the version, if the latest release was 1.0.0 then the next release is 1.1.0 or whatever.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA


Reply all
Reply to author
Forward
0 new messages