{"id":28148838,"url":"https://github.com/laurencerawlings/python-poetry-cicd","last_synced_at":"2025-05-15T01:15:10.856Z","repository":{"id":44769845,"uuid":"451978236","full_name":"LaurenceRawlings/python-poetry-cicd","owner":"LaurenceRawlings","description":"Python Poetry package with basic CI/CD using GitHub actions","archived":false,"fork":false,"pushed_at":"2022-01-26T16:27:59.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T01:54:21.332Z","etag":null,"topics":["black","cd","ci","conventional-commits","poetry","pre-commit","pypi","pytest","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaurenceRawlings.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-25T17:36:23.000Z","updated_at":"2025-04-07T11:29:37.000Z","dependencies_parsed_at":"2022-09-09T23:40:39.592Z","dependency_job_id":null,"html_url":"https://github.com/LaurenceRawlings/python-poetry-cicd","commit_stats":null,"previous_names":[],"tags_count":5,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurenceRawlings%2Fpython-poetry-cicd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurenceRawlings%2Fpython-poetry-cicd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurenceRawlings%2Fpython-poetry-cicd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurenceRawlings%2Fpython-poetry-cicd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaurenceRawlings","download_url":"https://codeload.github.com/LaurenceRawlings/python-poetry-cicd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254253940,"owners_count":22039792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["black","cd","ci","conventional-commits","poetry","pre-commit","pypi","pytest","python"],"created_at":"2025-05-15T01:14:42.675Z","updated_at":"2025-05-15T01:15:10.852Z","avatar_url":"https://github.com/LaurenceRawlings.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Poetry CI/CD\n\nPython Poetry package with basic CI/CD using GitHub actions\n\n## Usage\n\n- Make new repo with this template\n- Add `PERSONAL_ACCESS_TOKEN` and `PYPI_TOKEN` secrets\n- Clone your new repo\n- [optional] Install recommended VScode extensions\n- Install dependencies and update python interpreter path\n\n```bash\npoetry install\npoetry run pre-commit install\npoetry env info\n```\n\n- Create a new branch to start development\n\n```bash\ngit branch \u003cbranch_name\u003e\ngit checkout \u003cbranch_name\u003e\n```\n\n- Replace all occurances of `application` with the name of your package\n  - `pyproject.toml`\n  - `.github/workflows/deploy.yml`\n  - `application/__main__py`\n  - `application` - directory\n  - (tip) In VScode use `Ctrl+Shift+F`\n- Check the tests are passing before commiting\n\n```bash\npoetry run pytest\n```\n\n- Commit your changes usig the [conventional commits](https://www.conventionalcommits.org/) format\n  - (tip) use the VScode [Conventional Commits](https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits) extension to help\n\n```bash\ngit add .\ngit commit\n```\n\n- Push your changes to GitHub\n\n```bash\ngit push\n```\n\n- Go to your newly created branch on GitHub and create pull request\n- Wait for checks to pass from the CI workflow\n- Merge pull request after all the checks have passed\n- Now back on the `main` branch more workflows should start\n- Wait for all the workflows to finish and go to `/releases`\n- Review the release draft and publish when ready\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurencerawlings%2Fpython-poetry-cicd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurencerawlings%2Fpython-poetry-cicd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurencerawlings%2Fpython-poetry-cicd/lists"}