{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"},{"label":"Software Distribution","url":"https://skillfed.io/packages/category/system-software-distribution"}],"enrichment":{"capability":"Extracts a version string or other variable from Python source code for use in setup.py, eliminating boilerplate version-parsing code during package builds.","skillfed_tags":["build-tool","deprecated","setuptools-plugin"],"use_cases":["Migrating older projects that use read_version to avoid rewriting setup.py when upgrading setuptools.","Extracting multiple metadata fields (author, license, keywords) from source variables via pyproject.toml configuration.","Reading version from non-standard variable names or file locations using the variable and path parameters."],"what_it_does":"read_version is a small utility that parses Python source files to extract the value of a variable (typically __version__) for use during package setup. It was designed to eliminate the repetitive boilerplate code that developers write in setup.py to read version strings from their package's __init__.py or other source files.\n\nThe package offers two approaches: a functional API (import and call read_version() in setup.py) and a declarative approach (configure metadata extraction via pyproject.toml). However, the package is abandoned and explicitly marked obsolete\u2014setuptools has supported the attr: directive natively since version 46.4.0, which provides the same functionality without an external dependency. New projects should use setuptools' built-in mechanism instead.","worth_installing":"No. The package is abandoned (last release July 2021, repository archived) and explicitly superseded by setuptools' native attr: directive. New projects should use setuptools 46.4.0+ instead. Only consider read_version if maintaining legacy code that already depends on it and you cannot upgrade setuptools."},"id":"read-version","links":{"html":"https://skillfed.io/packages/read-version","md":"https://skillfed.io/packages/read-version.md","pypi":"https://pypi.org/project/read-version/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-07-25","license_spdx":null,"license_treatment":"permissive","name":"read-version","python_support":"supports_current","summary":"Extract your project's __version__ variable"},"popularity":{"monthly_downloads":185030,"position":10019,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.2"}
