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

entries not defined in config (Python3.9) #76

Open
benatouba opened this issue Nov 23, 2024 · 0 comments · Fixed by #77
Open

entries not defined in config (Python3.9) #76

benatouba opened this issue Nov 23, 2024 · 0 comments · Fixed by #77

Comments

@benatouba
Copy link

In cosipy/config.py:

def get_entry_points(package_name: str = "cosipy"):
    """Get package entry points.

    Returns:
        Generator: All of the package's available entry points.
    """

    if sys.version_info >= (3, 10):
        entries = entry_points(group="console_scripts")
    else:
        entries = entries["console_scripts"]
    entrypoints = (
        ep
        for ep in entries
        if ep.name.startswith(package_name.upper())
        or ep.name.startswith(package_name.lower())
        or package_name.lower() in ep.name
    )

    return entrypoints

entries is not defined in python3.9. Will fix.

benatouba added a commit to benatouba/cosipy that referenced this issue Nov 23, 2024
benatouba added a commit to benatouba/cosipy that referenced this issue Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant