# HG changeset patch # User Aurelien Campeas # Date 1665483840 -7200 # Tue Oct 11 12:24:00 2022 +0200 # Node ID 6f0a3ba84a0f71d266a7e35a81668e5a99c19a06 # Parent 961bede213481e6fa0c19ba39dd4d242aca79dab pkg: prepare 0.5 diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -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 @@ 'migrate-to-cache=tshistory_refinery.cli:migrate_to_cache', 'setup-tasks=tshistory_refinery.cli:setup_tasks' ], - }, - cmdclass={'build_ext': ElmBuild} + } )