LeoIannacone / npm2deb

tool to help debianize Node.js modules
GNU General Public License v3.0
46 stars 34 forks source link

wnpp helper #2

Open kapouer opened 10 years ago

kapouer commented 10 years ago

It would be nice to have an automated wnpp query / launcher to:

Also checking RFS, RFP - and even existing debian packages - would help prevent mistakes and time loss.

LeoIannacone commented 10 years ago

I'm a bit reluctant about this..

Querying bts right now (on my machine) takes more time than I expected: $ time querybts -b wnpp real 1m39.618s user 1m57.028s sys 0m3.120s

while using this little script in python:

#!/usr/bin/python
import debianbts
wnpp_numbers = debianbts.get_bugs('package', 'wnpp')
print "Found %s bugs" % len(wnpp_numbers)
print "Querying for ITP with node*"
wnpp_complete = debianbts.get_status(wnpp_numbers)
for bug in wnpp_complete:
  try:
    if bug.subject.index("ITP") >= 0 and bug.subject.index("node") >= 0:
      print "[%s] - %s" % (bug.bug_num, bug.subject)
  except:
    continue

takes more or less the same time: real 1m35.587s user 1m7.788s sys 0m0.632s

With these results, I would prefer make a new command (maybe called "bts") which will query bts (via python) and will parse subjects looking for ITP, RFS, RFP (or whatever we need) rather than implements "bts" during the create statement.

Suggestion about this?

kapouer commented 10 years ago

Postpone until the day wnpp queries are fast ?