Skip to content
Snippets Groups Projects

Added version number to pystencils

Merged Markus Holzer requested to merge holzer/pystencils:version_number into master
4 unresolved threads

Pystencils should have a __version__ attribute

Edited by Markus Holzer

Merge request reports

Pipeline #29594 passed with warnings

Pipeline passed with warnings for 9890cf8a on holzer:version_number

Approval is optional

Merged by Michael KuronMichael Kuron 4 years ago (Jan 25, 2021 12:45pm UTC)

Merge details

  • Changes merged into master with e720af7a (commits were squashed).
  • Did not delete the source branch.

Pipeline #29599 passed

Pipeline passed for e720af7a on master

Test coverage 89.38% from 0 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
21 21 except ImportError:
22 22 pass
23 23
24 def get_file_path():
25 import os.path
26 file_path = os.path.abspath(os.path.dirname(__file__))
27 return os.path.join(file_path, '../RELEASE-VERSION')
  • 21 21 except ImportError:
    22 22 pass
    23 23
    24 def get_file_path():
  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • @holzer Sorry I forgot about this one. Can it be merged?

  • Markus Holzer added 17 commits

    added 17 commits

    • 311b9b26...f19bd423 - 16 commits from branch pycodegen:master
    • 8eb74b7b - Merge i10git.cs.fau.de:pycodegen/pystencils into version_number

    Compare with previous version

  • Markus Holzer changed the description

    changed the description

  • Markus Holzer assigned to @kuron and unassigned @thoennes

    assigned to @kuron and unassigned @thoennes

  • 21 21 except ImportError:
    22 22 pass
    23 23
    24
    25 def _get_file_path():
    26 import os.path
    27 file_path = os.path.abspath(os.path.dirname(__file__))
    28 return os.path.join(file_path, '..', 'RELEASE-VERSION')
    29
    30
    31 try:
    32 __version__ = open(_get_file_path(), 'r').read()
    33 except IOError:
    34 __version__ = 'Please install pystencils with setup.py'
  • Markus Holzer added 1 commit

    added 1 commit

    • 4030bd8d - Added test case for version number

    Compare with previous version

  • 1 import pystencils as ps
    2 from pathlib import Path
    3
    4 def test_version_string():
    5 file_path = Path(__file__).parent
    6 release_version = file_path.parent.absolute() / 'RELEASE-VERSION'
    7 if release_version.exists ():
    8 with open(release_version, "r") as f:
    9 version = f.read()
    10 assert ps.__version__ == version
    11 else:
    12 ps.__version__ == "development"
  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Michael Kuron mentioned in commit e720af7a

    mentioned in commit e720af7a

  • Markus Holzer mentioned in merge request lbmpy!56 (merged)

    mentioned in merge request lbmpy!56 (merged)

  • Please register or sign in to reply
    Loading