• Joined on 2021-11-20
ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:11 +00:00
Support installation from Git using Pip

@lubo @nico What do you think about this simple patch? fc28f58c77

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:09 +00:00
Support installation from Git using Pip

With fc28f58c77080e94215719ba4f2aa3f3162c8300, this finally works:

$ pipenv install -e…
ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:08 +00:00
Support installation from Git using Pip

@lubo Well, I have to play with it. It must support different cases. pip from git, git clone + setup, download tar.gz from pypi or gitlab release bundle when it is not a git repo, ...

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:06 +00:00
Support installation from Git using Pip

@lubo Can you please test it? Thanks!

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:04 +00:00
Support installation from Git using Pip

2d0af7b7ccc34d450a1b0cfb6532f6d2439ee7a4 works when installed from local and remote repository and from generated sdist too.

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:03 +00:00
Support installation from Git using Pip

Although you'll have to reinstall the package if you change something in the editable mode.

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:02 +00:00
Support installation from Git using Pip

@lubo Do you have suggestions for "Although you'll have to reinstall the package if you change something in the editable mode." ?

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:36:00 +00:00
Support installation from Git using Pip

Maybe you should put version.py to build/lib/cdist, so it's used when building distributable packages, but not locally. Then, if importing version module fails, assume we run in editable mode…

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:59 +00:00
Support installation from Git using Pip

@lubo As I understand, editable mode does some sort of link to source/cloned repo. So if you change something that will reflect package execution. If you change something, then you expect the version…

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:57 +00:00
Support installation from Git using Pip

You'd have to put the same code to cdist/__init__.py too, in addition to setup.py. I think "Package versioning best practices" describes this approach quite well. So, instead of…

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:56 +00:00
Support installation from Git using Pip

@nico @steven Do we want this coupling?

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:55 +00:00
Support installation from Git using Pip

I always hated the way cdist version is handled. That's actually the sole reason why I run from a fork which I rebase on top of master with this single commit:

[10:59:54] eos:cdist% git show…
ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:53 +00:00
Support installation from Git using Pip

So, what's it gonna be?

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:52 +00:00
Support installation from Git using Pip

@lubo I agree with @steven. Putting setuptools_scm into cdist is heavy. It seems, currently, that https://code.ungleich.ch/ungleich-public/cdist/tree/build/support-pip-from-git is best effort for…

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:51 +00:00
Support installation from Git using Pip

Okay. So, as I've previously reported, 2d0af7b7ccc34d450a1b0cfb6532f6d2439ee7a4 works for me. Therefore, I'd say ship it and let's leave the issue with version reported by cdist for another time.

ungleich-gitea commented on issue ungleich-public/cdist#83 2021-11-20 15:35:48 +00:00
Support installation from Git using Pip

closed

ungleich-gitea commented on issue ungleich-public/cdist#82 2021-11-20 15:35:46 +00:00
GitHub mirror is out-dated

@lubo Thanks for noticing. Fixed.

ungleich-gitea commented on issue ungleich-public/cdist#82 2021-11-20 15:35:45 +00:00
GitHub mirror is out-dated

closed