Skip to content
Snippets Groups Projects

Fix/version propagation

Merged Mikhail Karnevskiy requested to merge fix/version_propagation into master
2 unresolved threads

@haufs

Most actual version information can be taken from the git. In case of a standard installation of the python module the git information became unavailable.

This code stores the version information from the git during installation to the python variable.

In case of a development installation the version is taken directly from the git.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
34 32 for nb in ctypes.values():
35 33 data_files.append(nb["notebook"])
36 34
35 version = check_output(['git', 'describe', '--tag']).decode('utf8')
  • 137 version = version.replace("\n", "")
    133 # Try to get version from the git
    134 # Will work only in case of the development installation
    135 # Suppress output errors
    136 # In case of a standard installation a version is stored
    137 # in the _version.py file
    138 try:
    139 git_dir = '{}/../.git'.format(os.path.dirname(__file__))
    140 FNULL = open(os.devnull, 'w')
    141 version = check_output(['git',
    142 '--git-dir={}'.format(git_dir),
    143 'describe', '--tag'],
    144 stderr=FNULL).decode('utf8')
    145 version = version.replace("\n", "")
    146 except:
    147 from xfel_calibrate import _version
  • added 1 commit

    • 6e06a305 - Introduce pre-installation class

    Compare with previous version

  • added 1 commit

    • 6e06a305 - Introduce pre-installation class

    Compare with previous version

  • added 1 commit

    • 754cbfb5 - Introduce pre-installation class

    Compare with previous version

  • added 1 commit

    • 077e2b3a - Introduce pre-installation class

    Compare with previous version

  • added 1 commit

    • c51f8184 - Introduce pre-installation class

    Compare with previous version

  • Steffen Hauf mentioned in commit d968be02

    mentioned in commit d968be02

  • Please register or sign in to reply
    Loading