0

I develop open-source project in Python and I want it to be easy accessible for Windows users. So for each new source revision I need to generate new windows executable distribution with py2exe and upload it as a downloadable artifact for project users.

I'd rather not do it each time manually but instead I would like to write some type of script that will do both things (generation, upload) in single command, fully programically.

So the question is: are there any Open Source project hostings that provide simple API to make operations like uploading new version of distribution?

Currently I'm using Google Code but it doesn't support that feature (I expected it to be supported as Google Data Api Service but it isn't). I don't really know too much about other hostings - that's why I'm asking.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Piotr Sobczyk
  • 6,443
  • 7
  • 47
  • 70

3 Answers3

2

Check out the GitHub Downloads API or, if it's something suitable for packaging, then look at PyPI, the Python Package Index

Kristian Glass
  • 37,325
  • 7
  • 45
  • 73
  • Thanks. I will check out first link, possibly it's exactly what I need. About second part - see my response under Sven Marnach's answer. – Piotr Sobczyk Mar 31 '12 at 12:28
1

Google Code does support it perfectly well: http://code.google.com/p/support/wiki/ScriptedUploads

Most other such sites do in a similar way; on one project on SourceForge, for example, I have a release script which uploads a file to the release system by FTP.

Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
0

The Python Distutils that come with Python support uploading to the Python Package Index.

Sven Marnach
  • 574,206
  • 118
  • 941
  • 841
  • Thanks, good to know. But that's not what I'm expecting. I want to have my project easily accessible for Windows non technical users not having installed python at all (and definitely don't knowing how to use distutils and similar tools). So uploading Windows-specific distribution to hosting service is the only option. – Piotr Sobczyk Mar 31 '12 at 12:26
  • @PiotrSobczyk: The users wouldn't have to cope with distutils at all, but they would need a Python installation. – Sven Marnach Mar 31 '12 at 21:40