Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
69 lines (63 loc) · 1.47 KB
/
Copy pathMakefile
File metadata and controls
69 lines (63 loc) · 1.47 KB
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
prep:
@echo
# Install needed packages
sudo apt-get install subversion fakeroot python-setuptools python-subversion
#
@echo
# Check that the person has .pypirc
@if [ !-e~/.pypirc ];then\
echo"Please create a ~/.pypirc with the following contents:";\
echo"[server-login]";\
echo"username:google_opensource";\
echo"password:<see valentine>";\
fi
#
@echo
# FIXME(tansell): Check that the person has .dputrc for PPA
clean:
# Clean up any build files.
python setup.py clean --all
#
# Clean up the debian stuff
fakeroot ./debian/rules clean
#
# Clean up everything else
rm MANIFEST ||true
rm -rf build-*
#
# Clean up the egg files
rm -rf *egg*
#
# Remove dist
rm -rf dist
dist:
# Generate the tarball based on MANIFEST.in
python setup.py sdist
#
# Build the debian packages
fakeroot ./debian/rules binary
mv ../python-gflags*.deb ./dist/
#
# Build the python Egg
python setup.py bdist_egg
#
@echo
@echo "Files to upload:"
@echo "--------------------------"
@ls -l ./dist/
push:
# Send the updates to svn
# Upload the source package to code.google.com
- /home/build/opensource/tools/googlecode_upload.py \
-p python-gflags ./dist/*
#
# Upload the package to PyPi
- python setup.py sdist upload
- python setup.py bdist_egg upload
#
# Upload the package to the ppa
# FIXME(tansell): dput should run here
check:
# Run all the tests.
fortestin tests/*.py;do PYTHONPATH=. python $$test ||exit 1;done
.PHONY: prep dist clean push check