Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved tests to be inside package. #18

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#.gitignore for Python, from gitHub

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ install:
- "pip install -r requirements.txt"
- python setup.py install
script:
- make test
- pytest --pyargs hrds
#after_success:
# - coveralls #--config_file .coveragerc
2 changes: 2 additions & 0 deletions hrds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

"""

__version__ = "0.1.0"

from .raster import RasterInterpolator # NOQA
from .raster_buffer import CreateBuffer # NOQA
from .hrds import HRDS # NOQA
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
54 changes: 37 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
import setuptools

DESCRIPTION = """
hrds is a python package for obtaining points from a set of raster at
different resolutions. You can request a point (or list of points) and
hrds will return a value based on the highest resolution dataset (as
defined by the user) available at that point, blending datasets in a
buffer region to ensure consistancy.
"""


def get_version():
"""
kludgy, but lets you set version in one place, and have it in the
package
"""
with open("hrds/__init__.py") as initfile:
for line in initfile:
parts = line.strip().split("=")
if parts[0].strip() == "__version__":
version = parts[1].strip().strip("'").strip('"')
return version
raise ValueError("no __version__ defined in package __init__")


setuptools.setup(name='hrds',
version='0.1',
author='Jon Hill',
author_email='jon.hill@york.ac.uk',
description="hrds is a python package for obtaining points from a set of raster at different resolutions."+
"You can request a point (or list of points) and hrds will return a value based on"+
"the highest resolution dataset (as defined by the user) available at that point, blending"+
"datasets in a buffer region to ensure consistancy.",
url='https://github.com/stephankramer/uptide',
packages = setuptools.find_packages(),
keywords = ['raster', 'gis', 'modelling'],
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering'],
)
version=get_version(),
author='Jon Hill',
author_email='jon.hill@york.ac.uk',
description=DESCRIPTION,
url='https://github.com/stephankramer/uptide',
packages=setuptools.find_packages(),
keywords=['raster', 'gis', 'modelling'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering'],
)