This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a utility to manage versions in all necessary files in one place.(see,update, etc.)

Sometimes there are too many files in the project which contains project version. For example you would be having files such as bower.json and setup.py on same version in your project. Whenever the version is wanted be to upgraded, all files were updated one by one; now all implemented files can be update simply at once. It will find your versioning files and update them one by one.

This is installed into your python environment and the commands below can be access from command-line directly.

Requirements

  • Python 2.7 or pypy2

Installation

$ (sudo) pip install version-manager --upgrade

Supported Functionalities

Current Status

To see current version of files.

$ versionmanager --status

Set version

Any version can be set.

$ versionmanager --set 1.1.1

Bump Version

This is new functionality to upgrade version without knowing whole version string. It simply upgrade version as major, minor or patch as it is defined in SemVer.

$ versionmanager --bump major
$ versionmanager --bump minor
$ versionmanager --bump patch

Built-In Supported Files

  • setup.py
  • bower.json
  • package.json
  • pom.xml
  • conf.py (sphinx documentation config)

Implement for Your Custom Files

Any file implementation can be added simply. version-manager reads extra config from .vmrc file under your current directory(project folder maybe) or your user home directory.

Here is a simple example of .vmrc

$ vi ~/.vmrc

or

$ vi /path/to/your_project/.vmrc
{
  files : [
              {
                    'name': 'my_custom_file.txt',
                    'parser': 'regexp',
                    'kwargs':{
                          'regex': '(?P<match_left>version=")(?P<version>\d+)(?P<match_right>")'
                    }
              },
              {
                    'name': 'my_custom_file.xml',
                    'parser': 'xml',
                    'kwargs':{
                          'xpaths': ['./ns:path1/ns:version'],
                          'namespaces':{'my_namespace':'my-name-space-uri'}
                    }
              }
        ]
}

Any famous file formats can be demanded as built-in by opening an issue. Feel free to demand it :-)

Change Logs

0.6.0(Stable)

  • Improvement - current_version and update_version are merged as subcomment under versionmanager consolescript. versionmanager --status, versionmanager --set <version> and versionmanager --bump <level> are available instead of current_version and update_version <version> .
  • Improvement - SemVer support is added for bump versioning. versionmanager --bump <level> which level is one among (major,“minor“,“patch“)

0.5.1

  • Improvement - pypy support is added.
  • Bug - When there is multiple regex config for same file, one of them was being applied. It is fixed. (version and relase in Sphinx conf.py)

0.5.0

  • Improvement - Sphinx conf.py support is added.
  • Improvement - README file is in rst format now.
Release History

Release History

0.6.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.5.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
version-manager-0.6.0.tar.gz (7.7 kB) Copy SHA256 Checksum SHA256 Source Sep 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting