Commit graph

23 commits

Author SHA1 Message Date
Eevee
66988fb070 Merge remote-tracking branch 'origin/encukou-whoosh'
Conflicts:
	setup.py
2011-09-06 23:33:08 -07:00
Eevee
3a59ef1fe0 Update us to SQLAlchemy 0.7. #582 2011-09-04 23:19:56 -07:00
Petr Viktorin
af8215535e Use the new Whoosh API for spelling. May help #181. 2011-08-30 23:17:20 +03:00
a_magical_me
e7c40a08af Speed up import pokedex.db slightly.
Importing pokedex can take several seconds due to its rather large
dependencies—in particular, sqlalchemy, whoosh, and pkg_resources seem
to be the largest offenders. Normally, it would be possible to import
only the submodules one needs (pokedex.db, say), but pokedex.__init__
brings in all the submodules, for use by the command-line interface.

The fix is rather obvious:

- Move the command-line stuff into pokedex.main.

  Note: because the submodules are no longer imported by default, any
  script which expects `import pokedex` to be useful will likely break.

  Note: the `pokedex` command will not work until you re-run `python
  setup.py develop`, to update entry_points.txt.

- Don't import pkg_resources until necessary.
2011-04-03 03:13:07 -07:00
Petr Viktorin
d813e24b25 I18n for the database schema
- Helper base class: Named
  Subclasses: OfficiallyNamed, UnofficiallyNamed
  for these, a 'name' column is created in the appropriate text table
  also, they get automatic __str__/__repr__/__unicode__
- Faux columns: ProseColumn, TextColumn
  these become columns in the appropriate text tables
  these text tables (*_text, *_prose) are auto-generated at the end
  the main table gets one property (singular name) that gets the English text
   and one (plural name) with dict of texts keyed by language
- Every named table gets 'identifier'
- Languages compare & hash equal to their identifiers
- Existing foreign-name tables replaced by the autogenerated ones
- order_by: names replaced by identifiers
- New function: all_tables(), yields all tables
- Markdown move properties removed for now
- Schema test suite
2011-03-13 15:10:10 -07:00
Eevee
9a5c3e93f1 Bump required whoosh version. 2010-10-16 22:50:22 -07:00
Eevee
c1c1d8cb63 Added a big old construct-based pkm parser. #183 2010-06-17 21:47:44 -07:00
Eevee
a3b27c6b10 No longer require docutils. 2010-06-17 21:47:44 -07:00
Eevee
1fbba5476c Scrap docutils for markdown. #275 2010-06-02 00:17:27 -07:00
Eevee
00ac500da8 Bump required SQLA to 0.6. 2010-06-02 00:17:27 -07:00
Eevee
9a985f187e Make setup.py install work with package_data.
The CSVs are now the only package data.  Otherwise, setuptools would
copy every single sprite individually to the standard library directory,
which is slow and time-consuming and wasteful.  If you need the sprites,
use them from the repo.  :(
2010-05-15 13:11:01 -07:00
Eevee
2d88a8c936 Require docutils. 2009-11-01 20:42:13 -08:00
Eevee
fce02ad9eb Fixed up setup.py. Most notably, 'install' now works.
The package_data line was still wrong.

Also turned off zip_safe, since it's really not; pokedex setup tries to
write to the install directory!

Finally, bumped the whoosh version; the beta I required has been taken
off pypi, and the bugs in b6 seem to be gone now.
2009-09-13 20:11:05 -07:00
Eevee
71b5359d57 setup.py needs a list for package_data, not a string 2009-09-02 23:42:46 -07:00
Eevee
238022485a Fix whoosh version so Nidoran search works. 2009-08-22 21:50:33 -07:00
Eevee
0300e01cff Removed whoosh hacks; 0.3 obviates them. #15 2009-08-18 23:50:35 -07:00
Eevee
238487c908 Fixed whoosh index creation to work with 0.2.x. #15 2009-08-16 21:03:49 -07:00
Eevee
b13ffac247 Pokédex lookup now uses a whoosh index and spell-checker. #15 2009-07-25 01:28:33 -07:00
Eevee
33e659c79a Added SQLAlchemy to setup.py and fixed a typo in .gitignore. 2009-03-07 16:26:57 -08:00
Eevee
b9b1b3ddcd Added Sugimori art. Moves images into data/ folder. 2009-02-28 00:00:39 -08:00
Eevee
f67cf73581 Reverted unnecessary changes to setup.py. 2009-02-22 23:46:25 -08:00
Eevee
77ee4eb8a0 Moved CSV sources into pokedex/.
This appears to be the only way to make data access in eggs actually
work, and is why the Platinum sprites are in pokedex/ too.
2009-02-22 23:44:40 -08:00
Eevee
bad044d1d8 Initial commit, with much of the data imported.
Includes a wrapper script 'pokedex' that can, so far, read data from a
db and spit out CSVs or deploy CSVs to a db.
2009-02-05 00:05:42 -08:00