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

When I git clone the repo and pip install -e . , the setup can't work correct. #96

Closed
RuixiangS opened this issue May 13, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@RuixiangS
Copy link

RuixiangS commented May 13, 2023

def read_description(file_path="README.md"):
    import os
    import re

    # def _encode_image(m):
    #     assert len(m.groups()) == 3
    #     pre, src, post = m.groups()
    #     src = src.rstrip().lstrip()
    #     remote_src = os.path.join(image_root, os.path.relpath(src))
    #     return f'{pre}{remote_src}{post}'

    desc = open(file_path, encoding="utf-8").read()

    # remove QRCode
    desc = "\n".join([line for line in desc.splitlines() if line.find("QRcode") < 0])

    # substitute html image
    # desc = re.sub(r'(<img\s+src\s*=\s*\")(./fig/[^"]+)(\")', _encode_image, desc)

    # substitute markdown image
    # desc = re.sub(r"(\!\[.*\]\()(./fig/.+)(\))", _encode_image, desc)

    return desc

I need to comment these code to ensure that i can install hyperTS.That's all,thanks

@zhangxjohn
Copy link
Collaborator

Sorry, where is this part of the code?

@RuixiangS
Copy link
Author

Sorry, where is this part of the code?

In the setup.py, Line number: 50, def read_description():

oaksharks added a commit that referenced this issue May 16, 2023
@zhangxjohn
Copy link
Collaborator

Sorry, where is this part of the code?

In the setup.py, Line number: 50, def read_description():

#96 (comment)

This issue has been fixed.
You can try again.

@zhangxjohn zhangxjohn added the bug Something isn't working label May 16, 2023
@RuixiangS
Copy link
Author

It works out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants