Skip to content
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

requires doesnt understand local .git directory #208

Closed
jayvdb opened this issue Jan 30, 2019 · 2 comments
Closed

requires doesnt understand local .git directory #208

jayvdb opened this issue Jan 30, 2019 · 2 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Jan 30, 2019

> ~/.local/bin/moban -m mobanfile
Directory '../pypi-mobans/.git' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Traceback (most recent call last):
  File "/home/jayvdb/.local/bin/moban", line 11, in <module>
    load_entry_point('moban', 'console_scripts', 'moban')()
  File "/home/jayvdb/projects/moban/moban/moban/main.py", line 33, in main
    count = handle_moban_file(moban_file, options)
  File "/home/jayvdb/projects/moban/moban/moban/main.py", line 145, in handle_moban_file
    mobanfile.handle_moban_file_v1(moban_file_configurations, options)
  File "/home/jayvdb/projects/moban/moban/moban/mobanfile.py", line 56, in handle_moban_file_v1
    handle_requires(requires)
  File "/home/jayvdb/projects/moban/moban/moban/mobanfile.py", line 186, in handle_requires
    pip_install(pypi_pkgs)
  File "/home/jayvdb/projects/moban/moban/moban/utils.py", line 131, in pip_install
    [sys.executable, "-m", "pip", "install", " ".join(packages)]
  File "/home/jayvdb/.asdf/installs/python/3.6.7/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/jayvdb/.asdf/installs/python/3.6.7/bin/python', '-m', 'pip', 'install', '../pypi-mobans/.git']' returned non-zero exit status 1.

This should do a clone in the moban cache, and use its master.

Similar to #207

Note this is not related to #170 , which is primarily about using a local directory , whatever it contains - usually a modified clone which isnt saved yet, as that is how people will usually do template development.

@jayvdb
Copy link
Member Author

jayvdb commented Feb 8, 2019

This can be solved upstream at retr0h/git-url-parse#11

@jayvdb jayvdb added the upstream label Feb 8, 2019
@chfw
Copy link
Member

chfw commented Feb 9, 2019

Because it does not have a file protocol plus moban humbly accepts only a few open source sites, hence this issue emerges but can address it.

@chfw chfw added this to back-log in 0.7.x Feb 17, 2019
@jayvdb jayvdb moved this from back-log to blocked in 0.7.x Feb 18, 2019
@chfw chfw closed this as completed Aug 17, 2019
@chfw chfw added the transfer label Aug 17, 2019
@chfw chfw removed this from blocked in 0.7.x May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants