Skip to content

Commit 40bbe79

Browse files
committed
* Bumps version to 2.0.0.
* Moves requirements to `setup.py`. * Removes python2 from `setup.py`. * Removes python3.5 from `setup.py`. * Adds new major versions of python3.
1 parent 594d01e commit 40bbe79

2 files changed

Lines changed: 25 additions & 24 deletions

File tree

.travis.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
language: python
22
python:
3-
- 'pypy2.7'
4-
- 'pypy3.5'
5-
- '2.7'
6-
- '3.4'
3+
- 'pypy3.6'
4+
- 'pypy3.7'
75
- '3.6'
6+
- '3.7'
7+
- '3.8'
8+
- '3.9'
89
- 'nightly'
910
install:
10-
- pip install mock==2.0
11-
- pip install requests
12-
- pip install codecov
13-
- pip install pytest pytest-cov
14-
- pip install pycodestyle
15-
- pip install .
11+
- pip install -e .[dev]
1612
script:
1713
- coverage run --source=messagebird -m unittest discover -s tests/
1814
- coverage report --fail-under=80
@@ -21,5 +17,3 @@ script:
2117
matrix:
2218
allow_failures:
2319
- python: 'nightly'
24-
- python: 'pypy2.7'
25-
- python: 'pypy3.5'

setup.py

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,38 @@
22
from setuptools import setup
33
from io import open
44

5-
def get_description():
6-
working_directory = path.abspath(path.dirname(__file__))
7-
readme_path = path.join(working_directory, 'README.md')
8-
with open(readme_path, encoding='utf-8') as f:
9-
return (f.read(), 'text/markdown')
10-
11-
description, description_content_type = get_description()
5+
with open('README.md', encoding='utf-8') as f:
6+
description = f.read()
127

138
setup(
149
name = 'messagebird',
1510
packages = ['messagebird'],
16-
version = '1.5.0',
11+
version = '2.0.0',
1712
description = "MessageBird's REST API",
1813
author = 'MessageBird',
1914
author_email = 'support@messagebird.com',
2015
long_description = description,
21-
long_description_content_type = description_content_type,
16+
long_description_content_type = 'text/markdown',
2217
url = 'https://github.com/messagebird/python-rest-api',
23-
download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.4.1',
18+
download_url = 'https://github.com/messagebird/python-rest-api/tarball/2.0.0',
2419
keywords = ['messagebird', 'sms'],
2520
install_requires = ['requests>=2.4.1', 'python-dateutil>=2.6.0'],
21+
extras_require = {
22+
'dev': [
23+
'pytest',
24+
'pytest-cov',
25+
'mock>=2.0',
26+
'codecov',
27+
'pycodestyle',
28+
]
29+
},
2630
license = 'BSD-2-Clause',
2731
classifiers = [
28-
'Programming Language :: Python',
29-
'Programming Language :: Python :: 2',
3032
'Programming Language :: Python :: 3',
33+
'Programming Language :: Python :: 3.6',
34+
'Programming Language :: Python :: 3.7',
35+
'Programming Language :: Python :: 3.8',
36+
'Programming Language :: Python :: 3.9',
37+
'Operating System :: OS Independent',
3138
],
3239
)

0 commit comments

Comments
 (0)