-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://packaging.python.org/en/latest/requirements.html https://caremad.io/2013/07/setup-vs-requirement/ pypa/pip#2244
- Loading branch information
1 parent
e1cd4af
commit 2b8dba1
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from setuptools import setup, find_packages | ||
from pip.req import parse_requirements | ||
import re | ||
import io | ||
import os.path | ||
|
@@ -16,11 +15,7 @@ | |
version = match.group(1) | ||
break | ||
|
||
# get requirements from Pip-style requirements.txt | ||
install_requires = [str(req.req) for req | ||
in parse_requirements(os.path.join(here, 'requirements.txt'))] | ||
|
||
# get long from README.rst | ||
# get long desc from README.rst | ||
with io.open(os.path.join(here, 'README.rst')) as f: | ||
long_description = f.read() | ||
|
||
|
@@ -33,7 +28,9 @@ | |
author_email='[email protected]', | ||
url='https://github.com/SteelPangolin/genderize', | ||
packages=find_packages(), | ||
install_requires=install_requires, | ||
install_requires=[ | ||
'requests >= 1.0.0', | ||
], | ||
include_package_data=True, | ||
classifiers=[ | ||
'License :: OSI Approved :: MIT License', | ||
|