Skip to content

Commit 33184bf

Browse files
author
Alberto Romeu
committed
fix pypi setup.py
1 parent 506c645 commit 33184bf

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Include the requirements files
2+
include requirements.txt
3+
include test_requirements.txt

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# -*- coding: utf-8 -*-
22
from setuptools import setup
33

4-
with open('requirements.txt') as f:
5-
required = f.read().splitlines()
4+
try:
5+
with open('requirements.txt') as f:
6+
required = f.read().splitlines()
7+
except:
8+
required = ['requests>=2.7.0', 'pyrestcli>=0.6.3']
69

7-
with open('test_requirements.txt') as f:
8-
test_required = f.read().splitlines()
10+
try:
11+
with open('test_requirements.txt') as f:
12+
test_required = f.read().splitlines()
13+
except:
14+
pass
915

1016
setup(name="carto",
1117
author="Daniel Carrión",

0 commit comments

Comments
 (0)