Skip to content

Commit 642376f

Browse files
authored
Merge pull request #47 from mercadopago/release/2.0.7
Fix SDK installation error
2 parents a22905e + 96acf7b commit 642376f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

mercadopago/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Config():
1010
"""
1111

1212
def __init__(self):
13-
self.__version = "2.0.6"
13+
self.__version = "2.0.7"
1414
self.__user_agent = "MercadoPago Python SDK v" + self.__version
1515
self.__product_id = "bc32bpftrpp001u8nhlg"
1616
self.__tracking_id = "platform:" + platform.python_version()

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="mercadopago",
11-
version="2.0.6",
11+
version="2.0.7",
1212
description="Mercadopago SDK module for Payments integration",
1313
author="Mercado Pago SDK",
1414
author_email="[email protected]",
@@ -19,10 +19,13 @@
1919
include_package_data=True,
2020
long_description=open("README.md").read(),
2121
long_description_content_type="text/markdown",
22+
install_requires=[
23+
"requests"
24+
],
2225
tests_require=[
2326
"unittest"
2427
],
25-
python_requires="!=3.0*",
28+
python_requires=">=3",
2629
cmdclass={"test": unittest},
2730
project_urls={
2831
"Source Code": "https://github.com/mercadopago/sdk-python",

tests/test_card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_all(self):
4141
}
4242

4343
card_created = self.sdk.card().create(customer_id, card_object)
44-
self.assertEqual(card_created["status"], 200)
44+
self.assertIn(card_created["status"], [200, 201])
4545
self.assertEqual(self.sdk.card()
4646
.get(customer_id, card_created["response"]["id"])["status"], 200)
4747

0 commit comments

Comments
 (0)