versioning

Get version from git tags (through pbr)

对着背影说爱祢 提交于 2020-04-15 07:47:28
问题 I use pbr for packaging. It takes the version from git tags and applies that to setup.py Now I also want to have the version available inside the package. For instance to have a __version__ attribute. Can I use the pbr library for this? There is another library: versioneer that also extracts the version from the git tags, but that would add an extra requirement. I would prefer to get this functionality from pbr 回答1: After properly setting up for setuptools and pbr , here are several ways to

How I deal with Visual Studio solution and project files in Git?

人盡茶涼 提交于 2020-04-07 11:31:48
问题 I usually work with .NET using Git for versioning. In my team, we work in parallel and we often commit our code to integrate in the application. Everything is fine BUT the Visual Studio's solution and project files. We found two ways: Never commit those files, everyone has his own Include those file in the version system Both ways have pros&cons, but basically we struggle every time we pull from central repo. Here some spare issues we found: (in parentesis, the reference to the above list) We

How I deal with Visual Studio solution and project files in Git?

我们两清 提交于 2020-04-07 11:30:48
问题 I usually work with .NET using Git for versioning. In my team, we work in parallel and we often commit our code to integrate in the application. Everything is fine BUT the Visual Studio's solution and project files. We found two ways: Never commit those files, everyone has his own Include those file in the version system Both ways have pros&cons, but basically we struggle every time we pull from central repo. Here some spare issues we found: (in parentesis, the reference to the above list) We

Increment version number in file [closed]

佐手、 提交于 2020-03-23 07:47:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 days ago . I need to bump a version number in a file. The file looks like this: nuget { nuspec{ id = XXX; version: 0.0.30; title: XXX; what is the easiest way to bump that version number in batch or powershell? i also have to checkout and checkin the file in tfs, but i think i'm able to do this. For my understanding,

How to use library with different version then one bundled with Android?

a 夏天 提交于 2020-03-03 09:27:11
问题 I want to use the latest HttpClient 4.1 version in my application. But Android already bundled with HttpClient. The only way that I see is to build this library from sources, and change package name. Is there any other solution? EDIT: At download page I see OSGi bundle. I have no experience in using OSGi, but AFAIK, OSGi intended to solve libraries versioning problems? If so, how can I use it? 回答1: You can use the Maven Shade Plugin to move all classes to a different package and then use it

Should I pin my Python dependencies versions?

纵饮孤独 提交于 2020-02-26 07:13:25
问题 I am about to release a Python library I've been working on the past few weeks. I've read a lot about Python dependencies but something is not quite clear yet: Some people pretend you should never pin your dependencies versions as it would prevent the users of your library from upgrading those dependencies. Some other claim that you should always pin your dependencies versions as it is the only way of guaranteeing that your release works the way it did when you developped it and to prevent

Should I pin my Python dependencies versions?

萝らか妹 提交于 2020-02-26 07:12:40
问题 I am about to release a Python library I've been working on the past few weeks. I've read a lot about Python dependencies but something is not quite clear yet: Some people pretend you should never pin your dependencies versions as it would prevent the users of your library from upgrading those dependencies. Some other claim that you should always pin your dependencies versions as it is the only way of guaranteeing that your release works the way it did when you developped it and to prevent

Should I pin my Python dependencies versions?

╄→гoц情女王★ 提交于 2020-02-26 07:12:08
问题 I am about to release a Python library I've been working on the past few weeks. I've read a lot about Python dependencies but something is not quite clear yet: Some people pretend you should never pin your dependencies versions as it would prevent the users of your library from upgrading those dependencies. Some other claim that you should always pin your dependencies versions as it is the only way of guaranteeing that your release works the way it did when you developped it and to prevent

Delete a specific commit knowing commit id

不羁的心 提交于 2020-02-22 08:10:10
问题 Lets say i have a repo (git version 1.7.1) that contains following commits A -> B -> C -> D ->E and my HEAD is on E . Now i want to delete C while keeping everything same like A -> B -> D -> E . Can you help me how to do it? 回答1: You can do this with git rebase -i B . Note however, that D and E will be rewritten (get different commit SHAs), so the result will be A -> B -> D' -> E' . The content of E' should be equivalent to E (minus the changes that had been made in C which you are now

Delete a specific commit knowing commit id

非 Y 不嫁゛ 提交于 2020-02-22 08:08:38
问题 Lets say i have a repo (git version 1.7.1) that contains following commits A -> B -> C -> D ->E and my HEAD is on E . Now i want to delete C while keeping everything same like A -> B -> D -> E . Can you help me how to do it? 回答1: You can do this with git rebase -i B . Note however, that D and E will be rewritten (get different commit SHAs), so the result will be A -> B -> D' -> E' . The content of E' should be equivalent to E (minus the changes that had been made in C which you are now