Giter Site home page Giter Site logo

final-israel / vmn Goto Github PK

View Code? Open in Web Editor NEW
62.0 62.0 11.0 1.26 MB

Automatic version management and state recovery solution for any application agnostic to language or architecture

License: GNU General Public License v3.0

Makefile 0.52% Python 97.51% Shell 1.90% Dockerfile 0.07%

vmn's People

Contributors

akavbathen avatar allingeek avatar bitton-yehonatan avatar daniel599 avatar dependabot[bot] avatar emikitas avatar haimhm avatar ido-sa avatar progovoy avatar ranms25 avatar ronshilo avatar shakedlokits avatar shiransh avatar vasilig-final avatar vvv444 avatar yuvapps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vmn's Issues

FileNotFoundError: [Errno 2] No such file or directory: 'hg': 'hg' on git repository

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'

Add conf file

This file will hold defaults to things like repos_root and more. so the user won't have to type it every-time

Release candidate feature

Decide if wee need to support release candidates feature:

  1. Add release_candidate template, release_template and current_pointer_template to the conf file
  2. stamp <some_stamp_mode> --rc -> will change the current template pointer to point to "release_candidate"
  3. All subsequent stamp commands will fail (only "stamp rc" will be allowed)
  4. To switch back to regular release mode: stamp <some_stamp_mode> --release -> will change the current template pointer to point to release_template

vmn no longer supports python3.5 due to gitpython

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'

small README fixes and simply ease of use

  1. Add installation imstruction (pip or from sources)
  2. Some small fixes in README (for example, clarfications on what is 'our_project')
  3. Research on how we can simplify the usage, my opinion now it's too complicated.

Lock file

  1. Check for permissions and alert properly
  2. Exit with timeout (10s) for too long locking

Add remove version option

This option should remove the relevant tags and in case of latest version removal, revert the commit too

dependencies path bug

Dependency repositories were... However repo: .. does not exist..

The problem is that we are checking the paths releative to cwd instead of repos_root

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.