-
Solution - 1
- "poetry doesn't support this directly. But if you have a handmade list of required packages (at best without any version numbers), that only contain the main dependencies and not the dependencies of a dependency you could do this:"
cat requirements.txt|xargs poetry add
- "poetry doesn't support this directly. But if you have a handmade list of required packages (at best without any version numbers), that only contain the main dependencies and not the dependencies of a dependency you could do this:"
-
Solution - 2
- Another Solution
-
for item in $(cat requirements.txt); do poetry add "${item}"; done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ticketing App - {% block title %} {% endblock %}</title> | |
</head> | |
<body> | |
<nav> | |
<a href="/">Home</a> | |
<a href="/tickets">View Tickets</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import docx | |
from docx.text.run import Run | |
def add_hyperlink_into_run(paragraph, run, url): | |
""" | |
https://github.com/python-openxml/python-docx/issues/610#issuecomment-458289054 | |
""" | |
runs = paragraph.runs |
Install Chocolatey first
choco install nvda
choco install poedit
choco install tortoisesvn
Install Chocolatey first
Run this to install dependencies, re-run this if the installer requires a reboots
choco install visualstudio2019buildtools visualstudio2019-workload-vctools git jre8 nvm cmder sublimetext4 docker-desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "code_to_share" | |
version = "0.1.0" | |
description = "" | |
authors = ["JD <[email protected]>"] | |
license = "MIT" | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
fastapi = "^0.63.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using virtualenv: /Users/jd/Dropbox/Python Scripts/code_to_share/.venv | |
Using version ^11.7.1 for ocrmypdf | |
Updating dependencies | |
Resolving dependencies... | |
1: fact: code_to_share is 0.1.0 | |
1: derived: code_to_share | |
1: fact: code_to_share depends on fastapi (^0.63.0) | |
1: fact: code_to_share depends on uvicorn (^0.13.4) | |
1: fact: code_to_share depends on httpx (^0.17.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ENV_NAME=$1 | |
PYTHON_VERSION=$2 | |
CONDA_BASE=$(conda info --base)/"etc/profile.d/conda.sh" | |
CONDA_ENV_PATH=$(conda info --base)/"envs/$ENV_NAME" | |
echo "$CONDA_BASE" | |
echo "$CONDA_ENV_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8 | |
RUN pip install --upgrade pip | |
ARG poetry_version="master" | |
# install-poetry.py and get-poetry.py are options; but get-poetry.py is deprecated though! | |
ARG poetry_script_name="install-poetry.py" | |
ARG debug_poetry="true" | |
ENV PATH="/opt/poetry/bin:${PATH}" | |
# Install Poetry |