Reputation: 129
We're building a python package for our team with a structure similar to the following
pkg_dir
├── setup.py # setup.py for package "pkg"
└── some_module.py
other_dir
└── some_file
some_other_file
And are using the following to install it via pip described here
$ pip install -e "git+https://git.example.com/MyProject.git#egg=MyProject"
There's an option to install it from a Tag like so
$ pip install -e "git+https://git.example.com/[email protected]#egg=MyProject"
The package version is provided in the setup.py file as instructed here
Now, My question is that is there a way to set the version at the time of installation taken directly from the tag name? That way we won't have to manually change the version in the setup.py file, versioning would become as simple as just creating a new Tag.
Thanks.
Upvotes: 0
Views: 588