Skip to content

Commit

Permalink
Merge branch 'release/4.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Feb 16, 2020
2 parents 2b51ee9 + 3ffdcec commit 61359e6
Show file tree
Hide file tree
Showing 37 changed files with 89 additions and 36 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include configure
include LICENSE
include Makefile.in
include README.rst
include README-standalone.rst
include CREDITS.rst
include src/server/*.h
include src/server/*.c
Expand Down
30 changes: 30 additions & 0 deletions README-standalone.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Overview
--------

The mod_wsgi package provides an Apache module that implements a WSGI
compliant interface for hosting Python based web applications on top of the
Apache web server.

The primary package for mod_wsgi is available on the Python package index
(PyPi) as ``mod_wsgi``. That package assumes that you have a suitable
version of Apache pre-installed on your target system, and if you don't,
installation of the package will fail.

If you are on a UNIX like system (Linux, macOS) and need a version of
Apache to be installed for you, you can use the ``mod_wsgi-standalone``
package on PyPi instead. When installing the ``mod_wsgi-standalone``
package it will first trigger the installation of the ``mod_wsgi-httpd``
package, which will result in a version of Apache being installed as
part of your Python installation. Next the ``mod_wsgi`` package will be
installed, with it using the version of Apache installed by the
``mod_wsgi-httpd`` package rather than any system package for Apache.

Note that this method of installation is only suitable for where you want
to use ``mod_wsgi-expres``. It cannot be used to build mod_wsgi for use
with your system Apache installation. This installation method will also
not work on Windows.

When installing mod_wsgi using this method, except that you will install
the ``mod_wsgi-standalone`` package instead of the ``mod_wsgi`` package,
you should follow installation and usage instructions outlined on the
PyPi page for the ``mod_wsgi`` package.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl vim: set sw=4 expandtab :
dnl
dnl Copyright 2007-2018 GRAHAM DUMPLETON
dnl Copyright 2007-2020 GRAHAM DUMPLETON
dnl
dnl Licensed under the Apache License, Version 2.0 (the "License");
dnl you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# General information about the project.
project = u'mod_wsgi'
copyright = u'2007-2019, Graham Dumpleton'
copyright = u'2007-2020, Graham Dumpleton'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration-directives/WSGIChunkedRequest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ block size passed as argument and do this until ``read()`` returns an empty
string.

Because both calling methods are not allowed under WSGI specification, in
using these your code will not technically be portable to other WSGI hosting
using these, your code will not technically be portable to other WSGI hosting
mechanisms, although if those other WSGI servers support it, you will be
okay.

Expand All @@ -43,6 +43,6 @@ request WSGI ``environ`` dictionary. When this is done the web frameworks
will always read all available input and ignore ``CONTENT_LENGTH``.

Because mod_wsgi guarantees that an empty string is returned when all input
is exhausted, it will will always set this flag.
is exhausted, it will always set this flag.

It is known that Flask/Werkzeug supports the ``wsgi.input_terminated`` flag.
1 change: 1 addition & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release Notes
:maxdepth: 2

release-notes/version-4.7.0
release-notes/version-4.7.1

release-notes/version-4.6.8
release-notes/version-4.6.7
Expand Down
14 changes: 14 additions & 0 deletions docs/release-notes/version-4.7.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
=============
Version 4.7.1
=============

Version 4.7.1 of mod_wsgi can be obtained from:

https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.7.1

Bugs Fixed
----------

* Fix up installation on Windows into a virtual environment when
using latest ``virtualenv`` version, or recent Python versions
with the bundled ``venv`` module for creating virtual environments.
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

rm -rf dist
rm -rf build dist

rm -f pyproject.toml

Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ def get_apu_includes():
if os.name == 'nt':
if hasattr(sys, 'real_prefix'):
PYTHON_LIBDIR = sys.real_prefix
elif hasattr(sys, 'base_prefix'):
PYTHON_LIBDIR = sys.base_prefix
else:
PYTHON_LIBDIR = get_python_config('BINDIR')

Expand Down Expand Up @@ -542,11 +544,16 @@ def _version():

# Now finally run distutils.

package_name = 'mod_wsgi'
long_description = open('README.rst').read()

standalone = os.path.exists('pyproject.toml')

setup(name = standalone and 'mod_wsgi-standalone' or 'mod_wsgi',
if standalone:
package_name = 'mod_wsgi-standalone'
long_description = open('README-standalone.rst').read()

setup(name = package_name,
version = _version(),
description = 'Installer for Apache/mod_wsgi.',
long_description = long_description,
Expand Down
2 changes: 1 addition & 1 deletion src/server/mod_wsgi.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_apache.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_apache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_buckets.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_buckets.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_convert.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_daemon.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_daemon.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_interp.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_logger.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_metrics.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_python.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_restrict.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_restrict.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_server.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_stream.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_thread.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_validate.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/server/wsgi_validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/server/wsgi_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* ------------------------------------------------------------------------- */

/*
* Copyright 2007-2019 GRAHAM DUMPLETON
* Copyright 2007-2020 GRAHAM DUMPLETON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,8 +25,8 @@

#define MOD_WSGI_MAJORVERSION_NUMBER 4
#define MOD_WSGI_MINORVERSION_NUMBER 7
#define MOD_WSGI_MICROVERSION_NUMBER 0
#define MOD_WSGI_VERSION_STRING "4.7.0"
#define MOD_WSGI_MICROVERSION_NUMBER 1
#define MOD_WSGI_VERSION_STRING "4.7.1"

/* ------------------------------------------------------------------------- */

Expand Down

0 comments on commit 61359e6

Please sign in to comment.