4 Commits

Author SHA1 Message Date
7782330ed2 Feat: activate all mapytex
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-08-21 19:29:32 +02:00
4db2b1ce73 Fix: only on tagging?
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-20 16:27:17 +02:00
d8c758677d Fix: change trigger
Some checks failed
continuous-integration/drone/push Build is failing
2020-08-20 16:21:32 +02:00
49c2e505d0 Feat: add badge
Some checks failed
continuous-integration/drone/push Build is failing
2020-08-20 16:20:43 +02:00
4 changed files with 16 additions and 17 deletions

View File

@@ -9,6 +9,5 @@ steps:
from_secret: pypi_username
password:
from_secret: pypi_password
trigger:
event:
- tag
when:
event: tag

View File

@@ -1,5 +1,7 @@
# Bopytex
[![Build Status](https://drone.opytex.org/api/badges/lafrite/Bopytex/status.svg)](https://drone.opytex.org/lafrite/Bopytex)
Bopytex is a command line tool for producing random math exercises with their correction. It embeds [mapytex](https://git.opytex.org/lafrite/Mapytex) and [python](python.org) into [latex](latex-project.org) through [jinja](jinja.pocoo.org).
## Installing

View File

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

View File

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