Skip to content

Commit 41bcfd7

Browse files
author
Scisco
committed
Merge pull request #47 from developmentseed/pypi
Ready for pypi roll out
2 parents 8befc67 + b247790 commit 41bcfd7

24 files changed

+1015
-6089
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ MANIFEST
1313
*flymake.py
1414
.settings
1515
.vagrant
16+
.pypirc
1617
metadata.csv
1718
txt.txt
1819
eva.py
1920
test.sh
21+
_build
22+
htmlcov
2023

CHANGELOG.txt

-12
This file was deleted.

Formula/landsat-util.rb

-22
This file was deleted.

MANIFEST.in

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
include README.md
2-
include .gitignore
1+
include AUTHORS.txt
32
include LICENSE
4-
recursive-include landsat/assests *.prj *.sbn *.sbx
5-
recursive-include landsat/assests *.shp *.xml *.shx *.html *.txt *.dbf
6-
recursive-include doc *.html
3+
include README.md
4+
5+
recursive-include tests *
6+
recursive-exclude * __pycache__
7+
recursive-exclude * *.py[co]
8+
9+
recursive-include docs *.rst conf.py Makefile make.bat
10+
recursive-include landsat/tests/samples *.tar.bz2

Makefile

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
.PHONY: clean-pyc clean-build docs clean
2+
3+
help:
4+
@echo "clean - remove all build, test, coverage and Python artifacts"
5+
@echo "clean-build - remove build artifacts"
6+
@echo "clean-pyc - remove Python file artifacts"
7+
@echo "clean-test - remove test and coverage artifacts"
8+
@echo "lint - check style with flake8"
9+
@echo "test - run tests quickly with the default Python"
10+
@echo "test-all - run tests on every Python version with tox"
11+
@echo "coverage - check code coverage quickly with the default Python"
12+
@echo "docs - generate Sphinx HTML documentation, including API docs"
13+
@echo "release - package and upload a release"
14+
@echo "dist - package"
15+
@echo "install - install the package to the active Python's site-packages"
16+
17+
clean: clean-build clean-pyc clean-test
18+
19+
clean-build:
20+
rm -fr build/
21+
rm -fr dist/
22+
rm -fr .eggs/
23+
find . -name '*.egg-info' -exec rm -fr {} +
24+
find . -name '*.egg' -exec rm -f {} +
25+
26+
clean-pyc:
27+
find . -name '*.pyc' -exec rm -f {} +
28+
find . -name '*.pyo' -exec rm -f {} +
29+
find . -name '*~' -exec rm -f {} +
30+
find . -name '__pycache__' -exec rm -fr {} +
31+
32+
clean-test:
33+
rm -fr .tox/
34+
rm -f .coverage
35+
rm -fr htmlcov/
36+
37+
test:
38+
nosetests
39+
40+
test-all:
41+
tox
42+
43+
coverage:
44+
coverage run --source landsat setup.py test
45+
coverage report -m
46+
coverage html
47+
open htmlcov/index.html
48+
49+
docs:
50+
rm -f docs/landsat.rst
51+
rm -f docs/modules.rst
52+
sphinx-apidoc -o docs/ landsat
53+
$(MAKE) -C docs clean
54+
$(MAKE) -C docs html
55+
open docs/_build/html/index.html
56+
57+
test-release: clean
58+
python setup.py sdist upload -r pypitest
59+
python setup.py bdist_wheel upload -r pypitest
60+
61+
vagrant:
62+
vagrant up
63+
vagrant destroy
64+
65+
release: clean
66+
python setup.py sdist upload
67+
python setup.py bdist_wheel upload
68+
69+
dist: clean
70+
python setup.py sdist
71+
python setup.py bdist_wheel
72+
ls -l dist
73+
74+
install: clean
75+
python setup.py install

README.rst

+16-9
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,40 @@ You can also run your own API and connect it to this tool.
1515
Installation
1616
============
1717

18-
sudo apt-get update
19-
sudo apt-get install python-pip python-numpy python-scipy libgdal-dev
20-
pip install -r requirements.txt
21-
2218
**On Mac**
2319

2420
.. code-block:: console
2521
2622
$: pip install landsat-util
2723
28-
**On Ubuntu**
24+
**On Ubuntu 14.04**
2925

30-
Use pip to install landsat-util:
26+
Use pip to install landsat-util. If you are not using virtualenv, you might have to run ``pip`` as ``sudo``.
3127

3228
.. code-block:: console
3329
3430
$: sudo apt-get update
35-
$: sudo apt-get update
36-
$: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev
31+
$: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran
3732
$: pip install landsat-util
3833
3934
**On Other systems**
4035

4136
.. code-block:: console
4237
43-
$: pip install landsat-util
38+
$: python setup.py install
39+
40+
41+
**To Upgrade**
42+
43+
.. code-block:: console
44+
45+
$: pip install -U landsat-util
46+
47+
If you have installed previous version of landsat using brew, first run:
48+
49+
.. code-block:: console
4450
51+
$: brew uninstall landsat-util
4552
4653
Overview: What can landsat-util do?
4754
============

0 commit comments

Comments
 (0)