# Setup file

import setuptools

with open("README.md", "r") as fh:
    long_description = fh.read()


def get_requirements():
    ''' Get the requirement libraries '''
    with open('requirements.txt') as freq:
        rlines = freq.readlines()
        # print(rlines)
        mreq = rlines[2:]

    with open('optional-requirements.txt') as foreq:
        rlines = foreq.readlines()

        oreq = rlines[2:]

    return mreq, oreq

# This is deprecatred. Will read
# requiremnts directly from toml
# mreq, oreq = get_requirements()



setuptools.setup(
    name="waveformtools",
 	version="2023.10.23",
    author="Vaishak Prasad",
    author_email="vaishakprasad@gmail.com",
    description="Functions for handling waveform and numerical relativity data",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://gitlab.com/vaishakp/waveformtools",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3",
    )

#
# Alternate preparation of pyproject
#with open("pyproject.toml", 'r') as file:

#    all_data = file.readlines()

#for num, line in enumerate(all_data):
#        break

#with open("pyproject.toml", "w") as file:
#    file.writelines(all_data)



