Skip to content

Commit

Permalink
Align install_requires in setup.py to GlobaLeaks
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 27, 2016
1 parent 9929ec8 commit 5fb2018
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
#-*- coding: utf-8 -*-

import os
import pip
import re
from setuptools import find_packages, setup

from tor2web import __version__

def get_requires():
with open('requirements.txt') as f:
requires = f.readlines()
return requires
install_requires = [str(r.req) for r in pip.req.parse_requirements('requirements.txt',
session=pip.download.PipSession())]

setup(
name="tor2web",
Expand All @@ -20,5 +19,5 @@ def get_requires():
url="https://tor2web.org/",
packages=find_packages(exclude=['*.tests', '*.tests.*']),
scripts=["bin/tor2web"],
install_requires=get_requires()
install_requires=install_requires
)

0 comments on commit 5fb2018

Please sign in to comment.