diff --git a/pipenv/_pipfile/__about__.py b/pipenv/_pipfile/__about__.py deleted file mode 100644 index 8c5b16e9..00000000 --- a/pipenv/_pipfile/__about__.py +++ /dev/null @@ -1,21 +0,0 @@ -# This file is dual licensed under the terms of the Apache License, Version -# 2.0, and the BSD License. See the LICENSE file in the root of this repository -# for complete details. -from __future__ import absolute_import, division, print_function - -__all__ = [ - "__title__", "__summary__", "__uri__", "__version__", "__author__", - "__email__", "__license__", "__copyright__", -] - -__title__ = "pipfile" -__summary__ = "" -__uri__ = "https://github.com/pypa/pipfile" - -__version__ = "16.0.dev0" - -__author__ = "Kenneth Reitz and individual contributors" -__email__ = "me@kennethreitz.org" - -__license__ = "BSD or Apache License, Version 2.0" -__copyright__ = "Copyright 2017 %s" % __author__ diff --git a/pipenv/_pipfile/__init__.py b/pipenv/_pipfile/__init__.py deleted file mode 100644 index fddd4f90..00000000 --- a/pipenv/_pipfile/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -# This file is dual licensed under the terms of the Apache License, Version -# 2.0, and the BSD License. See the LICENSE file in the root of this repository -# for complete details. -from __future__ import absolute_import, division, print_function - -from .__about__ import ( - __author__, __copyright__, __email__, __license__, __summary__, __title__, - __uri__, __version__ -) - -from .api import load, Pipfile diff --git a/pipenv/_pipfile/api.py b/pipenv/_pipfile/api.py deleted file mode 100644 index 107c6d04..00000000 --- a/pipenv/_pipfile/api.py +++ /dev/null @@ -1,193 +0,0 @@ -import toml - -import codecs -import json -import hashlib -import platform -import sys -import os - - -def format_full_version(info): - version = '{0.major}.{0.minor}.{0.micro}'.format(info) - kind = info.releaselevel - if kind != 'final': - version += kind[0] + str(info.serial) - return version - - -def walk_up(bottom): - """mimic os.walk, but walk 'up' instead of down the directory tree. - From: https://gist.github.com/zdavkeos/1098474 - """ - - bottom = os.path.realpath(bottom) - - # get files in current dir - try: - names = os.listdir(bottom) - except Exception as e: - return - - dirs, nondirs = [], [] - for name in names: - if os.path.isdir(os.path.join(bottom, name)): - dirs.append(name) - else: - nondirs.append(name) - - yield bottom, dirs, nondirs - - new_path = os.path.realpath(os.path.join(bottom, '..')) - - # see if we are at the top - if new_path == bottom: - return - - for x in walk_up(new_path): - yield x - - -class PipfileParser(object): - def __init__(self, filename='Pipfile'): - self.filename = filename - self.sources = [] - self.groups = { - 'default': [], - 'develop': [] - } - self.group_stack = ['default'] - self.requirements = [] - - def __repr__(self): - return '