Skip to content

CivicVision/ambry

 
 

Repository files navigation

Ambry Databundles ================

Install

See http://ambry.io for the general documentation, http://docs.ambry.io/en/latest/install_config/install.html for instgallation, and http://docs.ambry.io/en/latest/install_config/configuration.html for additional configuration.

Setup with Miniconda on Mac

You can setup Ambry as a normal package, but the geographic library, GDAL, is really difficult to install, so your Ambry installation won't produce geo databases. The best way to get GDAL installed is with Anaconda.

First, install miniconda, ( python 2.7 )

$ wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
$ bash miniconda.sh -b

# Activate the anaconda environment
$ export PATH=~/miniconda/bin:$PATH

Now you can create the environment.

$ conda create -n ambry python

# Where did conda put it?
$ conda info -e

# Now, activate it.
$ source activate ambry

More about creating conda virtual environments: http://conda.pydata.org/docs/faq.html#env-creating

After setting up ambry, you can use conda to install gdal

$ git clone https://github.com/<githubid>/ambry.git
$ cd ambry
$ pip install -r requirements.txt
$ conda install gdal
$ python setup.py devel

Running the ambry tests

$ git clone https://github.com/<githubid>/ambry.git
$ cd ambry
$ pip install -r requirements/dev.txt
$ python setup.py test

Test command options:

--verbosity - verbosity of the tests, 1 by default.
--failfast - if given, stop testing on first fail.

Examples:

$ python setup.py test --verbosity=2 --failfast

Coverage

To test with coverage:

$ coverage run setup.py test
$ coverage html

Then, open htmlcov/index.html in a browser.

About

A comprehensive data package manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.6%
  • HTML 3.6%
  • Shell 0.8%
  • CSS 0.7%
  • JavaScript 0.2%
  • Ruby 0.1%