Commit fd5801f5 authored by Jakob Luettgau's avatar Jakob Luettgau
Browse files

Clean up setup.py, add target for devenv, extend ignore patterns for git/pytest

parent 24029dcc
...@@ -21,6 +21,7 @@ parts/ ...@@ -21,6 +21,7 @@ parts/
sdist/ sdist/
var/ var/
wheels/ wheels/
wheelhouse/
*.egg-info/ *.egg-info/
.installed.cfg .installed.cfg
*.egg *.egg
......
...@@ -28,6 +28,13 @@ clean-test: # remove test and coverage artifacts ...@@ -28,6 +28,13 @@ clean-test: # remove test and coverage artifacts
rm -rf htmlcov/ rm -rf htmlcov/
rm -rf .pytest_cache rm -rf .pytest_cache
clean-devenv:
rm -rf venv
devenv:
python3 -m venv venv
source venv/bin/activate && pip install -r requirements_dev.txt
lint: # check style with flake8 lint: # check style with flake8
flake8 darshan tests flake8 darshan tests
......
...@@ -23,5 +23,5 @@ ignore = E501 E231 E265 E303 E271 E272 ...@@ -23,5 +23,5 @@ ignore = E501 E231 E265 E303 E271 E272
test = pytest test = pytest
[tool:pytest] [tool:pytest]
collect_ignore = ['setup.py'] collect_ignore = ['setup.py', 'playground/*']
...@@ -21,26 +21,12 @@ if '--with-extension' in sys.argv: ...@@ -21,26 +21,12 @@ if '--with-extension' in sys.argv:
'darshan.extension', 'darshan.extension',
#optional=True, #optional=True,
sources=['darshan/extension.c'], sources=['darshan/extension.c'],
library_dirs=['/usr/lib64/atlas/', '/usr/lib/atlas'],
include_dirs=['/usr/include'], include_dirs=['/usr/include'],
libraries=['darshan-util'] libraries=['darshan-util']
)) ))
sys.argv.remove('--with-extension') sys.argv.remove('--with-extension')
#ext_modules.append(Extension(
# 'darshan.extension',
# #optional=True,
# sources=['darshan/extension.c'],
# library_dirs=['/usr/lib64/atlas/', '/usr/lib/atlas'],
# include_dirs=['/usr/include'],
# libraries=['darshan-util']
# ))
setup( setup(
author='', author='',
author_email='', author_email='',
...@@ -56,7 +42,7 @@ setup( ...@@ -56,7 +42,7 @@ setup(
'Programming Language :: Python :: 3.9' 'Programming Language :: Python :: 3.9'
], ],
description="Python tools to interact with darshan log records of HPC applications.", description="Python tools to interact with darshan log records of HPC applications.",
#long_description=readme, long_description=readme,
long_description="PyDarshan", long_description="PyDarshan",
ext_modules = ext_modules, ext_modules = ext_modules,
install_requires=requirements, install_requires=requirements,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment