-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from fispact/move_tests
Moved tests out of package and fixes to pypi setup.
- Loading branch information
Showing
21 changed files
with
61 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[run] | ||
omit = pypact/tests/* | ||
omit = tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[pytest] | ||
addopts = --cov-config .coveragerc --cov=./pypact | ||
python_files = pypact/tests/testsuite.py | ||
python_files = tests/testsuite.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,24 @@ | |
|
||
|
||
setup(name='pypact', | ||
version='1.1.0', | ||
version='1.1.1', | ||
description='The package for reading and manipulating the fispact output text file.', | ||
url='https://github.com/fispact/pypact', | ||
author='UKAEA', | ||
author_email='[email protected]', | ||
license='Apache License 2.0', | ||
packages=[ | ||
'pypact' | ||
'pypact', | ||
'pypact.analysis', | ||
'pypact.library', | ||
'pypact.output', | ||
'pypact.tools', | ||
'pypact.util' | ||
], | ||
install_requires=[], | ||
python_requires='>=3', | ||
scripts=['pypact/tools/fispactconverter.py'], | ||
setup_requires=['pytest-runner'], | ||
test_suite='pypact.tests.testsuite', | ||
test_suite='tests.testsuite', | ||
tests_require=['pytest'], | ||
zip_safe=False) |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
pypact/tests/output/baseoutputtest.py → tests/output/baseoutputtest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
pypact/tests/output/doseratetest.py → tests/output/doseratetest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pypact/tests/output/nuclidestest.py → tests/output/nuclidestest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
pypact/tests/output/outputtest.py → tests/output/outputtest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
pypact/tests/output/rundatatest.py → tests/output/rundatatest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
pypact/tests/output/timesteptest.py → tests/output/timesteptest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
|
||
from tests.util.filetest import FileUnitTest | ||
from tests.util.linestest import LinesUnitTest | ||
from tests.util.numericaltest import NumericalUnitTest | ||
from tests.util.propertyfindertest import PropertyFinderUnitTest | ||
from tests.output.doseratetest import DoseRateUnitTest | ||
from tests.output.rundatatest import RunDataUnitTest | ||
from tests.output.nuclidestest import NuclidesUnitTest | ||
from tests.output.timesteptest import TimeStepUnitTest | ||
from tests.output.outputtest import OutputUnitTest | ||
|
||
def main(): | ||
unittest.TextTestRunner(verbosity=3).run(unittest.TestSuite()) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
pypact/tests/util/propertyfindertest.py → tests/util/propertyfindertest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
python3 setup.py test | ||
python3 setup.py sdist | ||
python3 setup.py bdist_wheel | ||
twine upload dist/* |