1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/data/packages/LocalExtras-0.0.2/setup.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
632 B
Python
Raw Normal View History

import os
2017-05-16 12:16:30 +02:00
from setuptools import find_packages, setup
def path_to_url(path):
"""
Convert a path to URI. The path will be made absolute and
will not have quoted path parts.
"""
path = os.path.normpath(os.path.abspath(path))
drive, path = os.path.splitdrive(path)
filepath = path.split(os.path.sep)
url = "/".join(filepath)
if drive:
return "file:///" + drive + url
return "file://" + url
setup(
name="LocalExtras",
version="0.0.2",
packages=find_packages(),
install_requires=["simple==1.0"],
extras_require={"bar": ["simple==2.0"], "baz": ["singlemodule"]},
)