Skip to content

Commit

Permalink
Merge pull request #99 from brittonsmith/ciupdate
Browse files Browse the repository at this point in the history
testing and python packaging updates
  • Loading branch information
brittonsmith committed Mar 9, 2022
2 parents d0957c6 + e808037 commit 5c09caa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 39 deletions.
44 changes: 8 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ commands:
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
pip install Cython numpy
pip install 'matplotlib<3.3.0'
pip install h5py fastcache flake8 pytest yt
pip install flake8
lint:
description: "Lint."
Expand Down Expand Up @@ -64,7 +62,7 @@ commands:
make
make install
cd ../python
python setup.py develop
pip install -e .[dev]
install-docs-dependencies:
description: "Install dependencies for docs build."
Expand Down Expand Up @@ -133,7 +131,7 @@ executors:
type: string
default: latest
docker:
- image: circleci/python:<< parameters.tag >>
- image: cimg/python:<< parameters.tag >>

jobs:
test-suite:
Expand All @@ -150,22 +148,8 @@ jobs:
steps:
- checkout
- set-env

- restore_cache:
name: "Restore dependencies cache."
key: dependencies-python-<< parameters.tag >>-v3

- install-dependencies

- save_cache:
name: "Save dependencies cache"
key: dependencies-python-<< parameters.tag >>-v3
paths:
- ~/.cache/pip
- ~/venv

- lint

- download-test-data

- install-grackle:
Expand Down Expand Up @@ -202,16 +186,12 @@ workflows:
tests:
jobs:
- test-suite:
name: "Python 3.6 tests"
tag: "3.6.11"

- test-suite:
name: "Python 3.8 tests"
tag: "3.8.5"
name: "Python 3.7 tests"
tag: "3.7.12"

- docs-build:
name: "Docs build"
tag: "3.8.5"
tag: "3.7.12"

weekly:
triggers:
Expand All @@ -222,18 +202,10 @@ workflows:
only:
- master
jobs:
- test-suite:
name: "Python 3.6 tests"
tag: "3.6.11"

- test-suite:
name: "Python 3.7 tests"
tag: "3.7.8"

- test-suite:
name: "Python 3.8 tests"
tag: "3.8.5"
tag: "3.7.12"

- docs-build:
name: "Docs build"
tag: "3.8.5"
tag: "3.7.12"
14 changes: 11 additions & 3 deletions src/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def configuration(parent_package='', top_path=None):
config.add_subpackage('pygrackle', 'pygrackle')
return config

dev_requirements = [
'flake8',
'pytest',
'sphinx',
]

setup(
name="pygrackle",
Expand All @@ -57,14 +62,17 @@ def configuration(parent_package='', top_path=None):
'cython',
],
install_requires=[
'cython',
'h5py',
'setuptools',
'numpy',
'matplotlib',
'yt>=3.4.0',
'yt>=4.0.2',
],
cmdclass={'build_ext': build_ext},
license="BSD 3-clause",
ext_modules=cython_extensions,
python_requires='>=3.6'
extras_require={
'dev': dev_requirements,
},
python_requires='>=3.7'
)

0 comments on commit 5c09caa

Please sign in to comment.