| OLD | NEW |
| 1 | 1 |
| 2 # Machine Generated - do not edit! | 2 # Machine Generated - do not edit! |
| 3 | 3 |
| 4 # This file is produced when the main "version.py update" command is run. That | 4 # This file is produced when the main "version.py update" command is run. That |
| 5 # command copies this file to all sub-packages which contain | 5 # command copies this file to all sub-packages which contain |
| 6 # setup.py. Configuration is maintain in version.yaml at the project's top | 6 # setup.py. Configuration is maintain in version.yaml at the project's top |
| 7 # level. | 7 # level. |
| 8 | 8 |
| 9 def get_versions(): | 9 def get_versions(): |
| 10 return tag_version_data(raw_versions(), """version.yaml""") | 10 return tag_version_data(raw_versions(), """version.yaml""") |
| 11 | 11 |
| 12 def raw_versions(): | 12 def raw_versions(): |
| 13 return json.loads(""" | 13 return json.loads(""" |
| 14 { | 14 { |
| 15 "post": "1", | 15 "post": "3", |
| 16 "version": "0.24", | 16 "version": "0.24", |
| 17 "rc": "0" | 17 "rc": "0" |
| 18 } | 18 } |
| 19 """) | 19 """) |
| 20 | 20 |
| 21 import json | 21 import json |
| 22 import os | 22 import os |
| 23 import subprocess | 23 import subprocess |
| 24 | 24 |
| 25 try: | 25 try: |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 elif int(version_data.get("rc", 0)) > 0: | 92 elif int(version_data.get("rc", 0)) > 0: |
| 93 pep440 += ".rc" + version_data["rc"] | 93 pep440 += ".rc" + version_data["rc"] |
| 94 | 94 |
| 95 if version_data.get("dev", 0): | 95 if version_data.get("dev", 0): |
| 96 pep440 += ".dev" + str(version_data["dev"]) | 96 pep440 += ".dev" + str(version_data["dev"]) |
| 97 | 97 |
| 98 version_data["pep440"] = pep440 | 98 version_data["pep440"] = pep440 |
| 99 | 99 |
| 100 return version_data | 100 return version_data |
| OLD | NEW |