[debexpo-devel] better README

Ondrej Certik ondrej at certik.cz
Fri Dec 5 00:05:30 CET 2008


On Thu, Dec 4, 2008 at 8:00 PM, Christoph Haas <email at christoph-haas.de> wrote:
> Hi, Ondrej...
>
> On Mittwoch, 3. Dezember 2008, Ondrej Certik wrote:
>> I updated the README with installation instructions, please pull from:
>>
>> git clone git://github.com/certik/debexpo.git
>>
>> or apply the attached patch.
>
> Thanks for the patch. There's still a lot to do before I can safely use
> debexpo for mentors. Unfortunately since the end of the GSoC the project
> activity has been nearly zero. I'll finish a few things with
> screenshots.debian.net and my next project on the list is basically taking
> over debexpo. Would be a pity to leave it in the current state.

Yes, screenshots.debian.net is awesome!

It would be very sad, if debexpo dies. It's also sad, that Jonny
doesn't have time to finish this.

>
>> After executing all of the steps that I described in my patch and
>> going with the browser to http://127.0.0.1:5000/, I get the error
>> below. Any ideas how to fix that?
>> [...]
>> LanguageError: IOError: [Errno 2] No translation file found for
>> domain: 'debexpo'
>
> Yes, you need to compile the i18n catalog:
>
> $> python setup.py compile_catalog
>
> I hoped it would be documented.

Now it works! Thanks. I added it to the documentation, feel free to pull from

git://github.com/certik/debexpo.git

So I created an account, logged in. How can I upload a package to it?
I haven't figured it out --- does it need further setup? Ah, I noticed
the documentation in the docs directory. Very nice. I added a mention
of it into the README. So I setup my .dput.cf and here is another bug:

$ dput debexpo cython_0.10.2-1_source.changes
Uploading to debexpo (via http to localhost:5000):
  cython_0.10.2-1.dsc: need authentication.
    Password for debexpo:
  cython_0.10.2-1.Traceback (most recent call last):
  File "/usr/bin/dput", line 916, in <module>
    main()
  File "/usr/bin/dput", line 878, in main
    files_to_upload, debug, 0, progress=progress)
  File "/usr/share/dput/http.py", line 123, in upload
    print "Upload failed: %d %d"% (res.status, res.reason)
TypeError: int argument required


Is it a bug in debexpo, or am I uploading it the wrong way? Ah, this
is the log on the server:

23:58:28,648 DEBUG [debexpo.controllers.upload] File upload: cython_0.10.2-1.dsc
23:58:28,677 DEBUG [debexpo.controllers.upload] Authenticated as
Ondrej <ondrej at certik.cz>
23:58:28,677 CRITI [debexpo.controllers.upload]
debexpo.upload.incoming is not a directory
23:58:39,626 DEBUG [debexpo.controllers.packages] Getting package list

So I didn't setup the dirs right. I created the dir that I setup in
config.ini and tried again. Here is the log:


00:02:25,297 DEBUG [debexpo.controllers.upload] File upload: cython_0.10.2-1.dsc
00:02:25,297 ERROR [debexpo.controllers.upload] Authorization not
found in request headers
00:02:28,261 DEBUG [debexpo.controllers.upload] File upload: cython_0.10.2-1.dsc
00:02:28,272 DEBUG [debexpo.controllers.upload] Authenticated as
Ondrej <ondrej at certik.cz>
00:02:28,318 DEBUG [debexpo.controllers.upload] File upload:
cython_0.10.2.orig.tar.gz
00:02:28,323 DEBUG [debexpo.controllers.upload] Authenticated as
Ondrej <ondrej at certik.cz>
00:02:28,342 DEBUG [debexpo.controllers.upload] File upload:
cython_0.10.2-1.diff.gz
00:02:28,348 DEBUG [debexpo.controllers.upload] Authenticated as
Ondrej <ondrej at certik.cz>
00:02:28,353 DEBUG [debexpo.controllers.upload] File upload:
cython_0.10.2-1_source.changes
00:02:28,358 DEBUG [debexpo.controllers.upload] Authenticated as
Ondrej <ondrej at certik.cz>
/home/ondra/lib/lib/python2.5/site-packages/WebHelpers-0.6.3-py2.5.egg/webhelpers/hinclude.py:15:
DeprecationWarning: The webhelpers.rails package is deprecated.
- Please begin migrating to the new helpers in webhelpers.html,
  webhelpers.text, webhelpers.number, etc.
- Import url_for() directly from routes, and redirect_to() from
  pylons.controllers.util (if using Pylons) or from routes.
- All Javascript support has been deprecated.  You can write link_to_remote()
  yourself or use one of the third-party Javascript libraries.
  from webhelpers.rails.tags import content_tag
/home/ondra/lib/lib/python2.5/site-packages/WebHelpers-0.6.3-py2.5.egg/webhelpers/pagination/__init__.py:24:
DeprecationWarning: The webhelpers.pagination package is deprecated.
Please migrate to
webhelpers.paginate.
  DeprecationWarning)
