{"id":30691326,"url":"https://github.com/grll/mypython","last_synced_at":"2025-09-02T03:48:25.862Z","repository":{"id":310801753,"uuid":"1041273481","full_name":"grll/mypython","owner":"grll","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-20T09:02:07.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T10:36:40.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/grll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-20T08:40:50.000Z","updated_at":"2025-08-20T09:02:11.000Z","dependencies_parsed_at":"2025-08-20T10:36:44.333Z","dependency_job_id":"843485f2-30e6-4270-a89d-29be5f6eacd8","html_url":"https://github.com/grll/mypython","commit_stats":null,"previous_names":["grll/mypython"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/grll/mypython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grll%2Fmypython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grll%2Fmypython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grll%2Fmypython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grll%2Fmypython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grll","download_url":"https://codeload.github.com/grll/mypython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grll%2Fmypython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273227507,"owners_count":25067686,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-02T03:48:25.152Z","updated_at":"2025-09-02T03:48:25.851Z","avatar_url":"https://github.com/grll.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Python - Template\n\n## How to use this template?\n\n### Quick Start\n\nRun this one-liner to create a new Python project from this template:\n\n```bash\n# Create a public repository (default)\ncurl -s https://raw.githubusercontent.com/grll/mypython/main/setup.sh | bash -s YOUR_REPO_NAME\n\n# Create a private repository\ncurl -s https://raw.githubusercontent.com/grll/mypython/main/setup.sh | bash -s YOUR_REPO_NAME private\n```\n\nThis will:\n1. Create a new GitHub repository from this template (public by default, or private if specified)\n2. Clone it locally\n3. Rename the package from `mypython` to your repository name (converting hyphens to underscores for Python compatibility)\n4. Update all references throughout the codebase\n\nFor example, if you run `bash -s my-awesome-project`, it will create a public repo called `my-awesome-project` with a Python package named `my_awesome_project`.\n\n## Installation\n\n## Development\n\nInstall dev dependencies:\n\n```bash\nuv sync --extra dev\n```\n\nThe dev dependencies includes linting, type checking and testing.\n\nInstall pre-commit hooks:\n\n```bash\nuv run pre-commit install\n```\n\nRun tests:\n\n```bash\nuv run pytest\n```\n\n## Project Maintenance\n\n### Version Management\n\nThis project includes a `bump_version.py` script to automate version bumping and release creation. The script:\n- Updates the version in `src/mypython/__init__.py`\n- Creates a git commit with the version change\n- Tags the commit with the new version\n- Pushes the changes and tags to GitHub\n- Creates a GitHub release with auto-generated release notes\n\n#### Usage\n\n```bash\n# Bump patch version (e.g., 1.0.0 -\u003e 1.0.1)\npython scripts/bump_version.py patch\n\n# Bump minor version (e.g., 1.0.0 -\u003e 1.1.0)\npython scripts/bump_version.py minor\n\n# Bump major version (e.g., 1.0.0 -\u003e 2.0.0)\npython scripts/bump_version.py major\n```\n\n### PyPI Publishing Setup\n\nThis template includes a GitHub Actions workflow for automatic PyPI publishing when releases are created. To enable this, you need to configure PyPI Trusted Publisher:\n\n#### Steps to Configure PyPI Trusted Publisher\n\n1. **Create your package on PyPI** (if not already exists):\n   - Go to [PyPI](https://pypi.org)\n   - Upload an initial version manually or create a placeholder\n\n2. **Configure Trusted Publisher on PyPI**:\n   - Go to your project page on PyPI\n   - Navigate to \"Settings\" → \"Publishing\"\n   - Under \"Trusted Publishers\", click \"Add a new publisher\"\n   - Fill in the following details:\n     - **Owner**: Your GitHub username or organization\n     - **Repository name**: Your repository name\n     - **Workflow name**: `release.yml`\n     - **Environment**: Leave blank (optional)\n   - Click \"Add\"\n\n3. **Verify the GitHub Actions workflow**:\n   - The `.github/workflows/release.yml` file is already configured in this template\n   - It will automatically trigger when you create a new release (using `bump_version.py` or manually)\n   - The workflow will build and publish your package to PyPI using trusted publishing (no API tokens needed!)\n\nOnce configured, your release process becomes:\n1. Run `python scripts/bump_version.py [major|minor|patch]` to create a release\n2. GitHub Actions automatically publishes to PyPI using trusted publishing\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrll%2Fmypython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrll%2Fmypython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrll%2Fmypython/lists"}