diff --git a/README.md b/README.rst similarity index 50% rename from README.md rename to README.rst index 911d24b..5892f77 100644 --- a/README.md +++ b/README.rst @@ -1,33 +1,38 @@ -# spatialite +spatialite +========== Wrapper for standard Python module `sqlite3` which adds SpatiaLite support. -## Requirement: mod_spatialite +Requirement: mod_spatialite +--------------------------- This module will try to load SpatiaLite extension in SQLite and thus requires "mod_spatialite" being present. -Ubuntu: +Ubuntu:: $ apt-get install libsqlite3-mod-spatialite -macOS: +macOS:: $ brew install libspatialite -## Install +Install +------- + +Using pip:: $ pip install spatialite +Usage +----- -## Usage +.. code-block:: python -```python -import spatialite + import spatialite -with spatialite.connect('sl_temp.db') as db: - print(db.execute('SELECT spatialite_version()').fetchone()[0]) -``` + with spatialite.connect('sl_temp.db') as db: + print(db.execute('SELECT spatialite_version()').fetchone()[0]) diff --git a/setup.py b/setup.py index b1aaa81..b25bece 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ cwd = path.abspath(path.dirname(__file__)) -with open(path.join(cwd, 'README.md'), encoding='utf-8') as f: +with open(path.join(cwd, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( @@ -15,7 +15,6 @@ description='Wrapper of sqlite3 module which adds SpatiaLite support.', long_description=long_description, - long_description_content_type='text/markdown', url='https://github.com/malexer/spatialite', author='Alex (Oleksii) Markov',