Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ekobox dependencies #134

Closed
felixhekhorn opened this issue Jun 23, 2022 · 3 comments · Fixed by #278
Closed

ekobox dependencies #134

felixhekhorn opened this issue Jun 23, 2022 · 3 comments · Fixed by #278
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@felixhekhorn
Copy link
Contributor

as said by @alecandido

I see: the problem was in the dependencies, because the package is always installed. The extras is only needed for extra dependencies, of course. But then mark and box have the same dependencies...

https://github.com/N3PDF/eko/blob/16b4606d877099ebf7b806f225a2f35adf881049/pyproject.toml#L68-L69

so someone just copied ... I think the correct ekobox dependencies are

@alecandido @andreab1997 do you agree?

the ekomark dependencies seem to be alright ...

@felixhekhorn felixhekhorn added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 23, 2022
@alecandido
Copy link
Member

Following the list of import inside ekobox for current develop branch.

If you strip:

  • standard library
  • local imports
  • dependencies that are already present (e.g. yaml)
  • and the other packages (i.e. eko and ekomark)

We remain with the two that you listed, + lhapdf.

Unfortunately, the dependency on ekomark reintroduces all the others, so we this issue depends on #122 (not the title, but the conclusion: we'd like ekobox not to depend on banana, so it should not depend also on ekomark).

gen_theory.py
2:import copy
4:import yaml
5:from banana.data import sql, theories
68:def import_theory_card(path):

genpdf/flavors.py
2:import copy
4:import numpy as np
6:from eko import basis_rotation as br

__init__.py
2:from ekomark import apply
4:from . import evol_pdf, gen_info, gen_op, gen_theory

evol_pdf.py
2:import pathlib
4:import eko
5:from eko import basis_rotation as br
6:from ekomark import apply
8:from . import gen_info, genpdf

genpdf/__init__.py
2:import copy
3:import pathlib
4:import shutil
6:import numpy as np
7:from banana import toy
9:from eko import basis_rotation as br
11:from . import export, flavors, load
128:        >>> from eko import basis_rotation as br
129:        >>> from ekobox.tools import genpdf
130:        >>> import numpy as np
188:    import lhapdf  # pylint: disable=import-error, import-outside-toplevel

genpdf/cli.py
6:import click
8:from . import generate_pdf, install_pdf

utils.py
2:import copy
4:import numpy as np

mock.py
2:import numpy as np

gen_op.py
2:import copy
4:import yaml
5:from banana.data import sql
7:from ekomark.data import operators
62:def import_op_card(path):

genpdf/export.py
2:import io
3:import pathlib
4:import re
6:import numpy as np
7:import yaml

gen_info.py
2:import copy
3:import math
5:from .genpdf import load

genpdf/load.py
2:import pathlib
4:import numpy as np
5:import yaml
29:    import lhapdf  # pylint: disable=import-error, import-outside-toplevel
56:    import lhapdf  # pylint: disable=import-error, import-outside-toplevel

@felixhekhorn felixhekhorn changed the title ekomark dependencies ekobox dependencies May 23, 2023
@felixhekhorn
Copy link
Contributor Author

The dependencies for ekobox are now reduced on master

box = ["rich"]

but we're missing click which is a dependencies - this breaks the eko CLI (which is not used by anyone 😇 ) , but this also means the CLI of genpdf is broken when only installing with eko[box]; instead when installing also ekomark you get banana and thus click

@alecandido
Copy link
Member

Can you fix it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants