{"id":20053789,"url":"https://github.com/casperwa/check-sdist-action","last_synced_at":"2025-07-22T21:34:06.135Z","repository":{"id":56462802,"uuid":"310332035","full_name":"CasperWA/check-sdist-action","owner":"CasperWA","description":"GitHub Action to check a Python source distribution (`python setup.py sdist`) is installable.","archived":false,"fork":false,"pushed_at":"2020-11-05T23:29:10.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T09:16:08.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/CasperWA.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}},"created_at":"2020-11-05T14:56:32.000Z","updated_at":"2022-06-20T14:35:26.000Z","dependencies_parsed_at":"2023-01-04T12:30:51.429Z","dependency_job_id":null,"html_url":"https://github.com/CasperWA/check-sdist-action","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.4545454545454546,"last_synced_commit":"9cb7f6ff4baf31ae83dd7096b2df6cc32ecb5cf5"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CasperWA/check-sdist-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasperWA%2Fcheck-sdist-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasperWA%2Fcheck-sdist-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasperWA%2Fcheck-sdist-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasperWA%2Fcheck-sdist-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CasperWA","download_url":"https://codeload.github.com/CasperWA/check-sdist-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CasperWA%2Fcheck-sdist-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266578680,"owners_count":23951150,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2024-11-13T12:29:40.096Z","updated_at":"2025-07-22T21:34:06.100Z","avatar_url":"https://github.com/CasperWA.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check Python source distribution - GitHub Action\n\n_**Make sure a Python source distribution is buildable and installable.**_\n\nThis very simple action will build a source distribution via `python setup.py sdist` from your checked out repository and try to `pip install` it.\n\n## Usage\n\nThere are two ways to use this action:\n\n1. First use the [`actions/checkout`](https://github.com/marketplace/actions/checkout) action to checkout your local repository, or\n2. Use the `repository` (and possibly `token` and `branch`) inputs to specify any repository.\n\nConcerning the second option, the token might be needed if the chosen repository is private.\nFor more information about creating a personal access token (PAT) see [here](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token).\n\nBelow are examples of jobs representing each of the usage options:\n\n```yml\njobs:\n  build-package-1:\n    runs-on: ubuntu-latest\n    name: Build and install package - option 1\n    steps:\n    - name: Checkout local repository\n      uses: actions/checkout@v2\n\n    - name: Check package can be built and pip install-ed\n      uses: CasperWA/check-sdist-action@v1\n\n  build-package-2:\n    runs-on: ubuntu-latest\n    name: Build and install package - option 2\n    steps:\n    - name: Check package can be built and pip install-ed\n      uses: CasperWA/check-sdist-action@v1\n      with:\n        repository: octocat/Spoon-Knife\n        branch: develop\n        token: ${{ secrets.MY_PAT }}\n```\n\n## Inputs\n\n**All** inputs are _optional_.\n\n| Name | Description | Default |\n|:---:|:---|:---:|\n| `repository` | Repository for which to check building and installation of the source distribution.\u003cbr\u003eMust be a GitHub repository and the value should be of the form `\u003cowner\u003e/\u003crepository\u003e` (see example under [Usage](#Usage)).\u003cbr\u003eIf not specified, the repository in the current working directory will be used (use [`actions/checkout`](https://github.com/marketplace/actions/checkout)). | '' |\n| `branch` | Branch in `repository`, for which to check building and installation of the source distribution.\u003cbr\u003eIf not specified, the default branch is used. | '' |\n| `token` | Token with which to retrieve `repository`.\u003cbr\u003eUsed for authentication. See [Usage](#Usage) for information about a personal access token (PAT). | '' |\n\n## License\n\n[MIT License](LICENSE) and copyright by Casper Welzel Andersen.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasperwa%2Fcheck-sdist-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasperwa%2Fcheck-sdist-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasperwa%2Fcheck-sdist-action/lists"}