@@ 1,44 1,20 @@
-from pathlib import Path
-import subprocess
-
from setuptools import setup
-from setuptools.command.build_ext import build_ext
-
-
-WORKING_DIR = Path(__file__).resolve().parent
-STATIC_DIR = WORKING_DIR / 'tshistory_refinery' / 'refinery_static'
-
-
-def compile_elm(edit_kind, src):
- """Compile elm component to JS"""
- src = WORKING_DIR / 'elm' / src
- out = STATIC_DIR / f'{edit_kind}_elm.js'
- cmd = f'elm make --optimize --output {out} {src}'
- subprocess.call(cmd, shell=True)
-
-
-class ElmBuild(build_ext):
- """Build Elm components"""
-
- def run(self):
- compile_elm('cache', 'Cache.elm')
- super().run()
setup(name='tshistory_refinery',
- version='0.4.1',
+ version='0.5.0',
author='Pythonian',
author_email='aurelien.campeas@pythonian.fr, arnaud.campeas@pythonian.fr',
packages=['tshistory_refinery'],
zip_safe=False,
install_requires=[
- 'tshistory >= 0.15.0',
- 'tsview >= 0.14.0',
+ 'tshistory >= 0.16.0',
+ 'tsview >= 0.15.0',
'tshistory_supervision >= 0.10.1',
'tshistory_formula >= 0.11.0',
'tshistory_editor >= 0.8.2',
- 'tshistory_xl >= 0.4.0',
- 'rework >= 0.15.0',
+ 'tshistory_xl >= 0.4.1',
+ 'rework >= 0.15.1',
'rework_ui >= 0.13.0',
'inireader',
'pytest_sa_pg',
@@ 61,6 37,5 @@ setup(name='tshistory_refinery',
'migrate-to-cache=tshistory_refinery.cli:migrate_to_cache',
'setup-tasks=tshistory_refinery.cli:setup_tasks'
],
- },
- cmdclass={'build_ext': ElmBuild}
+ }
)