Skip to content

Commit

Permalink
added setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
DataGreed committed Jan 20, 2022
1 parent 925bcbd commit 3b51479
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions polytracker2midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
'''
)

0 comments on commit 3b51479

Please sign in to comment.