diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 5f1e002d..00000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[bdist_wheel] -universal = 1 - -[flake8] -ignore=E402,E731,E128,W601,E121,W503 -builtins=unicode,long,xrange,cmp,basestring diff --git a/setup.py b/setup.py index cd73ec86..8ed24988 100755 --- a/setup.py +++ b/setup.py @@ -13,10 +13,10 @@ import subprocess import tarfile +from distutils.core import setup, Command from distutils.command.clean import clean as distutils_clean from distutils.command.sdist import sdist from distutils import dir_util -from setuptools import setup, Command class clean(distutils_clean): @@ -267,15 +267,13 @@ def run(self): "mutagen._tools", ], data_files=data_files, - entry_points={ - "console_scripts": [ - "mid3cp=mutagen._tools.mid3cp:entry_point", - "mid3iconv=mutagen._tools.mid3iconv:entry_point", - "mid3v2=mutagen._tools.mid3v2:entry_point", - "moggsplit=mutagen._tools.moggsplit:entry_point", - "mutagen-inspect=mutagen._tools.mutagen_inspect:entry_point", - "mutagen-pony=mutagen._tools.mutagen_pony:entry_point", - ] - }, + scripts=[os.path.join("tools", name) for name in [ + "mid3cp", + "mid3iconv", + "mid3v2", + "moggsplit", + "mutagen-inspect", + "mutagen-pony", + ]], long_description=long_description, ) diff --git a/tools/mid3cp b/tools/mid3cp new file mode 100755 index 00000000..3e033573 --- /dev/null +++ b/tools/mid3cp @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.mid3cp import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point()) diff --git a/tools/mid3iconv b/tools/mid3iconv new file mode 100755 index 00000000..e27f5f49 --- /dev/null +++ b/tools/mid3iconv @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.mid3iconv import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point()) diff --git a/tools/mid3v2 b/tools/mid3v2 new file mode 100755 index 00000000..27dce6a2 --- /dev/null +++ b/tools/mid3v2 @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.mid3v2 import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point()) diff --git a/tools/moggsplit b/tools/moggsplit new file mode 100755 index 00000000..a4fcaf68 --- /dev/null +++ b/tools/moggsplit @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.moggsplit import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point()) diff --git a/tools/mutagen-inspect b/tools/mutagen-inspect new file mode 100755 index 00000000..766f1969 --- /dev/null +++ b/tools/mutagen-inspect @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.mutagen_inspect import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point()) diff --git a/tools/mutagen-pony b/tools/mutagen-pony new file mode 100755 index 00000000..8d372e0f --- /dev/null +++ b/tools/mutagen-pony @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. + +import sys + +from mutagen._tools.mutagen_pony import entry_point + + +if __name__ == "__main__": + sys.exit(entry_point())