| Anonymous | Login | 2025-11-08 04:27 CST | ![]() |
| My View | View Issues |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000032 | PyRosetta | [All Projects] Documentation | public | 2012-06-29 18:39 | 2012-08-03 14:04 | ||||
| Reporter | oconchus | ||||||||
| Assigned To | Sergey | ||||||||
| Priority | low | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | All platforms | OS | Any | OS Version | Any | ||||
| Product Version | |||||||||
| Fixed in Version | |||||||||
| Summary | 0000032: No __version__ element in PyRosetta's rosetta package | ||||||||
| Description | To display the PyRosetta version number, I make the following function call: import rosetta rosetta.version() However, many Python packages use the __version__ variable (typically a string) for this purpose e.g. import somepackage somepackage.__version__ The __version__ variable is somewhat standard so maybe we should use this instead. | ||||||||
| Steps To Reproduce | python >> import rosetta >> rosetta.__version__ | ||||||||
| Additional Information | There are active Python style guidelines from Guido on how to implement __version__ for SVN builds: http://www.python.org/dev/peps/pep-0008/#version-bookkeeping [^] The $Revision$ string is filled in by subversion. Moving forward with git, using either 'git-archive' packaging tool or else the 'git describe' command may be useful: http://www.kernel.org/pub/software/scm/git/docs/git-describe.html [^] The --dirty, --tags, and --always options of 'git describe' add useful branch information. | ||||||||
| Tags | PyRosetta | ||||||||
| Application(s) Affected | PyRosetta | ||||||||
| Command Line Used | python | ||||||||
| Developer Options | |||||||||
| Fixed in SVN Version | 49759 | ||||||||
| Attached Files | |||||||||
Notes |
|
|
(0000023) Labonte (Developer) 2012-07-06 13:50 |
__version__ returns a string with the version #; version() continues to return the same paragraph that includes the version number as before. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-06-29 18:39 | oconchus | New Issue | |
| 2012-06-29 18:41 | oconchus | Tag Attached: PyRosetta | |
| 2012-06-29 18:51 | oconchus | Assigned To | => Sergey |
| 2012-06-29 18:51 | oconchus | Status | new => assigned |
| 2012-07-06 13:50 | Labonte | Fixed in SVN Version | => 49759 |
| 2012-07-06 13:50 | Labonte | Note Added: 0000023 | |
| 2012-07-06 13:50 | Labonte | Status | assigned => resolved |
| 2012-07-06 13:50 | Labonte | Resolution | open => fixed |
| 2012-08-03 14:04 | delucasl | Project | Rosetta => PyRosetta |
| Copyright © 2000 - 2012 MantisBT Group |