reorga files
This commit is contained in:
parent
fda7b41a62
commit
5e096c6aa6
|
@ -0,0 +1,2 @@
|
|||
recursive-include samples *.xlsx
|
||||
recursive-include generate_bilan *.tex
|
|
@ -1,56 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from generate_bilan import generate_bilan
|
||||
import optparse
|
||||
import os
|
||||
from path import Path
|
||||
|
||||
# Defaults settings
|
||||
this_dir, this_filename = os.path.split(__file__)
|
||||
default_template = "tpl_bilan.tex"
|
||||
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option("-c",
|
||||
"--classe",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="classe",
|
||||
help="The classe")
|
||||
parser.add_option("-e",
|
||||
"--evaluation",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="ds_name",
|
||||
help="The evaluation name.")
|
||||
parser.add_option("-p",
|
||||
"--path",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="path",
|
||||
default=Path("./"),
|
||||
help="Path where xlsx are stored")
|
||||
parser.add_option("-t",
|
||||
"--template",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="template",
|
||||
default=default_template,
|
||||
help="The template file")
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if not options.classe:
|
||||
raise ValueError("Need to pass a class with -c. See -h for help")
|
||||
if not options.ds_name:
|
||||
raise ValueError("Need to pass a evaluation name with -e. See -h for help")
|
||||
|
||||
generate_bilan(options.classe,
|
||||
options.ds_name,
|
||||
options.path,
|
||||
options.template)
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
||||
# cursor: 16 del
|
|
@ -1,11 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
|
||||
from notes_tools.extract import extract_flat_marks, get_class_ws
|
||||
from notes_tools.df_marks_manip import digest_flat_df, students_pov
|
||||
|
||||
|
||||
from .generate_bilan import generate_bilan
|
||||
from .tools import extract_flat_marks, get_class_ws, digest_flat_df, students_pov
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from .generate_bilan import generate_bilan
|
||||
import optparse
|
||||
import os
|
||||
from path import Path
|
||||
|
||||
# Defaults settings
|
||||
default_template = "tpl_bilan.tex"
|
||||
|
||||
|
||||
def main():
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option("-c",
|
||||
"--classe",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="classe",
|
||||
help="The classe")
|
||||
parser.add_option("-e",
|
||||
"--evaluation",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="ds_name",
|
||||
help="The evaluation name.")
|
||||
parser.add_option("-p",
|
||||
"--path",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="path",
|
||||
default=Path("./"),
|
||||
help="Path where xlsx are stored")
|
||||
parser.add_option("-t",
|
||||
"--template",
|
||||
action="store",
|
||||
type="string",
|
||||
dest="template",
|
||||
default=default_template,
|
||||
help="The template file")
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if not options.classe:
|
||||
raise ValueError("Need to pass a class with -c. See -h for help")
|
||||
if not options.ds_name:
|
||||
raise ValueError("Need to pass a evaluation name with -e. See -h for help")
|
||||
|
||||
generate_bilan(options.classe,
|
||||
options.ds_name,
|
||||
options.path,
|
||||
options.template)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
||||
# cursor: 16 del
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from notes_tools import extract_flat_marks, get_class_ws, digest_flat_df, students_pov
|
||||
from generate_bilan.texenv import texenv
|
||||
from notes_tools.tools import extract_flat_marks, get_class_ws, digest_flat_df, students_pov
|
||||
from .texenv import texenv
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import xlrd
|
|
@ -12,7 +12,7 @@ texenv = jinja2.Environment(
|
|||
block_end_string = '}',
|
||||
variable_start_string = '\Var{',
|
||||
variable_end_string = '}',
|
||||
loader = jinja2.PackageLoader("generate_bilan", "templates"),
|
||||
loader = jinja2.PackageLoader("notes_tools.generate_bilan", "templates"),
|
||||
extensions = ['jinja2.ext.do']
|
||||
)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
|
||||
from .extract import extract_flat_marks, get_class_ws
|
||||
from .df_marks_manip import digest_flat_df, students_pov
|
||||
|
||||
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
||||
# cursor: 16 del
|
|
@ -2,7 +2,7 @@
|
|||
# encoding: utf-8
|
||||
|
||||
|
||||
from notes_tools import df_marks_manip
|
||||
from notes_tools.tools import df_marks_manip
|
||||
import pandas
|
||||
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
# encoding: utf-8
|
||||
|
||||
|
||||
from notes_tools import extract
|
||||
import pandas
|
||||
from notes_tools.tools import extract
|
||||
import pandas
|
||||
import pytest
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[pytest]
|
||||
addopts = --doctest-modules
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
#import generate_bilan
|
||||
#import notes_tools
|
||||
|
||||
setup(name="notes_analysis",
|
||||
version = "0.1",
|
||||
description = "Outils d'analyse de notes",
|
||||
author = "Benjamin Bertrand",
|
||||
include_package_data=True,
|
||||
packages=find_packages(),
|
||||
install_requires=['jinja2',
|
||||
'pandas',
|
||||
'xlrd',
|
||||
'path.py',
|
||||
],
|
||||
entry_points = {
|
||||
"console_scripts": ['generate_bilan = generate_bilan.generate_bilan:main']
|
||||
},
|
||||
zip_safe=False
|
||||
)
|
||||
|
||||
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
||||
# cursor: 16 del
|
||||
|
Loading…
Reference in New Issue