Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
0e484d10
Commit
0e484d10
authored
Feb 02, 2014
by
William Tisäter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn build.sh into a Makefile
parent
093d3771
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
32 deletions
+27
-32
Makefile
+23
-0
build.sh
+0
-32
requirements.txt
+4
-0
No files found.
Makefile
0 → 100644
View file @
0e484d10
.PHONY
:
docs
all
:
test docs
test
:
@
echo
"Downloading test databases"
rm
-rf
maxmind-geoip-samples.tar.gz tests/data
;
mkdir
-p
tests/data
curl
-s
https://www.defunct.cc/maxmind-geoip-samples.tar.gz |
tar
-zx
-C
tests
@
echo
"Testing local state"
@
tox
--version
>
/dev/null
||
(
echo
"Requires tox - install requirements.txt"
;
exit
1
)
tox
docs
:
@
echo
"Building documentation"
make
-C
docs clean
make
-C
docs html
clean
:
@
echo
"Cleaning doc, test and cache files"
find
.
-name
*
.pyc
-delete
rm
-rf
pygeoip-
*
pygeoip.egg-info
build.sh
deleted
100755 → 0
View file @
093d3771
#!/bin/bash
function
warning
{
echo
"Warning:
$1
"
;
}
function
error
{
echo
"Error:
$1
"
1>&2
;
exit
1
;
}
pushd
$(
dirname
$0
)
if
[
-z
"
$(
virtualenv
--version
)
"
]
;
then
error
"Missing virtualenv binary"
fi
if
[
!
-d
venv
]
;
then
virtualenv venv
||
error
"virtualenv failed"
venv/bin/pip install tox nose
||
error
"pip failed"
fi
if
[
!
-d
tests/data
]
;
then
pushd
tests
wget https://www.defunct.cc/maxmind-geoip-samples.tar.gz
tar
-zxvf
maxmind-geoip-samples.tar.gz
unlink maxmind-geoip-samples.tar.gz
popd
fi
venv/bin/tox
||
error
"tox failed"
if
[
-z
"
$(
pandoc
--version
)
"
]
;
then
warning
"Skipping Markdown to reStructuredText translation"
else
pandoc
-f
markdown
-t
rst
-o
README.rst README.md
||
error
"pandoc failed"
fi
popd
requirements.txt
0 → 100644
View file @
0e484d10
tox
nose
Sphinx
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment