Rename "morituri" module to "whipper".

Fixes https://github.com/JoeLametta/whipper/issues/100
This commit is contained in:
Frederik “Freso” S. Olesen
2017-04-26 16:51:11 +02:00
parent a8af9b79ab
commit ff309e468c
114 changed files with 198 additions and 198 deletions

View File

@@ -44,7 +44,7 @@ unicode
- Use asserts liberally to ensure this so we catch problems earlier. - Use asserts liberally to ensure this so we catch problems earlier.
- All gst.parse_launch() pipelines should be passed as utf-8; use - All gst.parse_launch() pipelines should be passed as utf-8; use
encode('utf-8') encode('utf-8')
- morituri.extern.log.log is not unicode-safe; don't pass it unicode objects; - whipper.extern.log.log is not unicode-safe; don't pass it unicode objects;
for example, always use %r to log paths for example, always use %r to log paths
- run with RIP_DEBUG=5 once in a while to catch unicode/logging errors. - run with RIP_DEBUG=5 once in a while to catch unicode/logging errors.
- Also use unicode prefix/suffix in tempfile.* methods; to force unicode. - Also use unicode prefix/suffix in tempfile.* methods; to force unicode.

View File

@@ -4,8 +4,8 @@ DISTCLEANFILES = $(man_MANS)
all-local: feeds reference all-local: feeds reference
if HAVE_EPYDOC if HAVE_EPYDOC
reference: $(top_srcdir)/morituri/*.py feeds reference: $(top_srcdir)/whipper/*.py feeds
epydoc -o reference $(top_srcdir)/morituri epydoc -o reference $(top_srcdir)/whipper
else else
reference: reference:
@true @true
@@ -23,8 +23,8 @@ morituri.ics: $(top_srcdir)/morituri.doap
man_MANS = rip.1 man_MANS = rip.1
rip.1: $(top_srcdir)/morituri/extern/python-command/scripts/help2man $(top_srcdir)/morituri rip.1: $(top_srcdir)/whipper/extern/python-command/scripts/help2man $(top_srcdir)/whipper
PYTHONPATH=$(top_srcdir) $(PYTHON) $(top_srcdir)/morituri/extern/python-command/scripts/help2man morituri.rip.main.Rip rip > rip.1 PYTHONPATH=$(top_srcdir) $(PYTHON) $(top_srcdir)/whipper/extern/python-command/scripts/help2man whipper.rip.main.Rip rip > rip.1
clean-local: clean-local:
@rm -rf reference @rm -rf reference

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_header -*- # -*- Mode: Python; test-case-name: whipper.test.test_header -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -182,7 +182,7 @@ blacklist = [
#warning: couldn't find real module for class xml.parsers.expat.ExpatError (module name: xml.parsers.expat) #warning: couldn't find real module for class xml.parsers.expat.ExpatError (module name: xml.parsers.expat)
'xml.parsers.expat', 'xml.parsers.expat',
'unittest', 'unittest',
'morituri.extern.log.log', 'whipper.extern.log.log',
] ]
# ignore global variables not used if name is one of these values # ignore global variables not used if name is one of these values

View File

@@ -1,9 +1,9 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
from morituri import __version__ as morituri_version from whipper import __version__ as whipper_version
setup( setup(
name="whipper", name="whipper",
version=morituri_version, version=whipper_version,
description="a secure cd ripper preferring accuracy over speed", description="a secure cd ripper preferring accuracy over speed",
author=['Thomas Vander Stichele', 'Joe Lametta', 'Samantha Baldwin'], author=['Thomas Vander Stichele', 'Joe Lametta', 'Samantha Baldwin'],
maintainer=['Joe Lametta', 'Samantha Baldwin'], maintainer=['Joe Lametta', 'Samantha Baldwin'],
@@ -12,7 +12,7 @@ setup(
packages=find_packages(), packages=find_packages(),
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'whipper = morituri.command.main:main' 'whipper = whipper.command.main:main'
] ]
} }
) )

View File

@@ -22,8 +22,8 @@
import sys import sys
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import accurip from whipper.common import accurip
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -5,7 +5,7 @@ import argparse
import os import os
import sys import sys
from morituri.common import drive from whipper.common import drive
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -30,12 +30,12 @@ import sys
import gobject import gobject
gobject.threads_init() gobject.threads_init()
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import ( from whipper.common import (
accurip, common, config, drive, program, task accurip, common, config, drive, program, task
) )
from morituri.program import cdrdao, cdparanoia, utils from whipper.program import cdrdao, cdparanoia, utils
from morituri.result import result from whipper.result import result
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -225,7 +225,7 @@ class Info(_CD):
class Rip(_CD): class Rip(_CD):
summary = "rip CD" summary = "rip CD"
# see morituri.common.program.Program.getPath for expansion # see whipper.common.program.Program.getPath for expansion
description = """ description = """
Rips a CD. Rips a CD.

View File

@@ -23,9 +23,9 @@
import argparse import argparse
import sys import sys
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import cache, task from whipper.common import cache, task
from morituri.result import result from whipper.result import result
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -136,7 +136,7 @@ class Checksum(BaseCommand):
def do(self): def do(self):
runner = task.SyncRunner() runner = task.SyncRunner()
# here to avoid import gst eating our options # here to avoid import gst eating our options
from morituri.common import checksum from whipper.common import checksum
for f in self.options.files: for f in self.options.files:
fromPath = unicode(f) fromPath = unicode(f)
@@ -151,7 +151,7 @@ class Encode(BaseCommand):
def add_arguments(self): def add_arguments(self):
# here to avoid import gst eating our options # here to avoid import gst eating our options
from morituri.common import encode from whipper.common import encode
self.parser.add_argument('input', action='store', self.parser.add_argument('input', action='store',
help="audio file to encode") help="audio file to encode")
@@ -159,7 +159,7 @@ class Encode(BaseCommand):
help="output path") help="output path")
def do(self): def do(self):
from morituri.common import encode from whipper.common import encode
try: try:
fromPath = unicode(self.options.input) fromPath = unicode(self.options.input)
@@ -209,7 +209,7 @@ class Tag(BaseCommand):
runner = task.SyncRunner() runner = task.SyncRunner()
from morituri.common import encode from whipper.common import encode
logger.debug('Reading tags from %s' % path.encode('utf-8')) logger.debug('Reading tags from %s' % path.encode('utf-8'))
tagtask = encode.TagReadTask(path) tagtask = encode.TagReadTask(path)
@@ -238,7 +238,7 @@ Example disc id: KnpGsLhvH.lPrNc1PBL21lb9Bg4-"""
sys.stdout.write('Please specify a MusicBrainz disc id.\n') sys.stdout.write('Please specify a MusicBrainz disc id.\n')
return 3 return 3
from morituri.common import mbngs from whipper.common import mbngs
metadatas = mbngs.musicbrainz(discId, record=self.options.record) metadatas = mbngs.musicbrainz(discId, record=self.options.record)
sys.stdout.write('%d releases\n' % len(metadatas)) sys.stdout.write('%d releases\n' % len(metadatas))
@@ -265,7 +265,7 @@ class CDParanoia(BaseCommand):
description = summary description = summary
def do(self): def do(self):
from morituri.program import cdparanoia from whipper.program import cdparanoia
version = cdparanoia.getCdParanoiaVersion() version = cdparanoia.getCdParanoiaVersion()
sys.stdout.write("cdparanoia version: %s\n" % version) sys.stdout.write("cdparanoia version: %s\n" % version)
@@ -275,7 +275,7 @@ class CDRDAO(BaseCommand):
description = summary description = summary
def do(self): def do(self):
from morituri.program import cdrdao from whipper.program import cdrdao
version = cdrdao.getCDRDAOVersion() version = cdrdao.getCDRDAOVersion()
sys.stdout.write("cdrdao version: %s\n" % version) sys.stdout.write("cdrdao version: %s\n" % version)

View File

@@ -22,10 +22,10 @@
import sys import sys
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import config, drive from whipper.common import config, drive
from morituri.extern.task import task from whipper.extern.task import task
from morituri.program import cdparanoia from whipper.program import cdparanoia
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -23,12 +23,12 @@
import os import os
import sys import sys
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import accurip, config, program from whipper.common import accurip, config, program
from morituri.common import encode from whipper.common import encode
from morituri.extern.task import task from whipper.extern.task import task
from morituri.image import image from whipper.image import image
from morituri.result import result from whipper.result import result
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -6,20 +6,20 @@ import sys
import pkg_resources import pkg_resources
import musicbrainzngs import musicbrainzngs
import morituri import whipper
from morituri.command import cd, offset, drive, image, accurip, debug from whipper.command import cd, offset, drive, image, accurip, debug
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import common, directory from whipper.common import common, directory
from morituri.extern.task import task from whipper.extern.task import task
from morituri.program.utils import eject_device from whipper.program.utils import eject_device
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def main(): def main():
# set user agent # set user agent
musicbrainzngs.set_useragent("whipper", morituri.__version__, musicbrainzngs.set_useragent("whipper", whipper.__version__,
"https://github.com/JoeLametta/whipper") "https://github.com/JoeLametta/whipper")
# register plugins with pkg_resources # register plugins with pkg_resources
distributions, _ = pkg_resources.working_set.find_plugins( distributions, _ = pkg_resources.working_set.find_plugins(
@@ -92,5 +92,5 @@ You can get help on subcommands by using the -h option to the subcommand.
self.parser.print_help() self.parser.print_help()
sys.exit(0) sys.exit(0)
if self.options.version: if self.options.version:
print "whipper %s" % morituri.__version__ print "whipper %s" % whipper.__version__
sys.exit(0) sys.exit(0)

View File

@@ -28,13 +28,13 @@ import tempfile
import gobject import gobject
gobject.threads_init() gobject.threads_init()
from morituri.command.basecommand import BaseCommand from whipper.command.basecommand import BaseCommand
from morituri.common import accurip, common, config, drive, program from whipper.common import accurip, common, config, drive, program
from morituri.common import task as ctask from whipper.common import task as ctask
from morituri.program import cdrdao, cdparanoia, utils from whipper.program import cdrdao, cdparanoia, utils
from morituri.common import checksum from whipper.common import checksum
from morituri.extern.task import task from whipper.extern.task import task
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_accurip -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_accurip -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -26,7 +26,7 @@ import struct
import urlparse import urlparse
import urllib2 import urllib2
from morituri.common import directory from whipper.common import directory
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_cache -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_cache -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -26,8 +26,8 @@ import glob
import tempfile import tempfile
import shutil import shutil
from morituri.result import result from whipper.result import result
from morituri.common import directory from whipper.common import directory
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_checksum -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_checksum -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -24,9 +24,9 @@ import binascii
import wave import wave
from morituri.extern.task import task as etask from whipper.extern.task import task as etask
from morituri.program.arc import accuraterip_checksum from whipper.program.arc import accuraterip_checksum
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_common -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_common -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -27,7 +27,7 @@ import commands
import math import math
import subprocess import subprocess
from morituri.extern import asyncsub from whipper.extern import asyncsub
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_config -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_config -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -27,7 +27,7 @@ import shutil
import tempfile import tempfile
import urllib import urllib
from morituri.common import directory from whipper.common import directory
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_directory -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_directory -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_drive -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_drive -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_encode -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_encode -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -23,10 +23,10 @@
from mutagen.flac import FLAC from mutagen.flac import FLAC
from morituri.extern.task import task from whipper.extern.task import task
from morituri.program import sox from whipper.program import sox
from morituri.program import flac from whipper.program import flac
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_mbngs -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_mbngs -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_path -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_path -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_program -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_program -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -29,11 +29,11 @@ import os
import sys import sys
import time import time
from morituri.common import common, mbngs, cache, path from whipper.common import common, mbngs, cache, path
from morituri.common import checksum from whipper.common import checksum
from morituri.program import cdrdao, cdparanoia from whipper.program import cdrdao, cdparanoia
from morituri.image import image from whipper.image import image
from morituri.extern.task import task from whipper.extern.task import task
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -51,7 +51,7 @@ class Program:
@ivar result: the rip's result @ivar result: the rip's result
@type result: L{result.RipResult} @type result: L{result.RipResult}
@type outdir: unicode @type outdir: unicode
@type config: L{morituri.common.config.Config} @type config: L{whipper.common.config.Config}
""" """
cuePath = None cuePath = None
@@ -286,7 +286,7 @@ class Program:
def getMusicBrainz(self, ittoc, mbdiscid, release=None, country=None, prompt=False): def getMusicBrainz(self, ittoc, mbdiscid, release=None, country=None, prompt=False):
""" """
@type ittoc: L{morituri.image.table.Table} @type ittoc: L{whipper.image.table.Table}
""" """
# look up disc on musicbrainz # look up disc on musicbrainz
self._stdout.write('Disc duration: %s, %d audio tracks\n' % ( self._stdout.write('Disc duration: %s, %d audio tracks\n' % (

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_renamer -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_renamer -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP

View File

@@ -5,8 +5,8 @@ import os
import signal import signal
import subprocess import subprocess
from morituri.extern import asyncsub from whipper.extern import asyncsub
from morituri.extern.task import task from whipper.extern.task import task
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_image_cue -*- # -*- Mode: Python; test-case-name: whipper.test.test_image_cue -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -29,8 +29,8 @@ See http://digitalx.org/cuesheetsyntax.php
import re import re
import codecs import codecs
from morituri.common import common from whipper.common import common
from morituri.image import table from whipper.image import table
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_image_image -*- # -*- Mode: Python; test-case-name: whipper.test.test_image_image -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -26,12 +26,12 @@ Wrap on-disk CD images based on the .cue file.
import os import os
from morituri.common import encode from whipper.common import encode
from morituri.common import common from whipper.common import common
from morituri.common import checksum from whipper.common import checksum
from morituri.image import cue, table from whipper.image import cue, table
from morituri.extern.task import task from whipper.extern.task import task
from morituri.program.soxi import AudioLengthTask from whipper.program.soxi import AudioLengthTask
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_image_table -*- # -*- Mode: Python; test-case-name: whipper.test.test_image_table -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -28,9 +28,9 @@ import copy
import urllib import urllib
import urlparse import urlparse
import morituri import whipper
from morituri.common import common from whipper.common import common
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -527,7 +527,7 @@ class Table(object):
discId1[-1], discId1[-2], discId1[-3], discId1[-1], discId1[-2], discId1[-3],
self.getAudioTracks(), discId1, discId2, self.getCDDBDiscId()) self.getAudioTracks(), discId1, discId2, self.getCDDBDiscId())
def cue(self, cuePath='', program='morituri'): def cue(self, cuePath='', program='whipper'):
""" """
@param cuePath: path to the cue file to be written. If empty, @param cuePath: path to the cue file to be written. If empty,
will treat paths as if in current directory. will treat paths as if in current directory.
@@ -556,7 +556,7 @@ class Table(object):
assert self.hasTOC(), "Table does not represent a full CD TOC" assert self.hasTOC(), "Table does not represent a full CD TOC"
lines.append('REM DISCID %s' % self.getCDDBDiscId().upper()) lines.append('REM DISCID %s' % self.getCDDBDiscId().upper())
lines.append('REM COMMENT "%s %s"' % (program, morituri.__version__)) lines.append('REM COMMENT "%s %s"' % (program, whipper.__version__))
if self.catalog: if self.catalog:
lines.append("CATALOG %s" % self.catalog) lines.append("CATALOG %s" % self.catalog)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_image_toc -*- # -*- Mode: Python; test-case-name: whipper.test.test_image_toc -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -29,8 +29,8 @@ The .toc file format is described in the man page of cdrdao
import re import re
import codecs import codecs
from morituri.common import common from whipper.common import common
from morituri.image import table from whipper.image import table
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_program_cdparanoia -*- # -*- Mode: Python; test-case-name: whipper.test.test_program_cdparanoia -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -29,10 +29,10 @@ import subprocess
import tempfile import tempfile
import time import time
from morituri.common import common from whipper.common import common
from morituri.common import task as ctask from whipper.common import task as ctask
from morituri.extern import asyncsub from whipper.extern import asyncsub
from morituri.extern.task import task from whipper.extern.task import task
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -459,7 +459,7 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
os.close(fd) os.close(fd)
self._tmpwavpath = tmppath self._tmpwavpath = tmppath
from morituri.common import checksum from whipper.common import checksum
self.tasks = [] self.tasks = []
self.tasks.append( self.tasks.append(
@@ -484,7 +484,7 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
self._tmppath = tmpoutpath self._tmppath = tmpoutpath
self.path = path self.path = path
from morituri.common import encode from whipper.common import encode
self.tasks.append(encode.FlacEncodeTask(tmppath, tmpoutpath)) self.tasks.append(encode.FlacEncodeTask(tmppath, tmpoutpath))

View File

@@ -3,8 +3,8 @@ import re
import tempfile import tempfile
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
from morituri.common.common import EjectError from whipper.common.common import EjectError
from morituri.image.toc import TocFile from whipper.image.toc import TocFile
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,7 +1,7 @@
import os import os
from morituri.common import common from whipper.common import common
from morituri.common import task as ctask from whipper.common import task as ctask
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -1,10 +1,10 @@
import time import time
import hashlib import hashlib
import morituri import whipper
from morituri.common import common from whipper.common import common
from morituri.result import result from whipper.result import result
class MorituriLogger(result.Logger): class MorituriLogger(result.Logger):
@@ -26,7 +26,7 @@ class MorituriLogger(result.Logger):
# Ripper version # Ripper version
lines.append("Log created by: whipper %s (internal logger)" % lines.append("Log created by: whipper %s (internal logger)" %
morituri.__version__) whipper.__version__)
# Rip date # Rip date
date = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch)).strip() date = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch)).strip()

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_result_result -*- # -*- Mode: Python; test-case-name: whipper.test.test_result_result -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
# Morituri - for those about to RIP # Morituri - for those about to RIP
@@ -83,7 +83,7 @@ class RipResult:
@ivar offset: sample read offset @ivar offset: sample read offset
@ivar table: the full index table @ivar table: the full index table
@type table: L{morituri.image.table.Table} @type table: L{whipper.image.table.Table}
@ivar vendor: vendor of the CD drive @ivar vendor: vendor of the CD drive
@ivar model: model of the CD drive @ivar model: model of the CD drive
@@ -149,22 +149,22 @@ class Logger(object):
class EntryPoint(object): class EntryPoint(object):
name = 'morituri' name = 'whipper'
def load(self): def load(self):
from morituri.result import logger from whipper.result import logger
return logger.MorituriLogger return logger.MorituriLogger
def getLoggers(): def getLoggers():
""" """
Get all logger plugins with entry point 'morituri.logger'. Get all logger plugins with entry point 'whipper.logger'.
@rtype: dict of C{str} -> C{Logger} @rtype: dict of C{str} -> C{Logger}
""" """
d = {} d = {}
pluggables = list(pkg_resources.iter_entry_points("morituri.logger")) pluggables = list(pkg_resources.iter_entry_points("whipper.logger"))
for entrypoint in [EntryPoint(), ] + pluggables: for entrypoint in [EntryPoint(), ] + pluggables:
plugin_class = entrypoint.load() plugin_class = entrypoint.load()
d[entrypoint.name] = plugin_class d[entrypoint.name] = plugin_class

View File

@@ -1,5 +1,5 @@
REM DISCID AD0BE00D REM DISCID AD0BE00D
REM COMMENT "morituri 0.5.1" REM COMMENT "whipper 0.5.1"
FILE "data.wav" WAVE FILE "data.wav" WAVE
TRACK 01 AUDIO TRACK 01 AUDIO
PREGAP 03:22:70 PREGAP 03:22:70

View File

@@ -1,5 +1,5 @@
REM DISCID BE08990D REM DISCID BE08990D
REM COMMENT "morituri 0.5.1" REM COMMENT "whipper 0.5.1"
CATALOG 0652637280326 CATALOG 0652637280326
PERFORMER "THE BREEDERS" PERFORMER "THE BREEDERS"
TITLE "MOUNTAIN BATTLES" TITLE "MOUNTAIN BATTLES"

View File

@@ -5,7 +5,7 @@ import re
import os import os
import sys import sys
import morituri import whipper
# twisted's unittests have skip support, standard unittest don't # twisted's unittests have skip support, standard unittest don't
from twisted.trial import unittest from twisted.trial import unittest
@@ -70,8 +70,8 @@ class TestCase(unittest.TestCase):
ret = open(os.path.join(os.path.dirname(__file__), name)).read( ret = open(os.path.join(os.path.dirname(__file__), name)).read(
).decode('utf-8') ).decode('utf-8')
ret = re.sub( ret = re.sub(
'REM COMMENT "Morituri.*', 'REM COMMENT "whipper.*',
'REM COMMENT "Morituri %s"' % (morituri.__version__), 'REM COMMENT "whipper %s"' % (whipper.__version__),
ret, re.MULTILINE) ret, re.MULTILINE)
return ret return ret

View File

@@ -1,5 +1,5 @@
REM DISCID B90C650D REM DISCID B90C650D
REM COMMENT "morituri 0.5.1" REM COMMENT "whipper 0.5.1"
CATALOG 0602517642256 CATALOG 0602517642256
FILE "data.wav" WAVE FILE "data.wav" WAVE
TRACK 01 AUDIO TRACK 01 AUDIO

View File

@@ -1,5 +1,5 @@
(lp0 (lp0
(imorituri.result.result (iwhipper.result.result
TrackResult TrackResult
p1 p1
(dp2 (dp2
@@ -22,7 +22,7 @@ sS'filename'
p8 p8
V/home/thomas/Bloc Party - Silent Alarm/00. Bloc Party - Hidden Track One Audio.flac V/home/thomas/Bloc Party - Silent Alarm/00. Bloc Party - Hidden Track One Audio.flac
p9 p9
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p10 p10
(dp11 (dp11
@@ -57,7 +57,7 @@ p18
I15220 I15220
sg5 sg5
L1476997036L L1476997036L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p19 p19
(dp20 (dp20
@@ -86,7 +86,7 @@ sg18
I0 I0
sg5 sg5
L2118180996L L2118180996L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p22 p22
(dp23 (dp23
@@ -115,7 +115,7 @@ sg18
I0 I0
sg5 sg5
L2397618238L L2397618238L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p25 p25
(dp26 (dp26
@@ -144,7 +144,7 @@ sg18
I0 I0
sg5 sg5
L1340624205L L1340624205L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p28 p28
(dp29 (dp29
@@ -173,7 +173,7 @@ sg18
I72 I72
sg5 sg5
L183201985L L183201985L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p31 p31
(dp32 (dp32
@@ -202,7 +202,7 @@ sg18
I41 I41
sg5 sg5
L221401921L L221401921L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p34 p34
(dp35 (dp35
@@ -231,7 +231,7 @@ sg18
I17 I17
sg5 sg5
L3133726276L L3133726276L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p37 p37
(dp38 (dp38
@@ -260,7 +260,7 @@ sg18
I4 I4
sg5 sg5
L2318646110L L2318646110L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p40 p40
(dp41 (dp41
@@ -289,7 +289,7 @@ sg18
I11 I11
sg5 sg5
L3145161267L L3145161267L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p43 p43
(dp44 (dp44
@@ -318,7 +318,7 @@ sg18
I0 I0
sg5 sg5
L3022257630L L3022257630L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p46 p46
(dp47 (dp47
@@ -347,7 +347,7 @@ sg18
I43 I43
sg5 sg5
L2011827324L L2011827324L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p49 p49
(dp50 (dp50
@@ -376,7 +376,7 @@ sg18
I116 I116
sg5 sg5
L933582879L L933582879L
sba(imorituri.result.result sba(iwhipper.result.result
TrackResult TrackResult
p52 p52
(dp53 (dp53

View File

@@ -1,11 +1,11 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_accurip -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_accurip -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import os import os
from morituri.common import accurip from whipper.common import accurip
from morituri.test import common as tcommon from whipper.test import common as tcommon
class AccurateRipResponseTestCase(tcommon.TestCase): class AccurateRipResponseTestCase(tcommon.TestCase):

View File

@@ -1,11 +1,11 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_cache -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_cache -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import os import os
from morituri.common import cache from whipper.common import cache
from morituri.test import common as tcommon from whipper.test import common as tcommon
class ResultCacheTestCase(tcommon.TestCase): class ResultCacheTestCase(tcommon.TestCase):

View File

@@ -1,12 +1,12 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_common -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_common -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import os import os
import tempfile import tempfile
from morituri.common import common from whipper.common import common
from morituri.test import common as tcommon from whipper.test import common as tcommon
class ShrinkTestCase(tcommon.TestCase): class ShrinkTestCase(tcommon.TestCase):

View File

@@ -1,12 +1,12 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_config -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_config -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import os import os
import tempfile import tempfile
from morituri.common import config from whipper.common import config
from morituri.test import common as tcommon from whipper.test import common as tcommon
class ConfigTestCase(tcommon.TestCase): class ConfigTestCase(tcommon.TestCase):

View File

@@ -1,9 +1,9 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_directory -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_directory -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
from morituri.common import directory from whipper.common import directory
from morituri.test import common from whipper.test import common
class DirectoryTestCase(common.TestCase): class DirectoryTestCase(common.TestCase):

View File

@@ -1,8 +1,8 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_drive -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_drive -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
from morituri.test import common from whipper.test import common
from morituri.common import drive from whipper.common import drive
class ListifyTestCase(common.TestCase): class ListifyTestCase(common.TestCase):

View File

@@ -1,4 +1,4 @@
# -*- Mode: Python; test-case-name: morituri.test.test_common_mbngs -*- # -*- Mode: Python; test-case-name: whipper.test.test_common_mbngs -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import os import os
@@ -6,7 +6,7 @@ import json
import unittest import unittest
from morituri.common import mbngs from whipper.common import mbngs
class MetadataTestCase(unittest.TestCase): class MetadataTestCase(unittest.TestCase):

Some files were not shown because too many files have changed in this diff Show More