diff --git a/README.md b/README.md index 86eb411..b42837a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Polyend Tracker MIDI Export tool -An effort to create a midi conversion tool for Polyend tracker project files. +MIDI conversion tool for Polyend Tracker project files. ## Disclaimer diff --git a/polytracker2midi.py b/polytracker2midi.py index 5f5f3b2..ab06527 100644 --- a/polytracker2midi.py +++ b/polytracker2midi.py @@ -40,11 +40,11 @@ def main(): pass if not os.path.isfile(input_filename): - print(f"{input_filename} does not exist") + print(f"File {input_filename} does not exist") sys.exit(1) if os.path.isfile(output_filename): - print(f"{output_filename} already exists - will overwrite") + print(f"File {output_filename} already exists - will overwrite") p = patterns.PatternParser(filename=input_filename) parsed_pattern = p.parse() diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4454314 --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() +with open("requirements.txt", "r", encoding="utf-8") as fh: + requirements = fh.read() +setup( + name = 'polyendtracker-midi-export', + version = '0.0.1', + author = 'Alexey Strelkov', + author_email = 'datagreed@gmail.com', + license = 'MIT License', + description = 'Unoficial tool that converts Polyend Tracker *.mtp pattern files to midi files.', + long_description = long_description, + long_description_content_type = "text/markdown", + url = 'https://github.com/DataGreed/polyendtracker-midi-export', + py_modules = ['parsers', 'exporters'], + packages = find_packages(), + install_requires = [requirements], + python_requires='>=3.7', + classifiers=[ + "Programming Language :: Python :: 3.9", + "Operating System :: OS Independent", + ], + entry_points = ''' + [console_scripts] + polymidiexport=polytracker2midi:main + ''' +) \ No newline at end of file