Skip to content
Snippets Groups Projects
Commit 07eefe55 authored by tuhe's avatar tuhe
Browse files

Cleanup and checking 02465 compatibility; thtools removed

parent 8d4ab7c9
Branches
No related tags found
No related merge requests found
Showing
with 97 additions and 14 deletions
File added
File added
File added
File added
File added
File added
# Use this guide:
# Use: pipreqs.exe slider --no-pin --force for requirements.txt
# https://packaging.python.org/tutorials/packaging-projects/
# py -m build && twine upload dist/*
import setuptools
import pkg_resources
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="beamer-slider",
version="0.0.1",
version="0.1.0",
author="Tue Herlau",
author_email="tuhe@dtu.dk",
description="Software to create inkscape overlays in Beamer",
......@@ -27,5 +30,5 @@ setuptools.setup(
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.8",
install_requires=['jinja2', 'numpy', 'scipy', 'bs4', 'lxml', 'codecs', 'optparse', 'PyPDF2', 'pickle'],
install_requires=[str(r) for r in pkg_resources.parse_requirements('requirements.txt')],
)
Metadata-Version: 2.1
Name: beamer-slider
Version: 0.1.0
Summary: Software to create inkscape overlays in Beamer
Home-page: https://lab.compute.dtu.dk/tuhe/slider
Author: Tue Herlau
Author-email: tuhe@dtu.dk
License: MIT
Project-URL: Bug Tracker, https://lab.compute.dtu.dk/tuhe/slider/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
# Slider
Slide overlay software based on beamer and inkscape. This project is currently used in coursebox.
The software also offers a package for jinja2 (jinjafy) which offers a handful of convenient extensions.
LICENSE
README.md
pyproject.toml
setup.py
src/beamer_slider.egg-info/PKG-INFO
src/beamer_slider.egg-info/SOURCES.txt
src/beamer_slider.egg-info/dependency_links.txt
src/beamer_slider.egg-info/requires.txt
src/beamer_slider.egg-info/top_level.txt
src/jinjafy/__init__.py
src/jinjafy/jinja_env.py
src/jinjafy/jinja_matlab_load.py
src/jinjafy/jinjafy.py
src/jinjafy/snipper.py
src/jinjafy/textools.py
src/jinjafy/cache/__init__.py
src/jinjafy/cache/simplecache.py
src/jinjafy/plot/__init__.py
src/jinjafy/plot/plot_helpers.py
src/slider/__init__.py
src/slider/convert.py
src/slider/inkscape2scenes.py
src/slider/latexutils.py
src/slider/legacy_importer.py
src/slider/slide_fixer.py
src/slider/slider.py
src/slider/svg2latex.py
\ No newline at end of file
requirements.txt
jinjafy
slider
from jinjafy.jinjafy import jinjafy_comment
from jinjafy.jinjafy import jinjafy_template
from jinjafy.jinja_matlab_load import matlab_load
# from slider import latexmk
from jinjafy.textools import mat2table
import subprocess
# import os
import platform
# from subprocess import subprocess
# def get_system_name():
# if is_win():
# return "Win"
# if is_compute():
# return "thinlinc.compute.dtu.dk"
# if is_cogsys_cluster():
# return "cogys cluster"
def execute_command(command, shell=True):
if not isinstance(command, list):
command = [command]
# if not is_compute():
# result = subprocess.run(command, stdout=subprocess.PIPE, shell=shell)
# out = result.stdout
# else:
if not platform.uname()[0] == "Linux":
result = subprocess.run(command, stdout=subprocess.PIPE, shell=shell)
out = result.stdout
else:
out = subprocess.check_output(command, shell=shell)
s = out.decode("utf-8")
OK = True
return s, OK
# def get_system_name():
# if is_win():
# return "Win"
# if is_compute():
# return "thinlinc.compute.dtu.dk"
# if is_cogsys_cluster():
# return "cogys cluster"
# def execute_command(command, shell=True):
# if not isinstance(command, list):
# command = [command]
# # if not is_compute():
# # result = subprocess.run(command, stdout=subprocess.PIPE, shell=shell)
# # out = result.stdout
# # else:
# out = subprocess.check_output(command, shell=shell)
# s = out.decode("utf-8")
# OK = True
# return s, OK
\ No newline at end of file
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment