Metadata-Version: 2.1
Name: check-sdist
Version: 0.1.0
Summary: Check the contents of an SDist vs. git
Project-URL: Homepage, https://github.com/henryiii/check-sdist
Project-URL: Bug Tracker, https://github.com/henryiii/check-sdist/issues
Project-URL: Changelog, https://github.com/henryiii/check-sdist/releases
Author-email: Henry Schreiner <henryschreineriii@gmail.com>
License-File: LICENSE
Keywords: lint,packaging,sdist
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Typing :: Typed
Requires-Python: >=3.8
Requires-Dist: build
Requires-Dist: importlib-resources; python_version < '3.9'
Requires-Dist: pathspec
Requires-Dist: tomli; python_version < '3.11'
Provides-Extra: dev
Requires-Dist: pytest-cov>=3; extra == 'dev'
Requires-Dist: pytest>=6; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest-cov>=3; extra == 'test'
Requires-Dist: pytest>=6; extra == 'test'
Description-Content-Type: text/markdown

# check-sdist

[![Actions Status][actions-badge]][actions-link]
[![PyPI version][pypi-version]][pypi-link]
[![PyPI platforms][pypi-platforms]][pypi-link]

<!-- prettier-ignore-start -->
[actions-badge]:            https://github.com/henryiii/check-sdist/workflows/CI/badge.svg
[actions-link]:             https://github.com/henryiii/check-sdist/actions
[pypi-link]:                https://pypi.org/project/check-sdist/
[pypi-platforms]:           https://img.shields.io/pypi/pyversions/check-sdist
[pypi-version]:             https://img.shields.io/pypi/v/check-sdist

<!-- prettier-ignore-end -->

To run:

```console
$ pipx run check-sdist
```

You can add `--no-isolation` to disable build isolation (faster, but must
preinstall build deps), `--source-dir` to select a different source dir to
check, and `--inject-junk` to temporarily inject some common junk files while
running.

To use the development version:

```console
$ pipx run --spec git+https://github.com/henryiii/check-sdist check-sdist
```

To use the pre-commit integration, use this in your `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/henryiii/check-sdist
  rev: v0.1.0
  hooks:
    - id: check-sdist
      args: [--inject-junk]
      additional_dependencies: [] # list your build deps here
```

Or, slower, but doesn't require build dependency listing:

```yaml
- repo: https://github.com/henryiii/check-sdist
  rev: v0.1.0
  hooks:
    - id: check-sdist-isolated
      args: [--inject-junk]
```

To configure, these options are provided for your pyproject.toml file:

```toml
[tool.check-sdist]
sdist-only = []
git-only = []
default-ignore = true
```

You can add .gitignore style lines here, and you can turn off the default ignore
list, which adds some default `git-only` files.
