dvc: refactor package versioning logic

- Use `version.py` to compute a dynamic version stored in `__version__`.
  Version information was scattered across the source code
  (`VERSION_BASE`, `VERSION`, `__version__`, and `version.py`).

- Read `__version__` from `setup.py` and **pin** it using custom
  `build_py` command class.
  This way, we can maintain consistancy between the build version
  and the runtime one.
  Also, this gives us the ability to run `setup.py` without depending on
  on `dvc` itself.

Close #1824
This commit is contained in:
Mr. Outis
2019-04-06 18:06:11 -06:00
parent 2699a47f3e
commit b4d0d37ac8
11 changed files with 108 additions and 95 deletions
-2
View File
@@ -24,8 +24,6 @@ innosetup/config.ini
.coverage
dvc/version.py
*.swp
pip-wheel-metadata/