Skip to content

Commit

Permalink
update version + add ci support for py3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexferl committed Apr 11, 2017
1 parent 72937d8 commit c246732
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
- FLASK=0.11
- FLASK=0.12.1
- FLASK=0.11.1
- FLASK=0.10.1
install:
- pip install Flask==$FLASK
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Alexandre Ferland
Copyright (c) 2017 Alexandre Ferland

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First, install Flask-SimpleLDAP:

Flask-SimpleLDAP depends, and will install for you, recent versions of Flask
(0.10.1 or later) and [pyldap](https://github.com/pyldap/pyldap). Flask-SimpleLDAP is compatible
with and tested on Python 2.7, 3.4 and 3.5.
with and tested on Python 2.7, 3.4, 3.5 and 3.6.

Next, add a ``LDAP`` instance to your code and at least the three
required configuration options:
Expand Down
4 changes: 2 additions & 2 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements.txt
pyldap==2.4.25.1 # here instead of requirements.txt so rtfd can build
Sphinx==1.4.3
pyldap>=2.4.28 # here instead of requirements.txt so rtfd can build
Sphinx>=1.5.5
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os
from mock import Mock as MagicMock


class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
Expand Down Expand Up @@ -56,16 +57,16 @@ def __getattr__(cls, name):

# General information about the project.
project = u'Flask-SimpleLDAP'
copyright = u'2016, Alexandre Ferland'
copyright = u'2017, Alexandre Ferland'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.1.0'
version = '1.1.1'
# The full version, including alpha/beta/rc tags.
release = '1.1.0'
release = '1.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First, install Flask-SimpleLDAP:
Flask-SimpleLDAP depends, and will install for you, recent versions of Flask
(0.10.1 or later) and pyldap. Flask-SimpleLDAP is compatible
with and tested on Python 2.7, 3.4 and 3.5.
with and tested on Python 2.7, 3.4, 3.5 and 3.6.

Next, add a :class:`~flask_simpleldap.LDAP` to your code and at least the three
required configuration options:
Expand Down Expand Up @@ -116,6 +116,10 @@ History

Changes:

- 1.1.1 April 10, 2017
- Merge GitHub pull `#26 <https://github.com/admiralobvious/flask-simpleldap/pull/26>`_,
Fix set_option call to LDAP for SSL CERT

- 1.1.0 June 7, 2016

- Add the ability the pass any valid pyldap config options via the LDAP_CUSTOM_OPTIONS configuration directive.
Expand Down
2 changes: 1 addition & 1 deletion flask_simpleldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def init_app(app):
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
ldap.OPT_X_TLS_DEMAND)
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,
current_app.config['LDAP_CERT_PATH'])
current_app.config['LDAP_CERT_PATH'])

for option in ['USERNAME', 'PASSWORD', 'BASE_DN']:
if app.config['LDAP_{0}'.format(option)] is None:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask==0.11
mock==2.0.0 # for ci
Flask>=0.12.1
mock>=2.0.0 # for ci
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='Flask-SimpleLDAP',
version='1.1.0',
version='1.1.1',
url='https://github.com/admiralobvious/flask-simpleldap',
license='MIT',
author='Alexandre Ferland',
Expand All @@ -32,6 +32,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)

0 comments on commit c246732

Please sign in to comment.