Skip to content

Commit

Permalink
Remove dependency on six to make package lighter (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 19, 2020
1 parent eca30e0 commit 39a70cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packaging/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@

import string
import re
import sys

from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
from pyparsing import ZeroOrMore, Word, Optional, Regex, Combine
from pyparsing import Literal as L # noqa
from six.moves.urllib import parse as urlparse

from ._typing import TYPE_CHECKING
from .markers import MARKER_EXPR, Marker
from .specifiers import LegacySpecifier, Specifier, SpecifierSet

if sys.version_info[0] >= 3:
from urllib import parse as urlparse # pragma: no cover
else: # pragma: no cover
import urlparse


if TYPE_CHECKING: # pragma: no cover
from typing import List

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
author=about["__author__"],
author_email=about["__email__"],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
install_requires=["pyparsing>=2.0.2", "six"], # Needed to avoid issue #91
install_requires=["pyparsing>=2.0.2"], # Needed to avoid issue #91
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 39a70cc

Please sign in to comment.