From 978d22e77ee462212cc5d5d24263ee6598ea08d5 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 9 Jul 2014 23:18:46 +0200 Subject: [PATCH 1/4] fix wrong status code type --- CHANGES.rst | 2 +- isso/wsgi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index c353bbb..e91dfd6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ Changelog for Isso 0.9.4 (unreleased) ------------------ -- Nothing changed yet. +- fixed a regression when using Isso and Gevent 0.9.3 (2014-07-09) diff --git a/isso/wsgi.py b/isso/wsgi.py index 37605c3..a2753f9 100644 --- a/isso/wsgi.py +++ b/isso/wsgi.py @@ -142,7 +142,7 @@ class CORSMiddleware(object): return start_response(status, headers.to_list(), exc_info) if environ.get("REQUEST_METHOD") == "OPTIONS": - add_cors_headers("200 Ok", [("Content-Type", "text/plain")]) + add_cors_headers(b"200 Ok", [("Content-Type", "text/plain")]) return [b'200 Ok'] return self.app(environ, add_cors_headers) From 203f9c7c1a0d0226b5f5e1aacef34581d43da37a Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 9 Jul 2014 23:23:30 +0200 Subject: [PATCH 2/4] Preparing release 0.9.4 --- CHANGES.rst | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e91dfd6..6a9aa44 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Changelog for Isso ================== -0.9.4 (unreleased) +0.9.4 (2014-07-09) ------------------ - fixed a regression when using Isso and Gevent diff --git a/setup.py b/setup.py index b67ecf2..084dfa2 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ else: setup( name='isso', - version='0.9.4.dev0', + version='0.9.4', author='Martin Zimmermann', author_email='info@posativ.org', packages=find_packages(), From 7f82745cd00e27dedb8516bc0d6be35957992f10 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 9 Jul 2014 23:23:42 +0200 Subject: [PATCH 3/4] Back to development: 0.9.5 --- CHANGES.rst | 6 ++++++ setup.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6a9aa44..2d9943f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,12 @@ Changelog for Isso ================== +0.9.5 (unreleased) +------------------ + +- Nothing changed yet. + + 0.9.4 (2014-07-09) ------------------ diff --git a/setup.py b/setup.py index 084dfa2..d7ce269 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ else: setup( name='isso', - version='0.9.4', + version='0.9.5.dev0', author='Martin Zimmermann', author_email='info@posativ.org', packages=find_packages(), From a89f2284779928902a993c1acb1e73c702b4cd93 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 13 Jul 2014 11:17:43 +0200 Subject: [PATCH 4/4] fix virtualenv path, add yum/apt-get hints and AUR package --- docs/docs/install.rst | 46 ++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/docs/docs/install.rst b/docs/docs/install.rst index 6567905..21657fb 100644 --- a/docs/docs/install.rst +++ b/docs/docs/install.rst @@ -47,8 +47,8 @@ but not recommended): .. code-block:: sh - ~> virtualenv /home/user/python/isso - ~> source /home/user/python/isso/activate + ~> virtualenv /path/to/isso + ~> source /path/to/isso/bin/activate After calling `source`, you can now install packages from PyPi locally into this virtual environment. If you don't like Isso anymore, you just `rm -rf` the @@ -69,11 +69,29 @@ machines or a shared host (e.g. Uberspace.de). Install from PyPi ----------------- -Requirements: +Requirements +^^^^^^^^^^^^ -- Python 2.6, 2.7 or 3.3+ (+ devel headers) -- SQLite 3.3.8 or later -- a working C compiler +- Python 2.6, 2.7 or 3.3+ (+ devel headers) +- SQLite 3.3.8 or later +- a working C compiler + +For Debian/Ubuntu just `copy and paste +`_ to your terminal: + +.. code-block:: sh + + ~> sudo apt-get install python-dev sqlite3 build-essential + +Similar for Fedora (and derivates): + +.. code-block:: sh + + ~> sudo yum install python-devel sqlite + ~> sudo yum groupinstall “Development Tools” + +Installation +^^^^^^^^^^^^ Install Isso with `pip `_: @@ -88,16 +106,20 @@ Install Isso with `pip `_: ~> easy_install isso # cross your fingers For easier execution, you can symlink the executable to a location in your -PATH: +:envvar:`PATH`. .. code-block:: sh ~> ln -s /path/to/isso-venv/bin/isso /usr/local/bin/isso +Upgrade +^^^^^^^ + To upgrade Isso, activate your virtual environment again, and run .. code-block:: sh + ~> source /path/to/isso/bin/activate # optional ~> pip install --upgrade isso .. _prebuilt-package: @@ -108,15 +130,15 @@ Prebuilt Packages * Debian: https://packages.crapouillou.net/ – built from PyPi. Includes startup scripts and vhost configurations for Lighttpd, Apache and Nginx [`source `__]. - - `#729218 `_ is a - ITP for Debian. To be officially packages by Debian, `#51 - `_ needs to be done (contributions - are welcome). + `#729218 `_ is an + ITP for Debian. * Gentoo: http://eroen.eu/cgit/cgit.cgi/eroen-overlay/tree/www-apps/isso?h=isso – not yet available in Portage, but you can use the ebuild to build Isso. +* Arch Linux: https://aur.archlinux.org/packages/isso/ + – install with `yaourt isso`. + Install from Source -------------------