mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-01-01 17:30:47 +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_grammar import protools_text_export_grammar
|
||||||
from .ptuls_parser_visitor import DictionaryParserVisitor
|
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
|
from ptulsconv.commands import convert
|
||||||
import ptulsconv.broadcast_timecode
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import sys
|
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:
|
with open(input_file, 'r') as file:
|
||||||
ast = ptulsconv.protools_text_export_grammar.parse(file.read())
|
ast = ptulsconv.protools_text_export_grammar.parse(file.read())
|
||||||
dict_parser = ptulsconv.DictionaryParserVisitor()
|
dict_parser = ptulsconv.DictionaryParserVisitor()
|
||||||
@@ -118,6 +118,6 @@ def convert(input_file, format='fmp', start=None, end=None, output=sys.stdout):
|
|||||||
|
|
||||||
if format == 'json':
|
if format == 'json':
|
||||||
json.dump(parsed, output)
|
json.dump(parsed, output)
|
||||||
elif format == 'fmp':
|
elif format == 'fmpxml':
|
||||||
fmp_dump(parsed, input_file, output)
|
fmp_dump(parsed, input_file, output)
|
||||||
|
|
||||||
|
|||||||
8
setup.py
8
setup.py
@@ -1,15 +1,17 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
from ptulsconv import __author__, __license__, __version__
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(name='ptulsconv',
|
setup(name='ptulsconv',
|
||||||
version='0.1',
|
version=__version__,
|
||||||
author='Jamie Hardt',
|
author=__author__,
|
||||||
author_email='jamiehardt@me.com',
|
|
||||||
description='Parse and convert Pro Tools text exports',
|
description='Parse and convert Pro Tools text exports',
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
license=__license__,
|
||||||
url='https://github.com/iluvcapra/ptulsconv',
|
url='https://github.com/iluvcapra/ptulsconv',
|
||||||
project_urls={
|
project_urls={
|
||||||
'Source':
|
'Source':
|
||||||
|
|||||||
Reference in New Issue
Block a user