Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Add support for "-e hg+URI" style dependencies #101

Closed

Conversation

seppeljordan
Copy link
Contributor

@seppeljordan seppeljordan commented Jan 27, 2017

This should fix #100 but has currently no test example.

Requirements of kind "-e hg+URI" should be supported with this PR.

@garbas I introduced a the concept of repo_type to the program which tells pypi2nix how to process different kinds of requirements. This solves an issue where requirements like "-e git+https://a.b.c/repo.git" were not correctly recognized as git repositories by the program.


This change is Reviewable

@seppeljordan
Copy link
Contributor Author

I have added an example in the examples/ directory for "-e hg+" support. I created a trivial python package and a mercurial repository around it. Then I commited the whole thing to git. I thought it was better than having tests one can run the test in a reasonable amount of time (because no deps and stuff). On the other hand it "feels kind of dirty" to commit a hg repo to git.

Let me know what you think about that.

@garbas garbas closed this in d4546a0 Jan 29, 2017
@garbas garbas added this to the 1.7.0 milestone Jan 29, 2017
garbas added a commit that referenced this pull request Jan 30, 2017
initial work was done by @seppeljordan in #101

then I (@garbas):
- rebased on current master
- added support for pinning repositories to branch/revision
- used https://bitbucket.org/tarek/flake8 as example repository

fixes #100
fixes #101
@seppeljordan seppeljordan deleted the mercurial-support branch February 4, 2017 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support mercurial as a source for packages
2 participants