Your project description
- Feature 1
- Feature 2
- Feature 3
pip install your-project-name
Or with Poetry:
poetry add your-project-name
import your_project_name
# Add usage examples here
# Clone the repository
git clone https://github.com/yourusername/your-project-name.git
cd your-project-name
# Install dependencies with Poetry
poetry install
# Run tests with nox
nox -s pytest
# Run linting
nox -s lint
# Fix linting issues
nox -s lint_fix
# Build documentation
nox -s docs
# Serve documentation with live reloading
nox -s docs-serve
MIT
This template uses GitHub Actions for CI/CD. The following workflows are included:
- Build and Release: Tests the package on multiple Python versions and operating systems, and publishes to PyPI when a new release is created.
- Documentation: Builds and deploys documentation to GitHub Pages.
- Dependency Review: Scans dependencies for security vulnerabilities.
- Scorecards: Analyzes the security health of the project.
The release workflow uses PyPI's trusted publishing, which means you don't need to set up any PyPI API tokens. Instead, you'll need to configure trusted publishing in your PyPI project settings once you've created your package. See PyPI's documentation on trusted publishing for more information.
To create a new release:
- Update the version in
pyproject.toml
- Update the
CHANGELOG.md
with the new version and changes - Commit and push the changes
- Create a new tag with the version number (e.g.,
1.0.0
) - Push the tag to GitHub
# Example release process
git add pyproject.toml CHANGELOG.md
git commit -m "Release 1.0.0"
git tag 1.0.0
git push && git push --tags
The GitHub Actions workflow will automatically build and publish the package to PyPI.