Merge branch 'legacy/0.9'
Conflicts: CHANGES.rst docs/docs/install.rst setup.py
This commit is contained in:
commit
f0d1958cc0
12
CHANGES.rst
12
CHANGES.rst
@ -7,6 +7,18 @@ Changelog for Isso
|
|||||||
- Nothing changed yet.
|
- Nothing changed yet.
|
||||||
|
|
||||||
|
|
||||||
|
0.9.5 (unreleased)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
- Nothing changed yet.
|
||||||
|
|
||||||
|
|
||||||
|
0.9.4 (2014-07-09)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
- fixed a regression when using Isso and Gevent
|
||||||
|
|
||||||
|
|
||||||
0.9.3 (2014-07-09)
|
0.9.3 (2014-07-09)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
@ -47,8 +47,8 @@ but not recommended):
|
|||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
~> virtualenv /home/user/python/isso
|
~> virtualenv /path/to/isso
|
||||||
~> source /home/user/python/isso/activate
|
~> source /path/to/isso/bin/activate
|
||||||
|
|
||||||
After calling `source`, you can now install packages from PyPi locally into this
|
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
|
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
|
Install from PyPi
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Requirements:
|
Requirements
|
||||||
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
- Python 2.6, 2.7 or 3.3+ (+ devel headers)
|
- Python 2.6, 2.7 or 3.3+ (+ devel headers)
|
||||||
- SQLite 3.3.8 or later
|
- SQLite 3.3.8 or later
|
||||||
- a working C compiler
|
- a working C compiler
|
||||||
|
|
||||||
|
For Debian/Ubuntu just `copy and paste
|
||||||
|
<http://thejh.net/misc/website-terminal-copy-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 <http://www.pip-installer.org/en/latest/>`_:
|
Install Isso with `pip <http://www.pip-installer.org/en/latest/>`_:
|
||||||
|
|
||||||
@ -88,16 +106,20 @@ Install Isso with `pip <http://www.pip-installer.org/en/latest/>`_:
|
|||||||
~> easy_install isso # cross your fingers
|
~> easy_install isso # cross your fingers
|
||||||
|
|
||||||
For easier execution, you can symlink the executable to a location in your
|
For easier execution, you can symlink the executable to a location in your
|
||||||
PATH:
|
:envvar:`PATH`.
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
~> ln -s /path/to/isso-venv/bin/isso /usr/local/bin/isso
|
~> ln -s /path/to/isso-venv/bin/isso /usr/local/bin/isso
|
||||||
|
|
||||||
|
Upgrade
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
To upgrade Isso, activate your virtual environment again, and run
|
To upgrade Isso, activate your virtual environment again, and run
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
|
~> source /path/to/isso/bin/activate # optional
|
||||||
~> pip install --upgrade isso
|
~> pip install --upgrade isso
|
||||||
|
|
||||||
.. _prebuilt-package:
|
.. _prebuilt-package:
|
||||||
@ -108,16 +130,14 @@ Prebuilt Packages
|
|||||||
* Debian: https://packages.crapouillou.net/ – built from PyPi. Includes
|
* Debian: https://packages.crapouillou.net/ – built from PyPi. Includes
|
||||||
startup scripts and vhost configurations for Lighttpd, Apache and Nginx
|
startup scripts and vhost configurations for Lighttpd, Apache and Nginx
|
||||||
[`source <https://github.com/jgraichen/debian-isso>`__].
|
[`source <https://github.com/jgraichen/debian-isso>`__].
|
||||||
|
`#729218 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729218>`_ is an
|
||||||
`#729218 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729218>`_ is a
|
ITP for Debian.
|
||||||
ITP for Debian. To be officially packages by Debian, `#51
|
|
||||||
<https://github.com/posativ/isso/issues/51>`_ needs to be done (contributions
|
|
||||||
are welcome).
|
|
||||||
|
|
||||||
* Gentoo: http://eroen.eu/cgit/cgit.cgi/eroen-overlay/tree/www-apps/isso?h=isso
|
* 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.
|
– not yet available in Portage, but you can use the ebuild to build Isso.
|
||||||
|
|
||||||
* Arch Linux: https://aur.archlinux.org/packages/isso/ – built from PyPi.
|
* Arch Linux: https://aur.archlinux.org/packages/isso/
|
||||||
|
– install with `yaourt isso`.
|
||||||
|
|
||||||
Install from Source
|
Install from Source
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -142,7 +142,7 @@ class CORSMiddleware(object):
|
|||||||
return start_response(status, headers.to_list(), exc_info)
|
return start_response(status, headers.to_list(), exc_info)
|
||||||
|
|
||||||
if environ.get("REQUEST_METHOD") == "OPTIONS":
|
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 [b'200 Ok']
|
||||||
|
|
||||||
return self.app(environ, add_cors_headers)
|
return self.app(environ, add_cors_headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user