diff --git a/mercadopago/config/config.py b/mercadopago/config/config.py index 472259c..ca7ddd2 100644 --- a/mercadopago/config/config.py +++ b/mercadopago/config/config.py @@ -10,7 +10,7 @@ class Config(): """ def __init__(self): - self.__version = "2.0.6" + self.__version = "2.0.7" self.__user_agent = "MercadoPago Python SDK v" + self.__version self.__product_id = "bc32bpftrpp001u8nhlg" self.__tracking_id = "platform:" + platform.python_version() diff --git a/setup.py b/setup.py index 2ec2046..b880006 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name="mercadopago", - version="2.0.6", + version="2.0.7", description="Mercadopago SDK module for Payments integration", author="Mercado Pago SDK", author_email="mp_sdk@mercadopago.com", @@ -19,10 +19,13 @@ include_package_data=True, long_description=open("README.md").read(), long_description_content_type="text/markdown", + install_requires=[ + "requests" + ], tests_require=[ "unittest" ], - python_requires="!=3.0*", + python_requires=">=3", cmdclass={"test": unittest}, project_urls={ "Source Code": "https://github.com/mercadopago/sdk-python", diff --git a/tests/test_card.py b/tests/test_card.py index 752fe75..607c9fc 100644 --- a/tests/test_card.py +++ b/tests/test_card.py @@ -41,7 +41,7 @@ def test_all(self): } card_created = self.sdk.card().create(customer_id, card_object) - self.assertEqual(card_created["status"], 200) + self.assertIn(card_created["status"], [200, 201]) self.assertEqual(self.sdk.card() .get(customer_id, card_created["response"]["id"])["status"], 200)