Skip to content

Commit

Permalink
support python < 3.6 (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Benkevich <[email protected]>
  • Loading branch information
anton-b and Anton Benkevich authored Aug 12, 2020
1 parent 0d60e90 commit 5a70da1
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
jobs:
include:
- stage: test
python: 3.8
python: 3.5
install: pip install -U tox-travis
script: tox
- python: 3.6
Expand All @@ -11,8 +11,11 @@ jobs:
- python: 3.7
install: pip install -U tox-travis
script: tox
- stage: test_doc
python: 3.8
- python: 3.8
install: pip install -U tox-travis
script: tox
- python: 3.8
name: 'Test documentation build'
install: pip install -r docs/requirements.txt
script: cd docs; make html
- stage: deploy
Expand Down
2 changes: 2 additions & 0 deletions almdrlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: future_fstrings -*-

__author__ = 'Alert Logic, Inc.'

import logging
Expand Down
2 changes: 1 addition & 1 deletion almdrlib/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: future_fstrings -*-

"""
almdrlib.client
Expand Down
2 changes: 1 addition & 1 deletion almdrlib/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: future_fstrings -*-

import os.path
import configparser
Expand Down
2 changes: 1 addition & 1 deletion almdrlib/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: future_fstrings -*-

import os.path

Expand Down
2 changes: 1 addition & 1 deletion almdrlib/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coding: utf-8
# -*- coding: future_fstrings -*-

"""
almdrlib Exceptions
Expand Down
2 changes: 1 addition & 1 deletion almdrlib/region.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: future_fstrings -*-

from enum import Enum

Expand Down
2 changes: 1 addition & 1 deletion almdrlib/session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: future_fstrings -*-

"""
almdrlib.session
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ configparser==4.0.2
pyyaml==5.1.2
jsonschema[format_nongpl]==3.2.0
git+https://github.com/crossnox/m2r@dev#egg=m2r
future_fstrings
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ sphinx_rtd_theme==0.4.3
sphinxcontrib_contentui==0.2.4
sphinx-paramlinks==0.4.1
git+https://github.com/crossnox/m2r@dev#egg=m2r
future_fstrings
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'pyyaml==5.1.2',
'jsonschema[format_nongpl]==3.2.0',
'm2r==0.2.1',
'future_fstrings',
definitions_dependency
]

Expand All @@ -38,7 +39,7 @@
license='MIT license',
author='Alert Logic Inc.',
author_email='[email protected]',
python_requires='>=3.6',
python_requires='>=3.5',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand All @@ -47,6 +48,7 @@
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
Expand Down
2 changes: 2 additions & 0 deletions tests/test_open_api_support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: future_fstrings -*-

import os
import json

Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = py36, py37, py38, flake8
envlist = py35, py36, py37, py38, flake8

[travis]
python =
3.8: py38
3.7: py37
3.5: py35
3.6: py36
3.7: py37
3.8: py38

[testenv:flake8]
basepython = python
Expand Down

0 comments on commit 5a70da1

Please sign in to comment.