Automatic Ubuntu Package builds from devel repository

118 views
Skip to first unread message

Tim Michelsen

unread,
Oct 22, 2012, 4:44:55 PM10/22/12
to spyd...@googlegroups.com
Hello fellow Spyder lovers,
for those of us working at times on the Ubuntu OS I set up a automatic
build service:
https://code.launchpad.net/~pythonxy/+recipe/spyderlib-daily-via-github

this would theoretically update the Spyder package in the PPA
https://code.launchpad.net/~pythonxy/+archive/pythonxy-devel

each time the source repository changes.

So far so good. It works.

But the requirement is that there's a recent mirror of the source at
Launchpad.

Now the have stopped imports of code from mercurial-based repositories:
http://blog.launchpad.net/notifications/mercurial-imports-will-end-on-october-5th

This means that the source cannot be updated automatically.

I tried to get around this by exporting the stuff to GitHub. But this is
a manual process and does not work without interaction.

Does anyone have a idea how we could set up a mirror somewhere that
Launchpad can fetch from?

I would then configure the package building accordingly.

Kind regards,
Timmie

Tim Michelsen

unread,
Oct 23, 2012, 4:34:37 PM10/23/12
to spyd...@googlegroups.com
Hello fellow Spyder lovers,
for those of us working at times on the Ubuntu OS I set up a automatic
build service:
https://code.launchpad.net/~pythonxy/+recipe/spyderlib-daily-via-github

this would theoretically update the Spyder package in the PPA
https://code.launchpad.net/~pythonxy/+archive/pythonxy-devel

each time the source repository changes.

So far so good. It works.

But the requirement is that there's a recent mirror of the source at
Launchpad.

Now the have stopped imports of code from mercurial-based repositories:
http://blog.launchpad.net/notifications/mercurial-imports-will-end-on-october-5th

This means that the source cannot be updated automatically.

I tried to get around this by exporting the stuff to GitHub / Gitorious.
But this is
a manual process and does not work without interaction.

Does anyone have a idea how we could set up a mirror somewhere that
Launchpad can fetch from?

I would then configure the package building accordingly.

Kind regards,
Timmie

P.S. apparently it did not get through. Sorry in case of double posting.

Carlos Córdoba

unread,
Oct 27, 2012, 11:44:18 AM10/27/12
to spyd...@googlegroups.com
Hi Timmie,

This is really great news! I was hoping someone could do this for us,
and now you just showed up and did it! This would let lots of users to
easily test our default repo on Ubuntu/Debian systems, which is great!

Don't worry about the mirror, I can do that for you. I had reserved the
spyder-ide organization on Github at the beginning of the year, so I can
set up and maintain our official mirror under it. It wouldn't be too
much work because we aren't in high production mode lately :-)

I let you know when it's ready (hopefully tomorrow), so you can change
your script accordingly.

Thanks again for taking the time to do this.

Cheers,
Carlos

El 23/10/12 15:34, Tim Michelsen escribió:

Tim Michelsen

unread,
Oct 28, 2012, 5:24:35 PM10/28/12
to spyd...@googlegroups.com
> This is really great news! I was hoping someone could do this for us,
> and now you just showed up and did it! This would let lots of users to
> easily test our default repo on Ubuntu/Debian systems, which is great!
Happy to be able to give something back!
The IDE is great. and the IPythone stuff is even making it better.

> Don't worry about the mirror, I can do that for you. I had reserved the
> spyder-ide organization on Github at the beginning of the year, so I can
> set up and maintain our official mirror under it. It wouldn't be too
Can you make me a member of
https://github.com/spyder-ide

I set mine to:
https://github.com/timmie/spyderlib-mirror

With the use of git-hg (https://github.com/cosmin/git-hg#readme) I
pushed the recent chanages (with some force due to recent merge).

Then, LP should import it to its repo
https://code.launchpad.net/~pythonxy/spyderlib/spyderlib-mirror-via-github

It currently fails to take the merges from yesterday.

anyway, the daily build recipe
https://code.launchpad.net/~pythonxy/+recipe/spyderlib-daily-via-github

builds automatically a new package if the LP repos changes.

https://launchpad.net/~pythonxy/+archive/pythonxy-devel/+packages

I serached all over. But there's not autmatoc code mirror google code ->
github. I asked some others and they all use a post commit hook.

> much work because we aren't in high production mode lately :-)
So we could even use git-hg.

Looking forward to the new features /improvement in Spyder.

I hope my action can increase the user base and help you to get more
feedback.

Regards,
Timmie


Tim Michelsen

unread,
Oct 29, 2012, 8:25:19 PM10/29/12
to spyd...@googlegroups.com
> Then, LP should import it to its repo
> https://code.launchpad.net/~pythonxy/spyderlib/spyderlib-mirror-via-github
>
> It currently fails to take the merges from yesterday.
The guys at LP fixed the imports:
https://code.launchpad.net/~pythonxy/spyderlib/spyderlib-mirror-via-github

An so the build is being triggered:
https://code.launchpad.net/~pythonxy/+recipe/spyderlib-daily-via-github

In about 4-5 hours, there should be automatically a new package in:
https://code.launchpad.net/~pythonxy/+archive/pythonxy-devel/+packages

Keep watchin'

Carlos Córdoba

unread,
Oct 30, 2012, 2:13:19 PM10/30/12
to spyd...@googlegroups.com
Hi Tim,

I've made you a member of spyder-ide and I also created a new repo
inside it called spyderlib

https://github.com/spyder-ide/spyderlib

If you have time, please push the mirror there. Else I'll try to do it
tomorrow.

Thanks a lot for fixing the build on Launchpad. I saw that the new
package has the changes I pushed this weekend.

Cheers,
Carlos

El 29/10/12 19:25, Tim Michelsen escribió:

Tim Michelsen

unread,
Oct 30, 2012, 5:55:20 PM10/30/12
to spyd...@googlegroups.com
> If you have time, please push the mirror there. Else I'll try to do it
> tomorrow.
Moved to:
https://github.com/spyder-ide/spyderlib-mirror

I asked LP to update:
https://answers.launchpad.net/launchpad/+question/212797

Tim Michelsen

unread,
Nov 6, 2012, 1:55:49 PM11/6/12
to spyd...@googlegroups.com
Did you check on LP or your update manager if the PPA is enabled?

The thing works now!

So here's what we need to do after each mercurial commit to get the
package updated:

## install https://github.com/cosmin/git-hg
cd /tmp/
git-hg clone https://code.google.com/p/spyderlib/
cd /tmp/spyderlib/
git remote add origin git://github.com/spyder-ide/spyderlib-mirror.git
git push origin master
git push g...@github.com:spyder-ide/spyderlib-mirror.git

Reply all
Reply to author
Forward
0 new messages