Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotaimen committed Oct 13, 2015
2 parents 28f8eb8 + 08d01d9 commit 0216e38
Show file tree
Hide file tree
Showing 74 changed files with 54 additions and 35 deletions.
10 changes: 10 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ Feature:
- Stability and bug fixes
- Performance turning
- Docker deployment


v0.2.0
------

Release date: 2015-10-13

- Supports docker-compose and AWS ECS deployment
- Rearranged unittest sources

32 changes: 17 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
FROM kotaimen/stonemason-base:0.2.0rc2
FROM kotaimen/stonemason-base:0.2.0
MAINTAINER Kotaimen <kotaimen.c@gmail.com>
ENV DEBIAN_FRONTEND noninteractive

#
# Set locale, otherwise Click complains, see http://click.pocoo.org/3/python3/
#
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

#
# Install stonemason and run tests
#
WORKDIR /tmp/stonemason

WORKDIR /tmp/stonemason/

ADD . ./

RUN pip install -rrequirements-dev.txt && \
pip install . && \
python setup.py build_ext -if && \
tox -e py27geo && \
stonemason init && \
stonemason check && \
tox -e py27 && \
rm -rf /tmp/stonemason

ENTRYPOINT ["stonemason"]
CMD ["--help"]
#
# Create a sample at /var/lib/stonemason/map_gallery
#
WORKDIR /var/lib/stonemason/

RUN stonemason init && \
stonemason check

#
# Entry
#
EXPOSE 80
ENTRYPOINT ["stonemason"]
CMD [tileserver", "--bind=0.0.0.0:80"]
6 changes: 5 additions & 1 deletion Dockerfile-12.04
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# For legacy travis environment
#

FROM ubuntu:12.04
MAINTAINER Kotaimen <kotaimen.c@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
Expand Down Expand Up @@ -75,6 +79,6 @@ RUN pip install -rrequirements-dev.txt && \
# Check installation
#
RUN python setup.py build_ext -if
RUN tox -e py27geo
RUN tox -e py27
RUN stonemason init
RUN stonemason -v check
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ Features:
- Image composer based on PIL and imagemagick (done)
- Zero configuration deployment (done)

> TODO: Add a demo page here.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
six>=1.8.0
Flask>=0.10
Pillow>=2.3.0
Pillow>=2.3.0,<3.0.0
pylibmc>=1.4.3
boto>=2.35.0
Click>=3.0.0
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def find_version(*file_paths):
install_requires = [
'six>=1.9.0',
'Flask>=0.10',
'Pillow>=2.3.0',
'Pillow>=2.3.0,<3.0.0',
'boto>=2.35.0',
'Click>=4.0',
'gunicorn>=19.0.0',
Expand Down Expand Up @@ -87,7 +87,8 @@ def find_version(*file_paths):
entry_points = '''
[console_scripts]
stonemason=stonemason.__main__:cli
'''
stonemason%d=stonemason.__main__:cli
''' % sys.version_info.major
#
# Custom commands
#
Expand Down Expand Up @@ -165,7 +166,7 @@ def run(self):
description='Map tile service toolkit.',
long_description=long_description,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: POSIX',
Expand All @@ -176,11 +177,10 @@ def run(self):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
keywords='map tile mapnik gdal tms',
author='The Stonemasons',
author='K&R',
author_email='kotaimen.c@gmail.com, gliese.q@gmail.com',
url='http://github.com/kotaimen/stonemason',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion stonemason/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


# Version used in the setup.py
__version__ = '0.2.0rc2'
__version__ = '0.2.0'

# Prevent nosetests peek into this package
__test__ = False
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def test_config_from_pyfile(self):
self.assertRaises(IOError, TileServerApp, 'settings.py')

def test_config_from_env_variables(self):
os.environ['STONEMASON_DEBUG'] = 'True'
os.environ['STONEMASON_CACHE'] = '127.0.0.1'
app = TileServerApp()
self.assertIn('STONEMASON_DEBUG', app.config)
self.assertIn('STONEMASON_CACHE', app.config)

def test_config_from_cmd_varables(self):
app = TileServerApp(STONEMASON_DEBUG=True)
self.assertIn('STONEMASON_DEBUG', app.config)
app = TileServerApp(STONEMASON_CACHE='127.0.0.1')
self.assertIn('STONEMASON_CACHE', app.config)


@skipUnlessHasGDAL()
Expand Down
1 change: 0 additions & 1 deletion tests/stonemason/service/__init__.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 11 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
# and then run "tox" from this directory.

[tox]
envlist = py27, py27geo, py34, docs
envlist = py27, docs

[testenv]
changedir=tests
[testenv:py34]
basepython=python3.4
;changedir=tests
sitepackages=True
whitelist_externals=nosetests3
commands =
nosetests --no-path-adjustment
python setup.py build_ext -if
nosetests3
deps =
-rrequirements-dev.txt

[testenv:py27geo]
[testenv:py27]
basepython=python2.7
changedir=tests
;changedir=tests
sitepackages=True
whitelist_externals=nosetests
commands =
python setup.py build_ext -if
nosetests
deps =
-rrequirements-dev.txt
Expand Down

0 comments on commit 0216e38

Please sign in to comment.