Skip to content

Commit

Permalink
fix pypi setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Romeu committed Jun 12, 2017
1 parent 506c645 commit 33184bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Include the requirements files
include requirements.txt
include test_requirements.txt
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 33184bf

Please sign in to comment.