Avro
  1. Avro
  2. AVRO-817

Add __version__ to avro/__init__.py

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: python
    • Labels:
      None

      Description

      Currently, there is no way to know which version of avro is installed on my machine. Add a _version_ string to avro/_init_.py

      1. version.patch
        1.0 kB
        Miki Tebeka
      2. version.patch
        0.3 kB
        Miki Tebeka

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          2m 53s 1 Miki Tebeka 06/May/11 20:29
          Patch Available Patch Available Open Open
          9s 1 Miki Tebeka 06/May/11 20:30
          Miki Tebeka made changes -
          Attachment version.patch [ 12480964 ]
          Hide
          Miki Tebeka added a comment -

          Auto generating version with ant

          Show
          Miki Tebeka added a comment - Auto generating version with ant
          Hide
          Joseph Koshy added a comment -

          The methodology used in the patch for AVRO-831 could be used to patch __init__.py, adding in a version number at build time.

          Show
          Joseph Koshy added a comment - The methodology used in the patch for AVRO-831 could be used to patch __init__.py , adding in a version number at build time.
          Joseph Koshy made changes -
          Link This issue is related to AVRO-831 [ AVRO-831 ]
          Hide
          Scott Carey added a comment -

          The top level project pom can run an ant task to change it at branch time, and/or to validate that it matches during 'dist'.
          We could have an action that changes VERSION.txt and anything else required at once.

          Show
          Scott Carey added a comment - The top level project pom can run an ant task to change it at branch time, and/or to validate that it matches during 'dist'. We could have an action that changes VERSION.txt and anything else required at once.
          Hide
          Philip Zeyliger added a comment -

          That approach is a bit of an anti-pattern: you want to be able to point your python path towards the python directory; replacing stuff at build-time is very uncommon in python-land.

          Show
          Philip Zeyliger added a comment - That approach is a bit of an anti-pattern: you want to be able to point your python path towards the python directory; replacing stuff at build-time is very uncommon in python-land.
          Doug Cutting made changes -
          Assignee Miki Tebeka [ miki ]
          Hide
          Doug Cutting added a comment -

          It would be nice if we didn't have to update this by hand with each release. The single place we'd like to update is share/VERSION.txt. The lang/py/build.xml currently replaces the @VERSION@ in setup.py with the contents of share/VERSION.txt. Could we get the version for _init_.py from either setup.py or via replacement as with setup.py?

          Show
          Doug Cutting added a comment - It would be nice if we didn't have to update this by hand with each release. The single place we'd like to update is share/VERSION.txt. The lang/py/build.xml currently replaces the @VERSION@ in setup.py with the contents of share/VERSION.txt. Could we get the version for _ init _.py from either setup.py or via replacement as with setup.py?
          Miki Tebeka made changes -
          Attachment version.patch [ 12478462 ]
          Hide
          Miki Tebeka added a comment -

          Patch for adding _version_

          Show
          Miki Tebeka added a comment - Patch for adding _ version _
          Miki Tebeka made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Miki Tebeka made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10002 ]
          Miki Tebeka created issue -

            People

            • Assignee:
              Miki Tebeka
              Reporter:
              Miki Tebeka
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development