00:02:29,038 DEBUG [debexpo.importer.7300] Importer started with
arguments: ['-i', '/home/ondra/repos/debexpo/config.ini', '-c',
'cython_0.10.2-1_source.changes', '-u', '2']
00:02:29,089 DEBUG [debexpo.lib.plugins] Running post-upload plugins
00:02:29,089 DEBUG [debexpo.lib.plugins] Running getorigtarball plugin
00:02:29,092 DEBUG [debexpo.plugins.getorigtarball]
cython_0.10.2.orig.tar.gz found successfully
00:02:29,092 DEBUG [debexpo.lib.plugins] Running checkfiles plugin
00:02:29,092 DEBUG [debexpo.plugins.checkfiles] Looking whether
cython_0.10.2-1.dsc was actually uploaded
00:02:29,093 DEBUG [debexpo.plugins.checkfiles] cython_0.10.2-1.dsc is present
00:02:29,093 DEBUG [debexpo.plugins.checkfiles] Looking whether
cython_0.10.2.orig.tar.gz was actually uploaded
00:02:29,093 DEBUG [debexpo.plugins.checkfiles]
cython_0.10.2.orig.tar.gz is present
00:02:29,093 DEBUG [debexpo.plugins.checkfiles] Looking whether
cython_0.10.2-1.diff.gz was actually uploaded
00:02:29,093 DEBUG [debexpo.plugins.checkfiles]
cython_0.10.2-1.diff.gz is present
00:02:29,094 DEBUG [debexpo.plugins.checkfiles] Checking md5sum of
cython_0.10.2-1.dsc
00:02:29,094 DEBUG [debexpo.plugins.checkfiles] Test passed
00:02:29,094 DEBUG [debexpo.plugins.checkfiles] Checking md5sum of
cython_0.10.2.orig.tar.gz
00:02:29,105 DEBUG [debexpo.plugins.checkfiles] Test passed
00:02:29,105 DEBUG [debexpo.plugins.checkfiles] Checking md5sum of
cython_0.10.2-1.diff.gz
00:02:29,106 DEBUG [debexpo.plugins.checkfiles] Test passed
00:02:29,106 DEBUG [debexpo.lib.plugins] Running notuploader plugin
00:02:29,107 DEBUG [debexpo.plugins.notuploader] Checking whether the
cython is in the archive already
00:02:29,133 DEBUG [debexpo.plugins.notuploader] It is not
00:02:29,133 DEBUG [debexpo.lib.plugins] Running qa plugins
00:02:29,133 DEBUG [debexpo.lib.plugins] Extracting package for plugins
dpkg-source: warning: extracting unsigned source package (cython_0.10.2-1.dsc)
dpkg-source: extracting cython in extracted
dpkg-source: info: unpacking cython_0.10.2.orig.tar.gz
dpkg-source: info: applying cython_0.10.2-1.diff.gz
00:02:32,255 DEBUG [debexpo.lib.plugins] Running gpgsigned plugin
00:02:32,272 DEBUG [debexpo.plugins.gpgsigned] Checking whether the
changes file is GPG signed
00:02:32,273 ERROR [debexpo.plugins.gpgsigned] File
cython_0.10.2-1_source.changes is not GPG signed
00:02:32,273 ERROR [debexpo.plugins.gpgsigned] File
cython_0.10.2-1.dsc is not GPG signed
00:02:32,273 DEBUG [debexpo.lib.plugins] Running lintian plugin
00:02:32,285 DEBUG [debexpo.plugins.lintian] Running lintian on the package
00:02:34,746 DEBUG [debexpo.plugins.lintian] Package is Lintian clean
00:02:34,746 DEBUG [debexpo.lib.plugins] Running native plugin
00:02:34,772 DEBUG [debexpo.plugins.native] Checking whether the
package is native or not
00:02:34,772 DEBUG [debexpo.plugins.native] Package is not native
00:02:34,772 DEBUG [debexpo.lib.plugins] Running maintaineremail plugin
00:02:34,779 DEBUG [debexpo.plugins.maintaineremail] Checking whether
the maintainer email is the same as the uploader email
00:02:34,796 WARNI [debexpo.plugins.maintaineremail] ondrej at certik.cz
!= python-apps-team at lists.alioth.debian.org
00:02:34,796 DEBUG [debexpo.lib.plugins] Running watchfile plugin
00:02:41,268 DEBUG [debexpo.plugins.watchfile] Looking whether there
is a new upstream version
00:02:41,269 DEBUG [debexpo.plugins.watchfile] Package is the latest
upstream version
Traceback (most recent call last):
  File "/home/ondra/lib/bin/debexpo-importer", line 7, in <module>
    execfile(__file__)
  File "/home/ondra/repos/debexpo/bin/debexpo-importer", line 476, in <module>
    i.main()
  File "/home/ondra/repos/debexpo/bin/debexpo-importer", line 405, in main
    qa = Plugins('qa', self.changes, self.changes_file, user_id=self.user_id)
  File "/home/ondra/repos/debexpo/debexpo/lib/plugins.py", line 94, in __init__
    self.result = self._run_plugins()
  File "/home/ondra/repos/debexpo/debexpo/lib/plugins.py", line 186,
in _run_plugins
    result.extend(p.run())
  File "/home/ondra/repos/debexpo/debexpo/plugins/__init__.py", line 63, in run
    getattr(self, method)()
  File "/home/ondra/repos/debexpo/debexpo/plugins/watchfile.py", line
100, in test_new_upstream
    self.passed('no-new-upstream-version', None, constants.PLUGIN_SEVERITY_INFO)
  File "/home/ondra/repos/debexpo/debexpo/plugins/__init__.py", line
81, in passed
    data = self.outcomes.get(outcome)['name']
TypeError: 'NoneType' object is unsubscriptable


So I think we went pretty far, but this seems like a bug in debexpo.


Ondrej


More information about the debexpo-devel mailing list