-
Notifications
You must be signed in to change notification settings - Fork 667
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
Add .gitignore and init git repo for taipy cli #671
Comments
We need to list the file patterns to be in the EDITED: |
The .gitignore should be added to the default template. |
Hi @jrobinAV I want to work on this. I have setup the codebase and am exploring it further. Can you point me to the entrypoint to taipy cli please. |
Hi @anunayasri , The entry point to the CLI would be in the Thanks for supporting us and giving us a helping hand!!! |
Hi @toan-quach. Thanks for the response and for correcting me. I need one more help please. I am trying to run the |
There is a problem with the To sum up, what you can do is going to a different working directory and installing Taipy with an absolute path to the
Please let me know if it can work. |
Hi @trgiangdo . Sorry, I was not able to respond your comment earlier. I tried switching to a different directory but it didn't work. I tried using |
Again, installing with the "." will not work. Please try to create a separate environment in a different directory than taipy, then install using the taipy path. |
@trgiangdo Installing in a different directory also didn't work. I have already tried it. I have solved it temporarily by reverse engineering the cd $PROJECT_ROOT
touch extaipy.py # executable taipy
# Paste the python script given below in the file
# Update the python executable based on your venv
chmod +x extaipy.py
./extaipy.py help #!/Users/anunayasri/workspace/taipy/.venv/bin/python <<<<< Update based on your venv
import re
import sys
from taipy._entrypoint import _entrypoint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_entrypoint()) |
Hi. I wasn't able to be give time to wrap up this issue. I have picked it up to raise the PR. Getting the following error. I would appreciate if someone could help. I have added taipy/templates/scenario-management/hooks/post_gen_project.py: error: Duplicate module named "post_gen_project" (also at "taipy/templates/default/hooks/post_gen_project.py")
taipy/templates/scenario-management/hooks/post_gen_project.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
taipy/templates/scenario-management/hooks/post_gen_project.py: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH |
In the I'm not sure why you are getting the error tbh, but it should be fine when you commit and push the branch. |
@anunayasri I assigned the issue to you because you are already working on it. Let me know if it's ok. Thank you |
@trgiangdo. Thanks for the help. I am totally fine to be the assignee. 👍🏼 Will raise the PR in some time. |
Hi @trgiangdo . I have raised the PR. Could you have a look. |
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines. |
When using django cli or reactjs cli to generate a project, it always comes with a folder that already has git initialized along with a .gitignore. This is very convenient to have in taipy cli as well
The text was updated successfully, but these errors were encountered: