A minimal template for creating Python packages with a simple "Hello World" example.
Click the "Use this template" button on GitHub to create your own repository:
# Run the development setup script
.\tasks\dev_sync.ps1-
Rename directories:
mv src/whitelabel src/YOUR_PACKAGE_NAME mv tests/whitelabel tests/YOUR_PACKAGE_NAME
-
Update
pyproject.toml:- Change
name = "whitelabel"toname = "YOUR_PACKAGE_NAME" - Update author information
- Update repository URLs
- Change
-
Update import statements in your code from
whitelabeltoYOUR_PACKAGE_NAME
- Replace the hello_world function with your own code
- Add your functions to
src/YOUR_PACKAGE_NAME/functions/ - Write tests in
tests/YOUR_PACKAGE_NAME/ - Update
pyproject.tomlwith your package details
To enable SonarQube analysis in your CI/CD pipeline, set the following variables:
SONAR_TOKEN: Set as a secret in your CI/CD platform (authentication token for SonarQube)SONAR_PROJECT_KEY: Set as an environment variable in your CI/CD pipeline (unique key for your project, e.g.,your-org_your-repo)
SONAR_HOST_URL is typically configured at the organization level.
MIT License