-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
37 lines (32 loc) · 742 Bytes
/
Rakefile
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
desc "Delete created files and directories."
task :clean do
rm_rf "build"
rm_rf "dist"
rm_f "MANIFEST"
end
desc "Run tests."
task :test do
system "nosetests -v"
end
desc "Run tests on CI server."
task :test_ci do
system "nosetests -v --with-xunit --xunit-file=results.xml"
end
namespace :pypi do
desc "Register the package with PyPI"
task :register => :clean do
system "python setup.py register"
end
desc "Upload a new version to PyPI"
task :upload => :clean do
system "python setup.py sdist upload"
Rake::Task["clean"].reenable
Rake::Task["clean"].invoke
end
end
namespace :docs do
desc "Generate html documentation"
task :html do
system "PYTHONPATH='..' make -C docs clean html"
end
end