diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-07-09 09:01:23 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-07-09 09:01:23 +0200 |
commit | 274b3bffc3365eca2fd3fa10c1e7e9b49990533e (patch) | |
tree | 445e4688164cff6f327494fc082dc0a0db476ed0 | |
parent | fe3a06c2a6a9776c22ff9120c99b3654e02e5e50 (diff) | |
parent | cb8c1a198276cc6aa2a3ddbf52bcc3866418e9fd (diff) | |
download | gitlab-274b3bffc3365eca2fd3fa10c1e7e9b49990533e.tar.gz |
Merge branch 'master' into rework_api
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | AUTHORS | 3 | ||||
-rw-r--r-- | ChangeLog.rst | 12 | ||||
-rw-r--r-- | docs/cli.rst | 4 | ||||
-rw-r--r-- | gitlab/__init__.py | 6 | ||||
-rw-r--r-- | tox.ini | 2 |
6 files changed, 22 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index dd405f5..7c8b9fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ addons: language: python python: 2.7 env: + - TOX_ENV=py36 - TOX_ENV=py35 - TOX_ENV=py34 - TOX_ENV=py27 @@ -20,6 +20,7 @@ Asher256@users.noreply.github.com <Asher256> Christian <cgumpert@users.noreply.github.com> Christian Wenk <christian.wenk@omicronenergy.com> Colin D Bennett <colin.bennett@harman.com> +Cosimo Lupo <cosimo.lupo@daltonmaag.com> Crestez Dan Leonard <lcrestez@ixiacom.com> Daniel Kimsey <dekimsey@ufl.edu> derek-austin <derek.austin35@mailinator.com> @@ -35,6 +36,7 @@ Ian Sparks <isparks@mdsol.com> itxaka <itxakaserrano@gmail.com> Ivica Arsov <ivica.arsov@sculpteo.com> James (d0c_s4vage) Johnson <james.johnson@exodusintel.com> +Jamie Bliss <astronouth7303@gmail.com> James E. Flemer <james.flemer@ndpgroup.com> James Johnson <d0c.s4vage@gmail.com> Jason Antman <jason@jasonantman.com> @@ -50,6 +52,7 @@ Michal Galet <michal.galet@gmail.com> Mikhail Lopotkov <ms.lopotkov@tensor.ru> Missionrulz <missionrulz@gmail.com> Mond WAN <mondwan@users.noreply.github.com> +Nathan Giesbrecht <NathanGiesbrecht@users.noreply.github.com> pa4373 <pa4373@gmail.com> Patrick Miller <patrick@velocitywebworks.com> Peng Xiao <xiaoquwl@gmail.com> diff --git a/ChangeLog.rst b/ChangeLog.rst index 306a730..a72ac6f 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,17 @@ ChangeLog ========= +Version 0.21.2_ - 2017-06-11 +---------------------------- + +* Install doc: use sudo for system commands +* [v4] Make MR work properly +* Remove extra_attrs argument from _raw_list +* [v4] Make project issues work properly +* Fix urlencode() usage (python 2/3) (#268) +* Fixed spelling mistake (#269) +* Add new event types to ProjectHook + Version 0.21.1_ - 2017-05-25 ---------------------------- @@ -423,6 +434,7 @@ Version 0.1 - 2013-07-08 * Initial release +.. _0.21.2: https://github.com/python-gitlab/python-gitlab/compare/0.21.1...0.21.2 .. _0.21.1: https://github.com/python-gitlab/python-gitlab/compare/0.21...0.21.1 .. _0.21: https://github.com/python-gitlab/python-gitlab/compare/0.20...0.21 .. _0.20: https://github.com/python-gitlab/python-gitlab/compare/0.19...0.20 diff --git a/docs/cli.rst b/docs/cli.rst index 6730c9b..f0ed2ee 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -49,9 +49,9 @@ The configuration file uses the ``INI`` format. It contains at least a timeout = 1 The ``default`` option of the ``[global]`` section defines the GitLab server to -use if no server is explitly specified with the ``--gitlab`` CLI option. +use if no server is explicitly specified with the ``--gitlab`` CLI option. -The ``[global]`` section also defines the values for the default connexion +The ``[global]`` section also defines the values for the default connection parameters. You can override the values in each GitLab server section. .. list-table:: Global options diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 4dd7e29..0696f34 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -34,7 +34,7 @@ from gitlab.exceptions import * # noqa from gitlab.v3.objects import * # noqa __title__ = 'python-gitlab' -__version__ = '0.21.1' +__version__ = '0.21.2' __author__ = 'Gauvain Pocentek' __email__ = 'gauvain@pocentek.net' __license__ = 'LGPL3' @@ -70,7 +70,7 @@ class Gitlab(object): def __init__(self, url, private_token=None, email=None, password=None, ssl_verify=True, http_username=None, http_password=None, - timeout=None, api_version='3'): + timeout=None, api_version='3', session=None): self._api_version = str(api_version) self._url = '%s/api/v%s' % (url, api_version) @@ -89,7 +89,7 @@ class Gitlab(object): self.http_password = http_password #: Create a session object for requests - self.session = requests.Session() + self.session = session or requests.Session() objects = importlib.import_module('gitlab.v%s.objects' % self._api_version) @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py35,py34,py27,pep8 +envlist = py36,py35,py34,py27,pep8 [testenv] setenv = VIRTUAL_ENV={envdir} |