-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versioning strategy between Package Control and develop #164
Comments
I've add something: now when you have installed a dev version, the status bar will show the deviot version, at this moment it's The right way to upgrade is using By default Package Control is set to update each 1 hour, so it will not work if you restart ST. How to know when deviot is updated? First you run
I'm also testing the |
Nice! I like that. I think for anyone switching between release and dev versions, they get a nice visual cue of what version they are on. That, combined with |
Quick note, I had to look at the code to find out that you need a board selection before the status bar info is displayed. Also, this was interesting as I just picked |
It will recognize all the environments in the At this moment the current environment is global, if you open a new project, the last environment used will be selected |
Note that to follow proper semver specifications, this should be If you have the notion of "development release numbers" already, why not choose to tag pre-releases in the first place? The process was outlined in the referenced forum thread, but feel free to ask if anything is unclear. (You can even get update notes for pre-releases that way. I used this for PackageDev, for example.)
That's not exactly correct. Package Control checks for update on startup, but only if it hasn't already within the last hour. |
Just perused and see that is the case, indeed. Items 9-11 were really helpful in understanding the guidelines. |
Thanks @FichteFoll Will the
If that is the case Offtopic: Is it normal that Package Control keep installing the package as |
I think that's defined here. It looks like it's programmed to install to Per that thread above, @wbond says that pointing to a I'm torn on the pre-releases... I know it really doesn't really matter, but this annoys me (auto complete in
At least from my perspective, who cares [much] about a release after it's out, and especially after it's a few versions back? With some of your quick responses to my issues, it would seem like an annoyance to create a pre-release every time you push a change so I can test it? It seems cumbersome for true development pace, and that the This is clearly up to you, but I don't know that I see the advantage of a true git tag. Seems like a lot of overhead. Skimming recent versions you have maybe 10-50+ commits between releases. That's a lot of tags to issue for development! |
In that case,
I was thinking the same, some times there are users testing commit by commit and the pre-release option won't be so comfortable in that case. |
Not sure I understand the question. All branches here For user-added repos, there's no mechanism to provide another name, so it just calls it the repo name. More specifically, I think it's called whatever it downloads the snapshot as. I suppose it could see if the repo base matches a I tried an experiment to fiddle with naming. material-theme is defined in Package Control, but I did
It calls it whatever the folder is called. I think all I noticed the |
This will force an update check. All that said, I still don't understand why you don't just Furthermore, you can write packages in a way that they are not affected by the name they are actually installed as. You'd need to determine the package's name when the module is loaded (either with Another thing you could do is distribute your own |
The 'problem' is, I know there will be users not familiar with this option, or will have problem to install git
Luckily, I had only two lines in my code with this problem and I've already solved them.
Thanks, maybe this could be a much easier solution. I'm testing it now. @jwhendy I was thinking in the The last suggestion from FichteFoll could be the solution. |
Not sure the best place to file this, as it applies to the current route to tackle versions, namely a Maybe this is known, but it appears that a local repository definition will overwrite the package information of the matching package name in the default Specifically, I pointed ST3 to my forked With the current method, I can confirm that commits are picked up using I'm not sure what your strategy was with these lines in
It looks like you were anticipating appending a fourth number to the version? Since you were already using
This is working for me in my |
It's known, and was what FichteFoll explain above. Package Control do not support switch between branches at this moment, the only way to do this, is forking the repo and use GIT. The idea of use Yes, there is a typo there Instead of
I use:
I think it's simplier that way |
Yes, this is intended. You'll have to add/remove the repository file from Package Control's list in order to switch between normal and develop releases. |
Ah. I saw he said that it "allows everything that Package Control supports, i.e. overriding the package name", but took that to mean specifying
Looks good to me! Would you only add that fourth string when This was primarily about the discussion of versioning in general, with you making the call on strategy. I do happen to like the solution, so I'm going to mark it as closed. Feel free to re-open, and thanks for taking a look and coming up the solution! |
|
I posted in the ST forums to try and help out with #149 . It was more complicated than I thought, but the thread might be of interest to you.
I forked this and tracked my own branch from ST3 to check the behavior. Upon pushing a commit to the tracked branch:
Package Control -> Upgrade package
worked if, I think, enough time passed between the last commit or since pushing. One time I tried and it said there were no updates, but another time it worked fine.Package Control -> Upgrade/Overwrite all packages
did work.The recommendation from @wbond was to simply have users clone the
develop
branch into thePackages
directory. This does seem pretty straightforward and would bring the git log with it (allowing users to know for sure what commit they are on).Initially, all I was trying to do was make it easier to tell what release I was really on per your question about whether or not I was up to date on a feature you added! I did solve that; one can do
Package Control -> List Packages
and you'll see the date of the latest commit. I was initially hoping that the console output of Deviot could be a different version than the release; they both show[ Deviot 2.1.1 ]
so it's not obviously clear there's anything different about the release vs.develop
package installed.I looked in the code and you could make the
develop
branch have a different version in__init__.py
... like__version__ = 'dev-branch'
. To do make that a dynamic string based on the commit seemed complicated, though. The wayPackage Control
installs is from thezip
, so you don't get the.git
folder with it and thus couldn't even look up the recent commit hash if you wanted to...Feel free to do what makes sense for the package and your aims!
The text was updated successfully, but these errors were encountered: