Feat: activate all mapytex
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Bertrand Benjamin 2020-08-21 19:29:32 +02:00
parent 4db2b1ce73
commit 7782330ed2
2 changed files with 12 additions and 14 deletions

View File

@ -11,7 +11,8 @@ import logging
from pathlib import Path from pathlib import Path
import pytex import pytex
from mapytex import Expression, Integer, Decimal #from mapytex import Expression, Integer, Decimal, random_list
import mapytex
import bopytex.filters as filters import bopytex.filters as filters
formatter = logging.Formatter("%(name)s :: %(levelname)s :: %(message)s") formatter = logging.Formatter("%(name)s :: %(levelname)s :: %(message)s")
@ -24,19 +25,16 @@ logger.addHandler(steam_handler)
def setup(): def setup():
Expression.set_render("tex") mapytex.Expression.set_render("tex")
logger.debug(f"Render for Expression is {Expression.RENDER}") logger.debug(f"Render for Expression is {mapytex.Expression.RENDER}")
mapytex_tools = { mapytex_tools = {
"Expression": Expression, "Expression": mapytex.Expression,
"Integer": Integer, "Integer": mapytex.Integer,
"Decimal": Decimal, "Decimal": mapytex.Decimal,
# "Polynom": mapytex.Polynom, "random_list": mapytex.random_list,
# "Fraction": mapytex.Fraction, "random_pythagore": mapytex.random_pythagore,
# "Equation": mapytex.Equation, "Dataset": mapytex.Dataset,
# "random_str": mapytex.random_str, "WeightedDataset": mapytex.WeightedDataset,
# "random_pythagore": mapytex.random_pythagore,
# "Dataset": mapytex.Dataset,
# "WeightedDataset": mapytex.WeightedDataset,
} }
pytex.update_export_dict(mapytex_tools) pytex.update_export_dict(mapytex_tools)

View File

@ -5,7 +5,7 @@ from setuptools import setup
setup( setup(
name='Bopytex', name='Bopytex',
version='0.1.2', version='0.2',
description='Command line tool for compiling latex with python command embedded', description='Command line tool for compiling latex with python command embedded',
author='Benjamin Bertrand', author='Benjamin Bertrand',
author_email='programming@opytex.org', author_email='programming@opytex.org',