Skip to content

Commit

Permalink
Merge pull request #5 from ACCESS-NRI/2-clean-up-repo
Browse files Browse the repository at this point in the history
2 clean up repo
  • Loading branch information
bschroeter authored Jul 2, 2024
2 parents d7f1a15 + 272e064 commit 12b9ee4
Show file tree
Hide file tree
Showing 43 changed files with 975 additions and 876 deletions.
12 changes: 12 additions & 0 deletions .conda/build_env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Required for 'Build and upload conda packages' workflow

channels:
- conda-forge
- accessnri
- coecms
- default

dependencies:
- anaconda-client
- conda-build
- versioneer
18 changes: 18 additions & 0 deletions .conda/hpcpy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: hpcpy_dev

channels:
- conda-forge
- accessnri
- coecms
- defaults

dependencies:
- python>=3.9
- Jinja2>=3.1.4
- pandas>=2.2.2
- pip
- pytest
- black
- ruff
- pip:
- -r mkdocs-requirements.txt
31 changes: 31 additions & 0 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% set data = load_setup_py_data() %}
{% set version = data.get('version') %}

package:
name: hpcpy
version: "{{ version }}"

source:
path: ..


build:
noarch: python
number: 0
script: "{{ PYTHON }} -m pip install . -vv"


requirements:
host:
- python >=3.9
- pip
- setuptools>=64
- versioneer
run:
- python >=3.9
- Jinja2 >=3.1.4
- pandas >=2.2.2

test:
imports:
- hpcpy
6 changes: 6 additions & 0 deletions .conda/mkdocs-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mkdocs>1.1
mkdocs-material>=7.2.6
mkdocs-git-revision-date-localized-plugin
mkdocs-macros-plugin
mkdocstrings
mkdocstrings[python]
21 changes: 0 additions & 21 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hpcpy/_version.py export-subst
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Continuous Integration

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install package
run: |
pip install -e .
- name: Lint with flake8
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
HPCPY_DEV_MODE: 1
run: |
conda install pytest
pytest -v
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

13 changes: 0 additions & 13 deletions AUTHORS.rst

This file was deleted.

84 changes: 0 additions & 84 deletions CODE_OF_CONDUCT.rst

This file was deleted.

137 changes: 0 additions & 137 deletions CONTRIBUTING.rst

This file was deleted.

8 changes: 0 additions & 8 deletions HISTORY.rst

This file was deleted.

Loading

0 comments on commit 12b9ee4

Please sign in to comment.