mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Some cleanup/init/setup.py
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
from .ptuls_grammar import protools_text_export_grammar
|
||||
from .ptuls_parser_visitor import DictionaryParserVisitor
|
||||
from .transformations import TimecodeInterpreter
|
||||
from .transformations import TimecodeInterpreter
|
||||
|
||||
__version__ = '0.0.1'
|
||||
__author__ = 'Jamie Hardt'
|
||||
__license__ = 'MIT'
|
||||
@@ -1,5 +1,4 @@
|
||||
from ptulsconv.commands import convert
|
||||
import ptulsconv.broadcast_timecode
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ def fmp_dump(data, input_file_name, output):
|
||||
|
||||
|
||||
|
||||
def convert(input_file, format='fmp', start=None, end=None, output=sys.stdout):
|
||||
def convert(input_file, format='fmpxml', start=None, end=None, output=sys.stdout):
|
||||
with open(input_file, 'r') as file:
|
||||
ast = ptulsconv.protools_text_export_grammar.parse(file.read())
|
||||
dict_parser = ptulsconv.DictionaryParserVisitor()
|
||||
@@ -118,6 +118,6 @@ def convert(input_file, format='fmp', start=None, end=None, output=sys.stdout):
|
||||
|
||||
if format == 'json':
|
||||
json.dump(parsed, output)
|
||||
elif format == 'fmp':
|
||||
elif format == 'fmpxml':
|
||||
fmp_dump(parsed, input_file, output)
|
||||
|
||||
|
||||
8
setup.py
8
setup.py
@@ -1,15 +1,17 @@
|
||||
from setuptools import setup
|
||||
|
||||
from ptulsconv import __author__, __license__, __version__
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setup(name='ptulsconv',
|
||||
version='0.1',
|
||||
author='Jamie Hardt',
|
||||
author_email='jamiehardt@me.com',
|
||||
version=__version__,
|
||||
author=__author__,
|
||||
description='Parse and convert Pro Tools text exports',
|
||||
long_description_content_type="text/markdown",
|
||||
long_description=long_description,
|
||||
license=__license__,
|
||||
url='https://github.com/iluvcapra/ptulsconv',
|
||||
project_urls={
|
||||
'Source':
|
||||
|
||||
Reference in New Issue
Block a user