Skip to content

Commit f2d68e2

Browse files
authored
Merge pull request #44 from openpathsampling/release-0.2.1
Release 0.2.1
2 parents 30bb0d9 + 6a20615 commit f2d68e2

File tree

8 files changed

+25
-13
lines changed

8 files changed

+25
-13
lines changed

.github/workflows/test-suite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: "Tests"
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77
- stable
88
push:
99
branches:
10-
- master
10+
- main
1111
tags:
1212
- "v*"
1313
schedule:

.readthedocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
3+
python:
4+
version: 3.7
5+
install:
6+
- requirements: docs/requirements.txt
7+
- method: pip
8+
path: .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/openpathsampling/openpathsampling-cli.svg?branch=master)](https://travis-ci.com/openpathsampling/openpathsampling-cli)
1+
[![Tests](https://github.com/openpathsampling/openpathsampling-cli/workflows/Tests/badge.svg)](https://github.com/openpathsampling/openpathsampling-cli/actions?query=workflow%3ATests)
22
[![Documentation Status](https://readthedocs.org/projects/openpathsampling-cli/badge/?version=latest)](https://openpathsampling-cli.readthedocs.io/en/latest/?badge=latest)
33
[![Coverage Status](https://codecov.io/gh/openpathsampling/openpathsampling-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/openpathsampling/openpathsampling-cli)
44
[![Maintainability](https://api.codeclimate.com/v1/badges/0d1ee29e1a05cfcdc01a/maintainability)](https://codeclimate.com/github/openpathsampling/openpathsampling-cli/maintainability)

docs/plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ If the plugin is part of a larger Python package, or if it is important to
8989
track version numbers or to be able to change which plugins are installed
9090
in particular Python environments, the namespace distribution mechanism is a
9191
better choice. We use `native namespace packages`_, which is a standard way
92-
of making plugins in Python. Plugins should be in the ``paths_cli.plugins``
92+
of making plugins in Python. Plugins should be in the ``paths_cli_plugins``
9393
namespace.
9494

9595
.. _native namespace packages:

example_plugins/one_pot_tps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
N_STEPS_MC, INIT_SNAP)
44
from paths_cli.commands.visit_all import visit_all_main
55
from paths_cli.commands.equilibrate import equilibrate_main
6-
from paths_cli.commands.pathsampling import path_sampling_main
6+
from paths_cli.commands.pathsampling import pathsampling_main
77

88

99
@click.command("one-pot-tps",
@@ -42,7 +42,7 @@ def one_pot_tps_main(output_storage, states, engine, engine_hot,
4242
equil_extra = 0
4343
equil_set, _ = equilibrate_main(None, scheme, trajectory,
4444
equil_multiplier, equil_extra)
45-
return path_sampling_main(output_storage, scheme, equil_set, nsteps)
45+
return pathsampling_main(output_storage, scheme, equil_set, nsteps)
4646

4747
CLI = one_pot_tps
4848
SECTION = "Workflow"

paths_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def app_dir_plugins(posix):
3434
FilePluginLoader(commands),
3535
FilePluginLoader(app_dir_plugins(posix=False)),
3636
FilePluginLoader(app_dir_plugins(posix=True)),
37-
NamespacePluginLoader('paths_cli.plugins')
37+
NamespacePluginLoader('paths_cli_plugins')
3838
]
3939

4040
plugins = sum([loader() for loader in self.plugin_loaders], [])

paths_cli/plugin_management.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,15 @@ def iter_namespace(ns_pkg):
120120
return pkgutil.iter_modules(ns_pkg.__path__,
121121
ns_pkg.__name__ + ".")
122122

123-
ns = importlib.import_module(self.search_path)
124-
candidates = [
125-
importlib.import_module(name)
126-
for _, name, _ in iter_namespace(ns)
127-
]
123+
try:
124+
ns = importlib.import_module(self.search_path)
125+
except ModuleNotFoundError:
126+
candidates = []
127+
else:
128+
candidates = [
129+
importlib.import_module(name)
130+
for _, name, _ in iter_namespace(ns)
131+
]
128132
return candidates
129133

130134
@staticmethod

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = openpathsampling-cli
3-
version = 0.2.0
3+
version = 0.2.1
44
# version should end in .dev0 if this isn't to be released
55
description = Command line tool for OpenPathSampling
66
long_description = file: README.md

0 commit comments

Comments
 (0)