2445 Commits

Author SHA1 Message Date
Benno Rice
a4461ba158 RequestParser takes two parameters. 2017-07-12 16:17:50 +03:00
Benno Rice
e81c654c2d __str__ doesn't take any extra parameters. 2017-07-12 16:17:26 +03:00
Benno Rice
1f42421762 Fix a broken format string. 2017-07-12 16:16:40 +03:00
Benno Rice
e6edcb454a Remove some errant trailing commas. 2017-07-12 16:16:10 +03:00
Benno Rice
032271a030 Empty sequences are false, there's no need to check the len. 2017-07-12 16:15:42 +03:00
Benno Rice
5b89fe1beb Don't use a list comprehension as shorthand for a for loop. 2017-07-12 16:14:57 +03:00
Benno Rice
72dd0199d7 Deal fully with deprecated functions.
If possible use a function based on inspect.signature to calculate the
arity.  If inspect.signature is not available fall back to getargspec. The
version based on inspect.signature looks like more code but is actually a
subset of what inspect.getfullargspec does.

html.escape is preferred over cgi.escape primarily because it defaults quote
to True. For this reason pass quote=True to cgi.escape when used.
2017-07-12 16:14:09 +03:00
Peter VandeHaar
fc7c15abbd Only use inotify on linux (#1541)
Fixes #1540
2017-07-12 12:55:48 +03:00
Nejc Saje
c58560b895 Document selection of 'gthread' worker if sync && threads > 1
The current documentation makes a reader believe that the setting is ignored if the worker type is not Gthread. That is not the case since if the worker is `sync`, a `threads` setting of > 1 sets the worker type to `gthread`.

I know this was probably done to support running gunicorn as `gunicorn --threads=4` and actually have threads even though the default worker is `sync`, but it can be confusing if running `gunicorn --worker-class sync --threads 4` and expecting the parameter will be ignored.
2017-07-07 16:01:16 +03:00
Berker Peksag
9eea021ac8 Regenerate settings.rst to add --reload-engine 2017-06-16 14:04:34 +03:00
Berker Peksag
ca053a5fe1 Add versionadded directive to reload_extra_files 2017-06-16 14:02:55 +03:00
Randall Leeds
5426b04a7a Merge pull request #1527 from garbas/reload-extra-files
new --reload-extra-file option
2017-06-14 16:15:33 -07:00
Rok Garbas
f736909c5d
--reload-extra-file option 2017-06-15 00:46:47 +02:00
Berker Peksag
6b44263f77 Don't install pylint 1.7 due to a backwards imcompatible change 2017-04-15 00:55:13 +03:00
Berker Peksag
70947bb96a Skip test if WSGIServerHttpProtocol isn't available 2017-04-15 00:55:13 +03:00
JM Fernández
68260c6883 Fix "TypeError: 'OSError' object is not subscriptable" in py3 2017-04-14 04:15:38 +03:00
Randall Leeds
328e509260 Release version 19.7.1 2017-03-20 20:02:55 -07:00
Randall Leeds
b5fb32498d Update THANKS 2017-03-20 12:16:50 -07:00
Randall Leeds
c33367f8c7 update changelog for 19.7.1 2017-03-20 12:04:15 -07:00
Randall Leeds
ef53d02ad0 Merge pull request #1483 from benoitc/fix/1480-reuse-port-fail
Catch errors setting SO_REUSEPORT
2017-03-20 11:55:28 -07:00
Randall Leeds
15408a357f Catch errors setting SO_REUSEPORT
Fix #1480
2017-03-15 22:14:39 -07:00
Randall Leeds
2de1ea3561 Merge pull request #1465 from hramezani/issue_1325
fix non-decimal values problem in `umask` config.(issue 1325)
2017-03-13 23:44:15 -07:00
Ed Morley
fbd151e984 Remove dead code found using vulture (#1469)
https://pypi.python.org/pypi/vulture

In particular the removal of `get_maxfd()` means the `resource` module
is no longer required (which is not available on Windows) and so helps
with #524.
2017-03-13 13:33:11 -07:00
Nik Nyby
3cca730144 fix typo in changelog 2017-03-11 01:51:29 +03:00
Benoit Chesneau
191c149ab1 we are in 2017 2017-03-04 10:31:44 +01:00
Benoit Chesneau
6ea963dae0 say hello to 19.7 2017-03-04 10:30:53 +01:00
Benoit Chesneau
dd4cf721d2 put the dot at the right place 2017-03-04 10:25:59 +01:00
Benoit Chesneau
d2e9d275f9 fix doc typo 2017-03-04 10:23:12 +01:00
Benoit Chesneau
b26125fb2c update the community doc.
fix #1474
2017-03-04 10:20:31 +01:00
benoît chesneau
111d0ba7da fix typo 2017-03-01 22:17:27 +01:00
benoît chesneau
3b7bc1897d changelog for 19.7.0 2017-03-01 22:14:34 +01:00
Benoit Chesneau
2fad5d7f8b link to the new projects
mailing list is gone since a while, just manage everything on github so we don't have to jump and maintain too much services around.
2017-02-26 09:33:47 +01:00
Hasan Ramezni
31fed6b470 add tests for umask config. 2017-02-19 13:33:47 +03:30
Hasan Ramezni
ef79ee3983 fix non-decimal values problem in umask config.(issue 1325) 2017-02-19 13:33:42 +03:30
Mark Adams
bc20bea7d9 Add support for --reload-engine
Currently, gunicorn automatically uses the preferred reloader (inotify
if present with fallback to polling). However, it would be useful in
some scenarios if users could force polling.

The solution for this is to add a new configuration option called
'reload_engine' which takes one of three options: ['auto', 'poll',
'inotify'].

Fixes #1459
2017-02-14 19:49:37 +03:00
Benoit Chesneau
34a624ff59 Merge pull request #1456 from aconrad/couverture-io
submit coverage report to couverture.io
2017-02-09 14:51:25 +01:00
Alex Conrad
18459041b5 submit coverage report to couverture.io 2017-02-06 22:22:37 -08:00
Berker Peksag
748da13c17 Silence pytest warnings 2017-02-07 09:05:43 +03:00
Berker Peksag
31b8e48a78 Silence prospector warnings 2017-02-07 09:05:43 +03:00
Berker Peksag
461e186f5b Integrate prospector into Travis CI
Closes #947
2017-02-07 09:05:43 +03:00
Alex Conrad
9b2f014eec move pytest cli args to setup.cfg 2017-02-07 05:35:25 +03:00
Berker Peksag
5559f27ea2 Fix test_ssl 2017-02-06 09:18:41 +03:00
Berker Peksag
9c73259f71 Make ssl.PROTOCOL_SSLv23 default for --ssl-version
Fixes #1249
2017-02-06 09:10:35 +03:00
Berker Peksag
577c3eb030 Use the best available reloader when --reload is passed
Fixes #1422
2017-02-06 07:32:14 +03:00
Benoit Chesneau
91807e8b90 Merge pull request #1446 from RyPeck/1045/minor-tweaks-to-docs-for-threads-setting
Doc tweaks around threads setting
2017-02-06 04:48:49 +01:00
Berker Peksag
2f3ebdc5a6 Fix typo in NEWS entry 2017-02-05 06:11:46 +03:00
Berker Peksag
c517aefabd Silence a Sphinx warning 2017-02-05 05:58:01 +03:00
Berker Peksag
3da2f88dfe Delete deprecated gunicorn_django command and --settings option 2017-02-05 05:57:41 +03:00
Berker Peksag
cb512715fe Fix markup 2017-02-05 01:30:17 +03:00
Berker Peksag
bbaf078309 Add versionadded marker to child_exit documentation 2017-02-05 01:29:06 +03:00