Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates setup.py for better compatibility with setuptools #213

Merged
merged 2 commits into from
Oct 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests
lxml
beautifulsoup4
enum34; python_version == '2.7'
enum34; python_version < '3.4'
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
"""
Setup script for fbchat
"""


import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup


with open('README.rst') as f:
readme_content = f.read().strip()

requirements = [
'requests',
'lxml',
'beautifulsoup4',
"enum34; python_version == '2.7'"
'beautifulsoup4'
]

extras_requirements = {
':python_version < "3.4"': ['enum34']
}

version = None
author = None
email = None
Expand Down Expand Up @@ -77,6 +77,7 @@
include_package_data=True,
packages=['fbchat'],
install_requires=requirements,
extras_require=extras_requirements,
url=source,
version=version,
zip_safe=True,
Expand Down