-
Notifications
You must be signed in to change notification settings - Fork 8
/
developers.txt
80 lines (61 loc) · 2.24 KB
/
developers.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Git Branching Model
===================
I'm using the Git branching model described
[here](http://nvie.com/posts/a-successful-git-branching-model/).
Testing
=======
python setup.py build_ext --inplace
How To Release a New Version
============================
When you want release a new version, follow these directions. First, create a
release branch by branching off of the develop branch (substitute in the
appropriate version number):
git checkout -b release-2.0.1 develop
Next, bump the version number, if it hasn't already been bumped. From the root
of the git repository run these commands (again, substituting the appropriate
version number):
echo "__version__ = '2.0.1'" > fdint/version.py
git commit -am "bump version to 2.0.1"
Now is a good time to install and test in a virtualenv, to make sure you
haven't missed any bugs. First, test installing without Cython:
python setup.py sdist
cd dist
tar -xvzf fdint-2.0.1.tar.gz
virtualenv venv
source venv/bin/activate
pip install numpy
cd fdint-2.0.1
python setup.py install
cd ..
python -m fdint.tests
deactivate
rm -rf venv
Next, test installing with Cython:
virtualenv venv
source venv/bin/activate
pip install numpy Cython
cd fdint-2.0.1
python setup.py install
cd ..
python -m fdint.tests
deactivate
rm -rf fdint-2.0.1 venv
Go ahead and fix any bugs you find in the release branch, and we'll merge them
back into the develop branch later. Next, merge the changes from the release
branch into the master branch, and tag the release:
git checkout master
git merge --no-ff release-2.0.1
git tag -a v2.0.1
git push origin master
Then run the following commands from the root of the git repository to upload
the release to PyPI:
python setup.py sdist
python setup.py register sdist upload
Now go to the github page to "create a release" and upload the 'tar.gz' file
from the 'dist' directory.
Congratulations, you're done releasing the new version of fdint!
If any changes were made during the release branch, merge the release branch
into the develop branch, and then delete the release branch:
git checkout develop
git merge --no-ff release-2.0.1
git branch -d release-2.0.1