2015-08-24 07:03:01 +02:00
|
|
|
import os
|
2017-05-16 12:16:30 +02:00
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
2015-08-24 07:03:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2016-08-18 15:59:55 +02:00
|
|
|
return "file://" + url
|
2015-08-24 07:03:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="LocalExtras",
|
|
|
|
version="0.0.2",
|
|
|
|
packages=find_packages(),
|
|
|
|
install_requires=["simple==1.0"],
|
2018-12-02 12:56:51 +01:00
|
|
|
extras_require={"bar": ["simple==2.0"], "baz": ["singlemodule"]},
|
2015-08-24 07:03:01 +02:00
|
|
|
)
|