- Python 3.12 installed
- Poetry package manager installed
- Access to Confluence with API credentials
Set the Python version for your Poetry environment:
poetry env use python3.12Activate the Poetry-managed virtual environment:
poetry env activateIf the above doesn’t work, you can manually activate using the full path:
source /home/trungthieu/.cache/pypoetry/virtualenvs/first-test-demo-hQf9xYdT-py3.12/bin/activateOr use Poetry shell:
poetry shellif you use shell to activate environment, use exit to deactivate environment
Or activate a local virtual environment:
source .venv/bin/activateIf you have a problem with poetry.lock, try this:
sudo apt install python3-pip
pip install --upgrade poetrythen activate the environment and install:
poetry installOnce your environment is activated, deploy your documentation to Confluence:
sudo ./dtcw publishToConfluence \
-PconfluenceUser=thieuquangtrung1999@gmail.com \
-PconfluencePass=<apikey>Important: Replace <apikey> with your actual Confluence API token.
- The project uses Poetry for dependency management and virtual-environment isolation.
- Multiple activation methods are provided for different scenarios.
- Confluence deployment requires proper API credentials.
- The
dtcwscript appears to be a custom deployment tool for this project.
- If Poetry environment activation fails, try using the manual activation path.
- Ensure your Confluence API key has proper permissions for publishing.
- Verify Python 3.12 is properly installed and accessible to Poetry.