-
Notifications
You must be signed in to change notification settings - Fork 14
/
HACKING
76 lines (53 loc) · 1.95 KB
/
HACKING
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
General Information
===================
* URL: http://incubator.apache.org/libcloud/devinfo.html
Git Repositories
===================
* Official Git Mirror: git://git.apache.org/libcloud.git
* Github Mirror: git://github.com/apache/libcloud.git
Using The Git-SVN Bridge (For Committers)
=========================================
$ git clone git://git.apache.org/libcloud libcloud
$ cd libcloud
$ curl http://git.apache.org/authors.txt > .git/authors.txt
$ git config svn.authorsfile ".git/authors.txt"
# Optionally, set your Apache commiter info, if different from global
$ git config user.name "Your Name"
$ git config user.email "[email protected]"
$ git svn init \
--prefix=origin/ \
--tags=tags \
--trunk=trunk \
--branches=branches \
https://svn.apache.org/repos/asf/incubator/libcloud
$ git svn rebase
To push commits back to SVN:
$ git svn dcommit
Testing
=======
Libcloud includes an example secrets.py file at:
test/secrets.py-dist
To run the test cases, you most likely want to run:
$ cp test/secrets.py-dist test/secrets.py
This is done to prevent accidental commits of a developers provider credentials.
To run all suites:
libcloud$ python setup.py test
running test
................................................................................................
----------------------------------------------------------------------
Ran 96 tests in 0.182s
OK
To run specific tests:
libcloud$ PYTHONPATH=. python test/test_base.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.001s
OK
Making a release
=======
We have a script that runs the required setup.py commands and then hashes
and signs the files. To run it:
cd dist
./release.sh -u [email protected]
This should result in a set of apache-libcloud-${VERSION}.{tar.bz2,zip}{,asc,md5,sha1}
files that are suitable to be uploaded for a release.