From 33184bf032e74d5ae301165a64112f6af48994dc Mon Sep 17 00:00:00 2001 From: Alberto Romeu Date: Mon, 12 Jun 2017 12:54:05 +0200 Subject: [PATCH] fix pypi setup.py --- MANIFEST.in | 3 +++ setup.py | 14 ++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..50fd83e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +# Include the requirements files +include requirements.txt +include test_requirements.txt diff --git a/setup.py b/setup.py index 800f515..02a8434 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,17 @@ # -*- coding: utf-8 -*- from setuptools import setup -with open('requirements.txt') as f: - required = f.read().splitlines() +try: + with open('requirements.txt') as f: + required = f.read().splitlines() +except: + required = ['requests>=2.7.0', 'pyrestcli>=0.6.3'] -with open('test_requirements.txt') as f: - test_required = f.read().splitlines() +try: + with open('test_requirements.txt') as f: + test_required = f.read().splitlines() +except: + pass setup(name="carto", author="Daniel CarriĆ³n",