diff --git a/dump_sections b/bin/dump_sections similarity index 100% rename from dump_sections rename to bin/dump_sections diff --git a/pokemontools/__init__.py b/pokemontools/__init__.py new file mode 100644 index 0000000..833709b --- /dev/null +++ b/pokemontools/__init__.py @@ -0,0 +1 @@ +import crystal diff --git a/chars.py b/pokemontools/chars.py similarity index 100% rename from chars.py rename to pokemontools/chars.py diff --git a/comparator.py b/pokemontools/comparator.py similarity index 100% rename from comparator.py rename to pokemontools/comparator.py diff --git a/crystal.py b/pokemontools/crystal.py similarity index 100% rename from crystal.py rename to pokemontools/crystal.py diff --git a/disassemble_map_scripts.py b/pokemontools/disassemble_map_scripts.py similarity index 100% rename from disassemble_map_scripts.py rename to pokemontools/disassemble_map_scripts.py diff --git a/dump_sections.py b/pokemontools/dump_sections.py similarity index 100% rename from dump_sections.py rename to pokemontools/dump_sections.py diff --git a/gbz80disasm.py b/pokemontools/gbz80disasm.py similarity index 100% rename from gbz80disasm.py rename to pokemontools/gbz80disasm.py diff --git a/gfx.py b/pokemontools/gfx.py similarity index 100% rename from gfx.py rename to pokemontools/gfx.py diff --git a/graph.py b/pokemontools/graph.py similarity index 100% rename from graph.py rename to pokemontools/graph.py diff --git a/interval_map.py b/pokemontools/interval_map.py similarity index 100% rename from interval_map.py rename to pokemontools/interval_map.py diff --git a/item_constants.py b/pokemontools/item_constants.py similarity index 100% rename from item_constants.py rename to pokemontools/item_constants.py diff --git a/labels.py b/pokemontools/labels.py similarity index 100% rename from labels.py rename to pokemontools/labels.py diff --git a/map_names.py b/pokemontools/map_names.py similarity index 100% rename from map_names.py rename to pokemontools/map_names.py diff --git a/move_constants.py b/pokemontools/move_constants.py similarity index 100% rename from move_constants.py rename to pokemontools/move_constants.py diff --git a/old_parse_scripts.py b/pokemontools/old_parse_scripts.py similarity index 100% rename from old_parse_scripts.py rename to pokemontools/old_parse_scripts.py diff --git a/overworldripper.py b/pokemontools/overworldripper.py similarity index 100% rename from overworldripper.py rename to pokemontools/overworldripper.py diff --git a/parse_consecutive_strings.py b/pokemontools/parse_consecutive_strings.py similarity index 100% rename from parse_consecutive_strings.py rename to pokemontools/parse_consecutive_strings.py diff --git a/pksv.py b/pokemontools/pksv.py similarity index 100% rename from pksv.py rename to pokemontools/pksv.py diff --git a/pointers.py b/pokemontools/pointers.py similarity index 100% rename from pointers.py rename to pokemontools/pointers.py diff --git a/pokemon_constants.py b/pokemontools/pokemon_constants.py similarity index 100% rename from pokemon_constants.py rename to pokemontools/pokemon_constants.py diff --git a/romstr.py b/pokemontools/romstr.py similarity index 100% rename from romstr.py rename to pokemontools/romstr.py diff --git a/sym.py b/pokemontools/sym.py similarity index 100% rename from sym.py rename to pokemontools/sym.py diff --git a/trainers.py b/pokemontools/trainers.py similarity index 100% rename from trainers.py rename to pokemontools/trainers.py diff --git a/type_constants.py b/pokemontools/type_constants.py similarity index 100% rename from type_constants.py rename to pokemontools/type_constants.py diff --git a/wram.py b/pokemontools/wram.py similarity index 100% rename from wram.py rename to pokemontools/wram.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c5f45bb --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os +import sys + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +# for uploading to pypi +if sys.argv[-1] == 'publish': + os.system('python setup.py sdist upload') + sys.exit() + +# There's some intersection with requirements.txt but pypi can't handle git +# dependencies. +requires = [ + "mock", +] + +setup( + name="pokemontools", + version="1.0", + description="Tools for compiling and disassembling Pokémon Red and Pokémon Crystal.", + long_description=open("README.md", "r").read(), + license="BSD", + author="Bryan Bishop", + author_email="kanzure@gmail.com", + url="https://github.com/kanzure/pokemon-reverse-engineering-tools", + packages=["pokemontools"], + package_dir={"pokemontools": "pokemontools"}, + include_package_data=True, + install_requires=requires, + platforms="any", + classifiers=[ + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries :: Python Modules", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + ] +) diff --git a/test_dump_sections.py b/tests/test_dump_sections.py similarity index 100% rename from test_dump_sections.py rename to tests/test_dump_sections.py diff --git a/tests.py b/tests/tests.py similarity index 100% rename from tests.py rename to tests/tests.py