Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

setuptools_scm plugin to use version from

Project description

Travis AppVeyor Coverage Updates PyPI

This is a setuptools_scm plugin that adds support for files.

If version cannot be resolved via SCM, the fallback registered by this plugin will be called. It will try to find the file (using the **/ glob pattern) that defines the __version__ variable.

Since there is no SCM metadata available, package will return VERSION.dev0+unknown where VERSION is a version from


Add 'setuptools_scm_about' to the setup_requires parameter in your project’s file:

        'write_to': 'myproject/'
    setup_requires=['setuptools_scm', 'setuptools_scm_about'],

Define __version__ in myproject/

__version__ = 1.0

Import __version__ in myproject/ for external access:

    from ._version import version as __version__
except ImportError:
    from .__about__ import __version__

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for setuptools-scm-about, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size setuptools_scm_about-1.0-py2.py3-none-any.whl (5.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size setuptools_scm_about-1.0.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page