- Python 3.10 or later
- pip
Install the runtime and build dependencies:
pip install -e .For development (linting, type-checking, testing), also install the dev extras:
pip install -e . --group devFor builds and deploys , also install the build extras:
pip install -e . --group buildpytestWith coverage:
pytest --cov=instaparserruff check instaparser/
ruff format --check instaparser/
mypy instaparser/Build both the sdist and wheel:
python -m buildThe outputs will be in the dist/ directory.
Upload the built artifacts with twine:
twine upload dist/*To test against Test PyPI first:
twine upload --repository testpypi dist/*The package version is defined in instaparser/__init__.py and read automatically by Hatch at build time via the [tool.hatch.version] configuration in pyproject.toml.