python --version (should show 3.11.x)python -c "import asyncio; asyncio.timeout(1.0)"git clone https://github.com/yourusername/piper-morgan-platform.git
cd piper-morgan-platform
python --version # Should show Python 3.11.x
cat .python-version # Should show 3.11
python -m venv venv
source venv/bin/activate # Linux/macOS
# OR venv\Scripts\activate # Windows
pip install -r requirements.txt
python -c "import asyncio; asyncio.timeout(1.0); print('✅ Python 3.11 ready')"
pytest tests/ -v
docker-compose build
docker-compose up -d
pip install pre-commit
pre-commit install
pre-commit run --all-files
python main.py
# Should start without Python version errors
docker-compose exec app python --version # Should show 3.11.x
python -m pytest tests/ --tb=short
python -c "
import asyncio
async def test_timeout():
async with asyncio.timeout(1.0):
await asyncio.sleep(0.1)
asyncio.run(test_timeout())
print('✅ AsyncIO.timeout works correctly')
"
black --check .
isort --check-only .
flake8 . --count --exit-zero --max-line-length=100
git add .
git commit -m "Initial setup"
git push origin main
git checkout -b feature/your-first-feature
Python Version Issues:
# If you see: AttributeError: module 'asyncio' has no attribute 'timeout'
python --version # Check if < 3.11
# Solution: Install and activate Python 3.11
Docker Issues:
# If containers fail to build
docker-compose build --no-cache
docker-compose exec app python --version # Verify 3.11.x
Test Failures:
# If tests fail with version errors
python -W error::DeprecationWarning -m pytest tests/
# Check for Python 3.11 compatibility issues
You’re successfully onboarded when:
Once you’ve completed this checklist, you’re ready to contribute to Piper Morgan Platform. The Python 3.11 migration (PM-055) ensures a modern, consistent development environment for all team members.
Key Benefits of Python 3.11:
asyncio.timeout() functionality