Skip to content

Commit

Permalink
Merge pull request #384 from drewejohnson/r0.9.2
Browse files Browse the repository at this point in the history
REL Release 0.9.2
  • Loading branch information
Andrew Johnson authored Feb 20, 2020
2 parents 35d7b85 + ee5b1c4 commit fd8c3c3
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# |version| and |release|, also used in various other places throughout the
# built documents.

version = "0.9.1"
version = "0.9.2"

# General information about the project.
project = 'serpentTools'
Expand Down
2 changes: 1 addition & 1 deletion serpentTools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from serpentTools.seed import *
from serpentTools.xs import *

__version__ = "0.9.1"
__version__ = "0.9.2"
6 changes: 2 additions & 4 deletions serpentTools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import argparse
from os.path import splitext

import six

import serpentTools
from serpentTools import settings
from serpentTools.messages import info, error
Expand All @@ -21,10 +19,10 @@
_VERB_MAP = {'v': {1: 'info', 2: 'debug'},
'q': {1: 'error', 2: 'critical'}}
_VERB_MSG = {}
for key, items in six.iteritems(_VERB_MAP):
for key, items in _VERB_MAP.items():
_VERB_MSG[key] = ', '.join(
['{}: {}'.format(key * num, value)
for num, value in six.iteritems(items)])
for num, value in items.items()])


def __buildParser():
Expand Down
4 changes: 1 addition & 3 deletions serpentTools/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"""
import re

import six

from serpentTools.messages import SerpentToolsException, debug, deprecated
from serpentTools.parsers.depletion import DepletionReader
from serpentTools.parsers.branching import BranchingReader
Expand Down Expand Up @@ -75,7 +73,7 @@ def inferReader(filePath):
SerpentToolsException
If a reader cannot be inferred
"""
for reg, reader in six.iteritems(REGEXES):
for reg, reader in REGEXES.items():
match = re.match(reg, filePath)
if match and match.group() == filePath:
debug('Inferred reader for {}: {}'
Expand Down
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = serpentTools/_version.py
versionfile_build = serpentTools/_version.py
tag_prefix =

[flake8]
exclude =
.tox,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def getDataFiles():

pythonRequires = ">=3.5,<3.9"

version = "0.9.1"
version = "0.9.2"

setupArgs = {
'name': 'serpentTools',
Expand Down
7 changes: 0 additions & 7 deletions tests/test_meta.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
"""
Test the abstract base class approach upon
which our objects are built.
Most of this is trivial for a set python build,
but since we support flavors of 2 and 3,
we take advantage of :func:`six.add_metaclass`
to properly create the abstract
base classes.
"""

from unittest import TestCase
Expand Down
4 changes: 1 addition & 3 deletions tests/test_parserLevelRead.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Class to test the read commands from serpentTools.parsers"""
import unittest

import six

from serpentTools.messages import SerpentToolsException
from serpentTools.parsers import inferReader, read

Expand Down Expand Up @@ -34,7 +32,7 @@ def test_inferReader(self):
'test_res.m': ResultsReader, 'test_fmtx99.m': FissionMatrixReader,
'test_res': None, 'test.coe_dep.m': DepletionReader
}
for fileP, expectedReader in six.iteritems(expectedClasses):
for fileP, expectedReader in expectedClasses.items():
if expectedReader is None:
with self.assertRaises(SerpentToolsException):
inferReader(fileP)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from unittest import TestCase

import yaml
import six
from serpentTools import settings

from tests import TestCaseWithLogCapture
Expand Down Expand Up @@ -139,7 +138,7 @@ def _writeTestRemoveConfFile(self, settings, filePath, expected, strict):
yaml.dump(settings, out)
with self.rc:
self.rc.loadYaml(filePath, strict)
for key, value in six.iteritems(expected):
for key, value in expected.items():
if isinstance(value, list):
self.assertListEqual(value, self.rc[key])
else:
Expand Down

0 comments on commit fd8c3c3

Please sign in to comment.