summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-03 16:10:52 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-03 16:10:52 -0500
commit28490230cf68f8045fc63a8c7d3de19c7c1d3bcd (patch)
treec4d1a3acbc7d34b77a890f8e19a8d7253917be8c
parenta14c36eadb75ea3d6fbc4cb3f382d7c9785d9fe9 (diff)
make a basic python module
-rwxr-xr-xbin/dump_sections (renamed from dump_sections)0
-rw-r--r--pokemontools/__init__.py1
-rw-r--r--pokemontools/chars.py (renamed from chars.py)0
-rw-r--r--pokemontools/comparator.py (renamed from comparator.py)0
-rw-r--r--pokemontools/crystal.py (renamed from crystal.py)0
-rw-r--r--pokemontools/disassemble_map_scripts.py (renamed from disassemble_map_scripts.py)0
-rwxr-xr-xpokemontools/dump_sections.py (renamed from dump_sections.py)0
-rw-r--r--pokemontools/gbz80disasm.py (renamed from gbz80disasm.py)0
-rw-r--r--pokemontools/gfx.py (renamed from gfx.py)0
-rw-r--r--pokemontools/graph.py (renamed from graph.py)0
-rw-r--r--pokemontools/interval_map.py (renamed from interval_map.py)0
-rw-r--r--pokemontools/item_constants.py (renamed from item_constants.py)0
-rw-r--r--pokemontools/labels.py (renamed from labels.py)0
-rw-r--r--pokemontools/map_names.py (renamed from map_names.py)0
-rw-r--r--pokemontools/move_constants.py (renamed from move_constants.py)0
-rw-r--r--pokemontools/old_parse_scripts.py (renamed from old_parse_scripts.py)0
-rw-r--r--pokemontools/overworldripper.py (renamed from overworldripper.py)0
-rw-r--r--pokemontools/parse_consecutive_strings.py (renamed from parse_consecutive_strings.py)0
-rw-r--r--pokemontools/pksv.py (renamed from pksv.py)0
-rw-r--r--pokemontools/pointers.py (renamed from pointers.py)0
-rw-r--r--pokemontools/pokemon_constants.py (renamed from pokemon_constants.py)0
-rw-r--r--pokemontools/romstr.py (renamed from romstr.py)0
-rw-r--r--pokemontools/sym.py (renamed from sym.py)0
-rw-r--r--pokemontools/trainers.py (renamed from trainers.py)0
-rw-r--r--pokemontools/type_constants.py (renamed from type_constants.py)0
-rw-r--r--pokemontools/wram.py (renamed from wram.py)0
-rw-r--r--setup.py44
-rw-r--r--tests/test_dump_sections.py (renamed from test_dump_sections.py)0
-rw-r--r--tests/tests.py (renamed from tests.py)0
29 files changed, 45 insertions, 0 deletions
diff --git a/dump_sections b/bin/dump_sections
index 362318f..362318f 100755
--- a/dump_sections
+++ b/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
index fc69fc5..fc69fc5 100644
--- a/chars.py
+++ b/pokemontools/chars.py
diff --git a/comparator.py b/pokemontools/comparator.py
index 6cc440c..6cc440c 100644
--- a/comparator.py
+++ b/pokemontools/comparator.py
diff --git a/crystal.py b/pokemontools/crystal.py
index 9ee6ec0..9ee6ec0 100644
--- a/crystal.py
+++ b/pokemontools/crystal.py
diff --git a/disassemble_map_scripts.py b/pokemontools/disassemble_map_scripts.py
index 21df569..21df569 100644
--- a/disassemble_map_scripts.py
+++ b/pokemontools/disassemble_map_scripts.py
diff --git a/dump_sections.py b/pokemontools/dump_sections.py
index fef35d8..fef35d8 100755
--- a/dump_sections.py
+++ b/pokemontools/dump_sections.py
diff --git a/gbz80disasm.py b/pokemontools/gbz80disasm.py
index 6759a4a..6759a4a 100644
--- a/gbz80disasm.py
+++ b/pokemontools/gbz80disasm.py
diff --git a/gfx.py b/pokemontools/gfx.py
index c632ac0..c632ac0 100644
--- a/gfx.py
+++ b/pokemontools/gfx.py
diff --git a/graph.py b/pokemontools/graph.py
index 47087e5..47087e5 100644
--- a/graph.py
+++ b/pokemontools/graph.py
diff --git a/interval_map.py b/pokemontools/interval_map.py
index daf22cd..daf22cd 100644
--- a/interval_map.py
+++ b/pokemontools/interval_map.py
diff --git a/item_constants.py b/pokemontools/item_constants.py
index 3692c92..3692c92 100644
--- a/item_constants.py
+++ b/pokemontools/item_constants.py
diff --git a/labels.py b/pokemontools/labels.py
index d553bdc..d553bdc 100644
--- a/labels.py
+++ b/pokemontools/labels.py
diff --git a/map_names.py b/pokemontools/map_names.py
index 00cf452..00cf452 100644
--- a/map_names.py
+++ b/pokemontools/map_names.py
diff --git a/move_constants.py b/pokemontools/move_constants.py
index a20af85..a20af85 100644
--- a/move_constants.py
+++ b/pokemontools/move_constants.py
diff --git a/old_parse_scripts.py b/pokemontools/old_parse_scripts.py
index 8ed10ef..8ed10ef 100644
--- a/old_parse_scripts.py
+++ b/pokemontools/old_parse_scripts.py
diff --git a/overworldripper.py b/pokemontools/overworldripper.py
index 654f287..654f287 100644
--- a/overworldripper.py
+++ b/pokemontools/overworldripper.py
diff --git a/parse_consecutive_strings.py b/pokemontools/parse_consecutive_strings.py
index 4c864ba..4c864ba 100644
--- a/parse_consecutive_strings.py
+++ b/pokemontools/parse_consecutive_strings.py
diff --git a/pksv.py b/pokemontools/pksv.py
index 2f02ec0..2f02ec0 100644
--- a/pksv.py
+++ b/pokemontools/pksv.py
diff --git a/pointers.py b/pokemontools/pointers.py
index 161a53e..161a53e 100644
--- a/pointers.py
+++ b/pokemontools/pointers.py
diff --git a/pokemon_constants.py b/pokemontools/pokemon_constants.py
index 221a31c..221a31c 100644
--- a/pokemon_constants.py
+++ b/pokemontools/pokemon_constants.py
diff --git a/romstr.py b/pokemontools/romstr.py
index 69a4f2a..69a4f2a 100644
--- a/romstr.py
+++ b/pokemontools/romstr.py
diff --git a/sym.py b/pokemontools/sym.py
index f78b9af..f78b9af 100644
--- a/sym.py
+++ b/pokemontools/sym.py
diff --git a/trainers.py b/pokemontools/trainers.py
index cf17b98..cf17b98 100644
--- a/trainers.py
+++ b/pokemontools/trainers.py
diff --git a/type_constants.py b/pokemontools/type_constants.py
index da89b0b..da89b0b 100644
--- a/type_constants.py
+++ b/pokemontools/type_constants.py
diff --git a/wram.py b/pokemontools/wram.py
index 5352fb4..5352fb4 100644
--- a/wram.py
+++ b/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
index b73b86f..b73b86f 100644
--- a/test_dump_sections.py
+++ b/tests/test_dump_sections.py
diff --git a/tests.py b/tests/tests.py
index 227071f..227071f 100644
--- a/tests.py
+++ b/tests/tests.py