From 5af069b617c437785e0be3d4d4414d9dfe479168 Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Mon, 10 Feb 2014 15:02:39 -0800 Subject: [PATCH] Add __all__ lists to all modules. --- __pkg_metadata__.py | 5 +++++ ecget/SOG_formatters.py | 5 +++++ ecget/SOG_weather.py | 5 +++++ ecget/main.py | 5 +++++ ecget/river.py | 5 +++++ ecget/weather_amqp.py | 5 +++++ ecget/weather_datamart.py | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/__pkg_metadata__.py b/__pkg_metadata__.py index 6484834..2569aed 100644 --- a/__pkg_metadata__.py +++ b/__pkg_metadata__.py @@ -14,6 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. """ +__all__ = [ + 'PROJECT', 'DESCRIPTION', 'VERSION', 'DEV_STATUS', +] + + PROJECT = 'ECget' DESCRIPTION = 'Get Environment Canada Weather & Hydrometric Data' VERSION = '0.1' diff --git a/ecget/SOG_formatters.py b/ecget/SOG_formatters.py index f2ecf36..8d18a6a 100644 --- a/ecget/SOG_formatters.py +++ b/ecget/SOG_formatters.py @@ -17,6 +17,11 @@ import abc +__all__ = [ + 'FormatterBase', 'DailyValue', 'HourlyValue', 'HourlyWindComponents', +] + + class FormatterBase(object): """Base class for SOG forcing file data formatters. """ diff --git a/ecget/SOG_weather.py b/ecget/SOG_weather.py index 6b8c3f8..0255d8e 100644 --- a/ecget/SOG_weather.py +++ b/ecget/SOG_weather.py @@ -26,6 +26,11 @@ from . import weather_amqp +__all__ = [ + 'SandHeadsWind', +] + + class SandHeadsWind(cliff.command.Command): """Get Sand Heads wind data via AMQP and output hourly component values for SOG. diff --git a/ecget/main.py b/ecget/main.py index 6061d4a..c61f037 100644 --- a/ecget/main.py +++ b/ecget/main.py @@ -27,6 +27,11 @@ from . import __pkg_metadata__ +__all__ = [ + 'ECgetApp', 'main', +] + + class ECgetApp(cliff.app.App): def __init__(self): super(ECgetApp, self).__init__( diff --git a/ecget/river.py b/ecget/river.py index 65ea45b..b1e2de8 100644 --- a/ecget/river.py +++ b/ecget/river.py @@ -27,6 +27,11 @@ import stevedore.driver +__all__ = [ + 'RiverFlow', 'RiverDataBase', 'RiverDischarge', +] + + class RiverFlow(cliff.command.Command): """Get EC river flow data and output daily average value(s) for SOG. diff --git a/ecget/weather_amqp.py b/ecget/weather_amqp.py index 5ceab72..85c68c0 100644 --- a/ecget/weather_amqp.py +++ b/ecget/weather_amqp.py @@ -24,6 +24,11 @@ import kombu.mixins +__all__ = [ + 'DatamartConsumer', 'get_queue_name', +] + + class DatamartConsumer(kombu.mixins.ConsumerMixin): """Consumer for EC CMC Datamart AMQP topic exchange service. diff --git a/ecget/weather_datamart.py b/ecget/weather_datamart.py index 3b38794..82cd306 100644 --- a/ecget/weather_datamart.py +++ b/ecget/weather_datamart.py @@ -22,6 +22,11 @@ import xml.etree.ElementTree as ET +__all__ = [ + 'DatamartWeatherBase', 'DatamartWeather', +] + + class DatamartWeatherBase(object): """Base class for driver plug-in to get weather data from an Environment Canada CMC Datamart URL.