Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Apr 24, 2017
0 parents commit 15cef43
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include orangecontrib/gep/tutorials/*.ows
include orangecontrib/geo/widgets/icons/*
include orangecontrib/geo/widgets/_leaflet/*
include orangecontrib/geo/geojson/*
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Orange3-Geo
===========

[Orange] add-on for dealing with geography and geo-location.

[Orange]: http://orange.biolab.si
3 changes: 3 additions & 0 deletions orangecontrib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__import__("pkg_resources").declare_namespace(__name__)
# orangecontrib is a namespace modules shared by multiple Orange add-on so it
# needs to declare namespace.
Empty file added orangecontrib/geo/__init__.py
Empty file.
23 changes: 23 additions & 0 deletions orangecontrib/geo/widgets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Category metadata.

# Category icon show in the menu
ICON = "icons/category.svg"

# Background color for category background in menu
# and widget icon background in workflow.
BACKGROUND = "#99c9a4"

# Location of widget help files.
WIDGET_HELP_PATH = (
# Used for development.
# You still need to build help pages using
# make htmlhelp
# inside doc folder
("{DEVELOP_ROOT}/doc/build/htmlhelp/index.html", None),

# Online documentation url, used when the local documentation is available.
# Url should point to a page with a section Widgets. This section should
# includes links to documentation pages of each widget. Matching is
# performed by comparing link caption to widget name.
("http://orange3-geo.readthedocs.io/en/latest/", "")
)
96 changes: 96 additions & 0 deletions orangecontrib/geo/widgets/icons/category.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
88 changes: 88 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#!/usr/bin/env python

from os import path
from setuptools import setup, find_packages


VERSION = "0.1.0"

ENTRY_POINTS = {
# Entry points that marks this package as an orange add-on. If set, addon will
# be shown in the add-ons manager even if not published on PyPi.
'orange3.addon': (
'geo = orangecontrib.geo',
),
# Entry point used to specify packages containing widgets.
'orange.widgets': (
# Syntax: category name = path.to.package.containing.widgets
# Widget category specification can be seen in
# orangecontrib/example/widgets/__init__.py
'Geo = orangecontrib.geo.widgets',
),
# Register widget help
"orange.canvas.help": (
'html-index = orangecontrib.geo.widgets:WIDGET_HELP_PATH',)
}


def _discover_tests():
import unittest
return unittest.defaultTestLoader.discover('orangecontrib.geo',
pattern='test_*.py',
top_level_dir='.')


if __name__ == '__main__':
setup(
name='Orange3-Geo',
version=VERSION,
description="Orange add-on for dealing with geography and geo-location.",
long_description=open(path.join(path.dirname(__file__), 'README.md')).read(),
license='GPL-3.0',
packages=find_packages(),
package_data={
'orangecontrib.geo.widgets': ['icons/*',
'_leaflet/*'],
},
include_package_data=True,
install_requires=[
'Orange3',
'scikit-learn',
'pandas',
'scipy>=0.17',
],
entry_points=ENTRY_POINTS,
keywords=(
'orange3 add-on',
'geographic',
'visualization',
'choropleth',
'map',
'cartography',
'location',
'position',
'geolocation',
'geoposition',
'latitude',
'longitude',
),
namespace_packages=["orangecontrib"],
test_suite="setup._discover_tests",
zip_safe=False,
author='Biolab, UL FRI',
author_email='info@biolab.si',
url="https://github.com/biolab/orange3-geo",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: Qt',
'Environment :: Plugins',
'Programming Language :: Python',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
],
)

0 comments on commit 15cef43

Please sign in to comment.