import sys
import logging
from setuptools import setup
from setuptools import find_packages
import subprocess

# Install TimeSynth fork of jitcdde
subprocess.call([sys.executable, "-m", "pip", "install", "git+https://github.com/TimeSynth/jitcdde.git"])


# Manage requirments
with open('requirements.txt') as f:
    requirements = f.read().splitlines()

tests_requirements = [
    'pytest'
    ]

# Install
setup(name='timesynth',
      version='0.2.1',
      description='Library for creating synthetic time series',
      url='https://github.com/TimeSynth/TimeSynth',
      author='Abhishek Malali, Reinier Maat, Pavlos Protopapas',
      author_email='anon@anon.com',
      license='MIT',
      include_package_data=True,
      packages=find_packages(),
      install_requires=requirements,
      tests_require=tests_requirements,
      setup_requires=["pytest-runner"])
