Skip to content
Snippets Groups Projects
Unverified Commit e00d6aea authored by jlaura's avatar jlaura Committed by GitHub
Browse files

Adds __version__ attribute (#35)

* Refactors out bad class attribute

* Adds dynamic versioning
parent 761e1431
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ extensions = [generate_extension('usgscam.genericframe', ['usgscam/genericframe.
setup(
name='usgscam',
version='0.1.0',
version='0.1.1',
ext_modules=cythonize(extensions),
description='Cython wrapper to the USGS MDIS Camera Model',
author='Jay Laura',
......
......@@ -35,7 +35,6 @@ class TestCassiniNAC:
class TestMdisWac:
@pytest.mark.parametrize('image, ground',[
((512, 512, 0), (-73589.5516508502, 562548.342040933, 2372508.44060771)),
......
from pkg_resources import get_distribution, DistributionNotFound
import os.path
try:
_dist = get_distribution('autocnet')
# Normalize case for Windows systems
dist_loc = os.path.normcase(_dist.location)
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'autocnet')):
# not installed, but there is another version that *is*
raise DistributionNotFound
except DistributionNotFound:
__version__ = 'Please install this project with setup.py'
else:
__version__ = _dist.version
import usgscam.genericframe
import usgscam.orex
import usgscam.genericls
#from usgscam import mdis
#from usgscam import orex
import usgscam.orex
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment