Pip supports installation from private git repos. The command to install pip in a virtualenv (or when the account has to git):
pip install git+ssh://git@github.com/vrajat/quboletsdb.git@<version>
If you want to install using root, you need access to git and consequently the correct ssh keys. Create a file to override ssh with the following bash command.
ssh -i /home/<user>/.ssh/id_rsa $@
On aws machines, user will be ec2-user. Login as root.
export GIT_SSH=/home/<user>/ssh_wrapper
pip install git+ssh://git@github.com/vrajat/quboletsdb.git@<version>
You'll need to store S3 Access keys in ~/.qdsrc. The format is:
[default]
access_key = <access key>
secret_key = <secret key>
-
Make sure you have virtualenv setup.
-
Create a virtualenv for this project.
-
Ignore egg-info in git.
-
Activate the virtualenv every time. (Ugh! One more thing to forget)
-
Change to source directory
-
Run develop script
mkdir ~/python-envs; virtualenv ~/python-envs/tsdb;
source ~/python-envs/tsdb/bin/activate; cd ~/src/tsdb/
python setup.py develop;
Version numbers have major.minor.patch parts. All are natural numbers. For bug fixes please increment patch numbers. For new features please increment major or minor versions as per [Semantic Versions] (http://semver.org)
-
Create a git tag with the version number. The format is major.minor.patch
-
Git Push to let everyone know.
-
Make profit!
cd [quboletsdb checkout dir]
git tag -a 0.2.4 -m '0.2.4' #For e.g.
git push --tags -
If for some reason you see the string "dirty" in the version string even though you are sure there are no uncommitted changes in your code, run:
git update-index --refresh