final-israel / vmn Goto Github PK
View Code? Open in Web Editor NEWAutomatic version management and state recovery solution for any application agnostic to language or architecture
License: GNU General Public License v3.0
Automatic version management and state recovery solution for any application agnostic to language or architecture
License: GNU General Public License v3.0
We can increment micro slot until we don't have any tag conflicts. same with failed pushs
vmn stamp -r micro -s 9992.0 ostask โโฏ
Traceback (most recent call last):
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/stamp_utils.py", line 411, in get_repo_details
client = git.Repo(path, search_parent_directories=True)
File "/home/zohar/.local/lib/python3.6/site-packages/git/repo/base.py", line 181, in init
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /home/zohar/.zoom
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zohar/.local/bin/vmn", line 10, in
sys.exit(main())
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/vmn.py", line 1036, in main
params = build_world(args.name, cwd)
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/vmn.py", line 952, in build_world
root_path
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/stamp_utils.py", line 451, in get_user_repo_details
details = HostState.get_repo_details(joined_path)
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/stamp_utils.py", line 413, in get_repo_details
ret = HostState._get_mercurial_changeset(path)
File "/home/zohar/.local/lib/python3.6/site-packages/version_stamp/stamp_utils.py", line 370, in _get_mercurial_changeset
client = hglib.open(path)
File "/home/zohar/.local/lib/python3.6/site-packages/hglib/init.py", line 11, in open
return client.hgclient(path, encoding, configs)
File "/home/zohar/.local/lib/python3.6/site-packages/hglib/client.py", line 75, in init
self.open()
File "/home/zohar/.local/lib/python3.6/site-packages/hglib/client.py", line 272, in open
self.server = util.popen(self._args, self._env)
File "/home/zohar/.local/lib/python3.6/site-packages/hglib/util.py", line 241, in popen
startupinfo=startupinfo, env=environ)
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'hg': 'hg'
this has been requested by a number of users
This file will hold defaults to things like repos_root and more. so the user won't have to type it every-time
Decide if wee need to support release candidates feature:
raceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/site-packages/git/init.py", line 8, in
from git.exc import * # @nomove @IgnorePep8
File "/usr/local/lib/python3.5/site-packages/git/exc.py", line 9, in
from git.compat import safe_decode
File "/usr/local/lib/python3.5/site-packages/git/compat.py", line 22, in
from git.types import TBD
File "/usr/local/lib/python3.5/site-packages/git/types.py", line 6, in
PathLike = Union[str, 'os.PathLike[str]']
File "/usr/local/lib/python3.5/typing.py", line 552, in getitem
dict(self.dict), parameters, _root=True)
File "/usr/local/lib/python3.5/typing.py", line 512, in new
for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
File "/usr/local/lib/python3.5/typing.py", line 512, in
for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
File "/usr/local/lib/python3.5/typing.py", line 190, in subclasscheck
self._eval_type(globalns, localns)
File "/usr/local/lib/python3.5/typing.py", line 177, in _eval_type
eval(self.forward_code, globalns, localns),
File "", line 1, in
AttributeError: module 'os' has no attribute 'PathLike'
vmn should read the vmn version in it's last commit and refuse to stamp the version in case the version in the commit message is higher and alert accordingly to upgrade the vmn "I am too old to handle this :)"
in addition to the conf default template. will override
We need to have a way of adding a default commit message in conf file
This option should remove the relevant tags and in case of latest version removal, revert the commit too
Use git tags for retrieving info of ver.yml
The following does not work in ubuntu 16.04:
vmn/version_stamp/stamp_utils.py
Line 133 in ba016db
Git push extra-options are supported since git 2.10 (see release notes) it would be very helpful if you could add support for git 2.7 as it is the latest stable version for ubuntu 16.04
Consider adding o='ci.skip'
only if git.Git().version_info >= (2, 10)
Thanks!
for supporting getting information for past versions, we'll need to enhance _version_history.py
We may have mismatches due to manual user changes. we should address them
Currently goto tests do not work because of this issue
If you run ver_stamp on one host and then run get_version on other host, get_version will give you the old version until you'll pull "version" repository
vmn stamp -r patch myapp -> 0.0.0.1
vmn goto -v 0.0.0.1 myapp -> repo is in detached head on tag "myapp_0_0_0_1"
vmn stamp -r patch myapp -> returns Deatched head in .... EXIT fix this so it returns 0.0.0.1
Based on the report, add tests
When you are in a sub folder of the repo,
And you use vmn goto command and your project has other repo dependencies with path "../", vmn fails to find the right location of the other repos.
Dependency repositories were... However repo: .. does not exist..
The problem is that we are checking the paths releative to cwd instead of repos_root
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.