Skip to content

Commit

Permalink
New version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Mar 16, 2016
1 parent cd3396a commit 9c744fc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -32,7 +32,7 @@ pip install uavcan

In order to deploy to PyPI via CI, do this:

1. Update the version number in `setup.py`, e.g. `1.0.0`.
1. Update the version number in `version.py`, e.g. `1.0.0`.
2. Create a new tag with the same version number, e.g. `git tag -a 1.0.0 -m "My release 1.0.0"`
3. Push to master.

Expand Down
7 changes: 6 additions & 1 deletion setup.py
Expand Up @@ -12,9 +12,14 @@
import sys
from setuptools import setup

__version__ = None
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'uavcan', 'version.py')
exec(open(VERSION_FILE).read()) # Adds __version__ to globals


args = dict(
name='uavcan',
version='1.0.0dev10',
version=__version__,
description='Python implementation of the UAVCAN protocol stack',
packages=[
'uavcan',
Expand Down
1 change: 1 addition & 0 deletions uavcan/__init__.py
Expand Up @@ -42,6 +42,7 @@ class UAVCANException(Exception):
pass


from .version import __version__
import uavcan.node as node
from uavcan.node import make_node
import uavcan.dsdl as dsdl
Expand Down
10 changes: 10 additions & 0 deletions uavcan/version.py
@@ -0,0 +1,10 @@
#
# Copyright (C) 2014-2016 UAVCAN Development Team <uavcan.org>
#
# This software is distributed under the terms of the MIT License.
#
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
# Ben Dyer <ben_dyer@mac.com>
#

__version__ = '1.0.0.dev11'

0 comments on commit 9c744fc

Please sign in to comment.