---
name: "pysupport-parseversions"
section: "1"
platform: "linux"
package: "python-support"
version: "0.8.4lenny2"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/pysupport-parseversions"
---

# pysupport-parseversions(1)

parse python-support version information files

## NAME

pysupport-parseversion - parse python-support version information files

## SYNOPSIS

**pysupport-parseversion** \[*file.pyversions*\]

## DESCRIPTION

The **pysupport-parseversion** command takes exactly one argument, which must be a file containing  version information suitable for **python-support**. Generally the file will be named *debian/*package*.pyversions*. If there is no argument, it will read standard input.

The format of the file is a comma-separated list of python versions or  range of versions. An example is

	\-2.1,2.4-2.6

which means all versions until 2.1, and versions between 2.4 and 2.6.

## OUTPUT

**pysupport-parseversion** displays the list of python versions supported by the system that are in  the described ranges. In the earlier example, if versions 2.3 to 2.5 are  supported by the system, it will return:

	2\.4 2.5

## OPTIONS

- **-h, --help**

  Show summary of options.

- **--minmax**

  Also display, on a second line, the minimal and maximal python version  (even not supported) that the file describes.

- **-l, --long**

  Long format: prepend the versions with "python".

- **--pycentral**

  Parse a pycentral-type version strings instead.

- **--raw**

  Output the raw input string. This option is useful with **--pycentral**, to produce a suitable *.versions* file compatible with python-support.

## SEE ALSO

[**pyversions**(1)](/pyversions/1.md), [**dh\_pysupport**(1)](/dh_pysupport/1.md), [**update-python-modules**(8)](/update-python-modules/8.md).

## AUTHOR

Josselin Mouette \<joss@debian.org\>.
