Skip to content
Snippets Groups Projects
Commit 0f66f6b1 authored by David Hendriks's avatar David Hendriks
Browse files

added coverage badge

parent 663fbcf8
No related branches found
No related tags found
No related merge requests found
include Makefile include Makefile
include src/*.c include src/*.c
include include/*.h include include/*.h
\ No newline at end of file include README.md
# Python module for binary_c # Python module for binary_c
Coverage: ![alt text](coverage.svg)
Based on a original work by Jeff Andrews (can be found in old_solution/ directory) Based on a original work by Jeff Andrews (can be found in old_solution/ directory)
updated and extended for Python3 by Robert Izzard, David hendriks updated and extended for Python3 by Robert Izzard, David hendriks
......
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="a">
<rect width="99" height="20" rx="3" fill="#fff"/>
</mask>
<g mask="url(#a)">
<path fill="#555" d="M0 0h63v20H0z"/>
<path fill="#e05d44" d="M63 0h36v20H63z"/>
<path fill="url(#b)" d="M0 0h99v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
<text x="31.5" y="14">coverage</text>
<text x="80" y="15" fill="#010101" fill-opacity=".3">5%</text>
<text x="80" y="14">5%</text>
</g>
</svg>
...@@ -37,7 +37,6 @@ def check_version(installed_binary_c_version, required_binary_c_versions): ...@@ -37,7 +37,6 @@ def check_version(installed_binary_c_version, required_binary_c_versions):
) )
assert installed_binary_c_version in required_binary_c_versions, message assert installed_binary_c_version in required_binary_c_versions, message
def execute_make(): def execute_make():
""" """
Function to execute the makefile. Function to execute the makefile.
...@@ -155,10 +154,9 @@ INCLUDE_DIRS = ( ...@@ -155,10 +154,9 @@ INCLUDE_DIRS = (
"include", "include",
] ]
+ BINARY_C_INCDIRS + BINARY_C_INCDIRS
+ [os.path.join(GSL_DIR, "include")]
if GSL_DIR
else []
) )
if GSL_DIR:
INCLUDE_DIRS += [os.path.join(GSL_DIR, "include")]
# LIBRARIES = ["binary_c"] + BINARY_C_LIBS + ["binary_c_python_api"] # LIBRARIES = ["binary_c"] + BINARY_C_LIBS + ["binary_c_python_api"]
LIBRARIES = ["binary_c"] + BINARY_C_LIBS LIBRARIES = ["binary_c"] + BINARY_C_LIBS
...@@ -230,7 +228,7 @@ class CustomBuildCommand(distutils.command.build.build): ...@@ -230,7 +228,7 @@ class CustomBuildCommand(distutils.command.build.build):
setup( setup(
name="binarycpython", name="binarycpython",
version="0.2.4", version="0.2.6",
description="""This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard and collaborators. Based on the initial set up by Jeff andrews.""".format( description="""This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard and collaborators. Based on the initial set up by Jeff andrews.""".format(
",".join(REQUIRED_BINARY_C_VERSIONS), ",".join(REQUIRED_BINARY_C_VERSIONS),
",".join(REQUIRED_BINARY_C_VERSIONS), ",".join(REQUIRED_BINARY_C_VERSIONS),
...@@ -254,7 +252,7 @@ setup( ...@@ -254,7 +252,7 @@ setup(
"binarycpython.core", "binarycpython.core",
"binarycpython.tests", "binarycpython.tests",
], ],
install_requires=["numpy", "pytest", "h5py", "pathos", "pandas", "astropy"], install_requires=["numpy", "pytest", "h5py", "pathos", "pandas", "astropy", "matplotlib"],
include_package_data=True, include_package_data=True,
ext_modules=[BINARY_C_PYTHON_API_MODULE], # binary_c must be loaded ext_modules=[BINARY_C_PYTHON_API_MODULE], # binary_c must be loaded
classifiers=[ classifiers=[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment