Compare commits
5 Commits
ee4e98cfc2
...
V0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 7782330ed2 | |||
| 4db2b1ce73 | |||
| d8c758677d | |||
| 49c2e505d0 | |||
| 84f0a3a521 |
13
.drone.yml
Normal file
13
.drone.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Publish
|
||||||
|
image: plugins/pypi
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: pypi_username
|
||||||
|
password:
|
||||||
|
from_secret: pypi_password
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
# Bopytex
|
# Bopytex
|
||||||
|
|
||||||
|
[](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).
|
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
|
## Installing
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import logging
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pytex
|
import pytex
|
||||||
from mapytex import Expression, Integer, Decimal, Polynomial, render
|
#from mapytex import Expression, Integer, Decimal, random_list
|
||||||
import sympy
|
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")
|
||||||
@@ -25,20 +25,16 @@ logger.addHandler(steam_handler)
|
|||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
render.set_render("tex")
|
mapytex.Expression.set_render("tex")
|
||||||
logger.debug(f"Render for Expression is {render.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": Polynomial,
|
"random_list": mapytex.random_list,
|
||||||
"sympy": sympy,
|
"random_pythagore": mapytex.random_pythagore,
|
||||||
# "Fraction": mapytex.Fraction,
|
"Dataset": mapytex.Dataset,
|
||||||
# "Equation": mapytex.Equation,
|
"WeightedDataset": mapytex.WeightedDataset,
|
||||||
# "random_str": mapytex.random_str,
|
|
||||||
# "random_pythagore": mapytex.random_pythagore,
|
|
||||||
# "Dataset": mapytex.Dataset,
|
|
||||||
# "WeightedDataset": mapytex.WeightedDataset,
|
|
||||||
}
|
}
|
||||||
pytex.update_export_dict(mapytex_tools)
|
pytex.update_export_dict(mapytex_tools)
|
||||||
|
|
||||||
@@ -159,7 +155,7 @@ def crazy_feed(*args, **kwrds):
|
|||||||
|
|
||||||
|
|
||||||
def clean(directory):
|
def clean(directory):
|
||||||
pytex.clean(directory, ["*.aux", "*.log", "*.out", "*.xsim", "*.tkzfonct.*"])
|
pytex.clean(directory)
|
||||||
|
|
||||||
|
|
||||||
def texcompile(filename):
|
def texcompile(filename):
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user