Skip to content

Commit

Permalink
Test only with currently supported versions of Python (#32)
Browse files Browse the repository at this point in the history
* Test only with currently supported versions of Python

* Add classifiers to reflect supported versions of Python

They will be shown in PyPI.

* Reflect supported versions in README

* Add explicit versions of yarl to work around vcrpy problem

vcrpy depends on a version of yarl that supports only python 3.6
onwards.

So this uses no yarl for 2.7, and the compatible versions for the 3.X
python versions.

This fixes #33

* Bump version to 1.3.0
  • Loading branch information
jdevera authored and pkopac committed Oct 22, 2019
1 parent f5203bc commit 9999917
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ language: python

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"

install:
- pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

## Installation

This library requires Python 2.7 or 3.3 to 3.6.
This library requires Python 2.7 or 3.5 to 3.8.

```sh
pip install chartmogul
Expand Down
4 changes: 2 additions & 2 deletions chartmogul/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
Provides convenient Python bindings for ChartMogul's API.
:copyright: (c) 2017 by ChartMogul Ltd.
:copyright: (c) 2019 by ChartMogul Ltd.
:license: MIT, see LICENSE for more details.
"""

__title__ = 'chartmogul'
__version__ = '1.2.5'
__version__ = '1.3.0'
__build__ = 0x000000
__author__ = 'ChartMogul Ltd'
__license__ = 'MIT'
Expand Down
16 changes: 15 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
'future>=0.16.0',
]
test_requirements = [
# This is needed to circumvent a vcrpy dependency problem And can be
# deleted once it is solved.
'yarl; python_version>"3.5"',
'yarl<1.4; python_version=="3.5"',

'mock>=1.0.1',
'requests-mock>=1.3.0',
'vcrpy>=1.11.1',
'httpretty>=0.9.5',
'PyYAML>=5.1.2',
'httpretty>=0.9.6',
'wrapt>=1.11.2'
Expand Down Expand Up @@ -56,4 +60,14 @@
tests_require=test_requirements,
test_suite="test",
extras_require={},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
]
)

0 comments on commit 9999917

Please sign in to comment.