"""Setup script for the sentry-scrubber package.""" import os from setuptools import find_packages, setup def get_version(): """Get version from __init__.py without importing the package.""" with open(os.path.join("sentry_scrubber", "__init__.py")) as f: for line in f: if line.startswith("__version__"): return line.split("=")[1].strip().strip('"').strip("'") raise RuntimeError("Unable to find version string") # Read the README file for long description with open("README.md", encoding="utf-8") as fh: long_description = fh.read() setup( name="python-sentry-scrubber", version=get_version(), url="https://github.com/theorchard/python-sentry-scrubber/", author="Sony Music PDE", author_email="webdev@theorchard.com", description="Python library for scrubbing sensitive data from Sentry events and general data structures", long_description=long_description, long_description_content_type="text/markdown", packages=find_packages(), include_package_data=True, zip_safe=False, python_requires=">=3.11", )