# Path: util/parse.py
# def package_version(path: Union[str, Path]) -> str:


from pathlib import Path
from setuptools import setup
from util import parse



def make_relative(fn):
    """
    Make the filename relative to the current file.

    Args:
        fn: The filename to convert.

    Returns:
        The path relative to the current file.
    """
    return Path(__file__).parent / fn


setup(
    name = 'pyconll',
    packages = ['pyconll', 'pyconll.unit', 'pyconll.tree'],

# Path: util/parse.py
# def package_version(path: Union[str, Path]) -> str:


# Path: setup.py
from pathlib import Path
from setuptools import setup
from util import parse




def make_relative(fn):
    """
    Make the filename relative to the current file.

    Args:
        fn: The filename to convert.

    Returns:
        The path relative to the current file.
    """
    return Path(__file__).parent / fn


setup(
    name = 'pyconll',
    packages = ['pyconll', 'pyconll.unit', 'pyconll.tree'],

    version = parse.package_version(make_relative('pyconll/_version.py')),