Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ max-line-length = 100


ignore = B902, D401, D100

# D103 - Missing docstring in public function
#
# Ignore docstrings requirement in tests

per-file-ignores = tests/*:D103
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs/.generated/

src/test.py

psi_j_python.egg-info/
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ typecheck:
.PHONY: stylecheck
stylecheck:
flake8 src
flake8 tests

.PHONY: check
check: typecheck stylecheck
.PHONY: checks
checks: typecheck stylecheck


.PHONY: genautodocs
Expand Down
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
from setuptools import setup, find_packages

if __name__ == "__main__":
if __name__ == '__main__':
setup(
name="jpsi-python",
version="0.1",
name='psi-j-python',
version='0.1',

description='''This is an implementation of the J/PSI (Portable Submission Interface for Jobs)
specification.''',

author='The ExaWorks Team',
author_email='hategan@mcs.anl.gov',

url='https://github.com/exaworks/jpsi-python',
url='https://github.com/exaworks/psi-j-python',

classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
),


packages={"jpsi-python": "src"},
package_dir={"jpsi-python": "src"},
packages=setuptools.find_packages(where='src'),
package_dir={'': 'src'},

package_data={
'': ['README.md', 'LICENSE'],
'jpsi-python': ['config.yaml.sample']
'psi-j-python': ['*.sh']
},


Expand All @@ -35,4 +35,5 @@

install_requires=[
],
python_requires='>=3.6',
)
12 changes: 12 additions & 0 deletions tests/run_local_job.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is meant as a simple test file to check if psi/j was installed successfully

from psi.j import Job, JobExecutor, JobSpec


if __name__ == '__main__':
job = Job(JobSpec(executable='/bin/date'))
exec = JobExecutor.get_instance('local')
exec.submit(job)
print('Job submitted')
status = job.wait()
print('Job done: {}'.format(status))