Python package in multiple Bitbucket hg repos

giumas's Avatar

giumas

22 Jun, 2015 04:15 PM

I have a large python package project that I split into sub-modules and stored into hg repositories (private at this time) on BitBucket.
I have a structure like this:

prj_namespace [on the 'base' hg repo]
|
--- base [on the 'base' hg repo]
|
--- module1 [on 'module1' hg repo]
|
--- module2 [on 'module2' hg repo]

For instance, if I want to test 'module1', I need to clone the 'base' module since it needs the import of same base-module stuff.

If I add 'module1' as AppVeyor project, should I add a custom 'hg clone' command for 'base' repo? I would prefer to avoid to put my account details withing the *.yml file.

What is the suggested approach to deal with this in AppVeyor?

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Jun, 2015 07:07 PM

    Feodor Fitsner's Avatar

    Correct, you should add additional hg clone commands to pull modules. The "cleanest" approach to avoid passing account credentials to the build is cloning module repos via SSH with the same SSH key as parent project (repo). You can find public SSH key of your project on "General" tab of project settings in AppVeyor. Then you can add this SSH key to module repos (or account).

  2. 2 Posted by giumas on 23 Jun, 2015 07:25 PM

    giumas's Avatar

    It worked great! Thank you

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac