Skip to content

Commit

Permalink
switching to Hatch build system
Browse files Browse the repository at this point in the history
fix ci
  • Loading branch information
antonymayi committed Nov 8, 2022
1 parent dc5dfa8 commit 530d4ae
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 232 deletions.
Empty file removed .coveragerc
Empty file.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,24 @@ jobs:
- name: "Install dependencies"
run: |
sudo apt-get install graphviz
pip install --upgrade tox
- name: "Run tests"
run: tox -e clean,lint,py310,coverage
pip install --upgrade hatch
- name: "Tutorials"
run: hatch run tutorials:lint
- name: "Docs"
run: hatch run docs:check
- name: "Clean"
run: hatch run clean
- name: "Lint"
run: hatch run dev:lint
- name: "Test"
run: hatch run dev:test
- name: "Upload test results"
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ matrix.python-version }}
path: junit.xml
- name: "Coverage"
run: hatch run dev:cov
- name: "Upload coverage results"
uses: codecov/codecov-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ python:
- method: pip
path: .
extra_requirements:
- all
- docs
- all
103 changes: 39 additions & 64 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --all-extras --no-emit-index-url --output-file=constraints.txt --strip-extras
# pip-compile --extra=dev,docs,dask,graphviz,mlflow,rest,sql --no-emit-index-url --output-file=constraints.txt --strip-extras pyproject.toml
#
alabaster==0.7.12
# via sphinx
Expand Down Expand Up @@ -30,7 +30,7 @@ backcall==0.2.0
beautifulsoup4==4.11.1
# via nbconvert
black==22.10.0
# via forml (setup.py)
# via forml (pyproject.toml)
bleach==5.0.1
# via nbconvert
build==0.9.0
Expand All @@ -51,8 +51,7 @@ click==8.1.3
# databricks-cli
# distributed
# flask
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
# pip-tools
# typer
Expand All @@ -61,15 +60,12 @@ cloudpickle==2.2.0
# via
# dask
# distributed
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
coverage==6.5.0
# via pytest-cov
dask==2022.10.2
# via
# distributed
# forml
# via distributed
databricks-cli==0.17.3
# via mlflow
decorator==5.1.1
Expand All @@ -81,7 +77,7 @@ dill==0.3.6
distlib==0.3.6
# via virtualenv
distributed==2022.10.2
# via forml (setup.py)
# via forml (pyproject.toml)
docker==6.0.1
# via mlflow
docutils==0.19
Expand All @@ -108,17 +104,15 @@ flake8==5.0.4
# flake8-colors
# flake8-typing-imports
flake8-bugbear==22.10.27
# via forml (setup.py)
# via forml (pyproject.toml)
flake8-colors==0.1.9
# via forml (setup.py)
# via forml (pyproject.toml)
flake8-typing-imports==1.14.0
# via forml (setup.py)
# via forml (pyproject.toml)
flask==2.2.2
# via
# mlflow
# prometheus-flask-exporter
forml==0.8
# via forml (setup.py)
fsspec==2022.10.0
# via dask
future==0.18.2
Expand All @@ -128,9 +122,7 @@ gitdb==4.0.9
gitpython==3.1.29
# via mlflow
graphviz==0.20.1
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
greenlet==2.0.1
# via sqlalchemy
gunicorn==20.1.0
Expand Down Expand Up @@ -162,7 +154,7 @@ ipython==8.6.0
# via black
isort==5.10.1
# via
# forml (setup.py)
# forml (pyproject.toml)
# pylint
itsdangerous==2.1.2
# via
Expand All @@ -174,8 +166,7 @@ jinja2==3.1.2
# via
# distributed
# flask
# forml
# forml (setup.py)
# forml (pyproject.toml)
# nbconvert
# nbsphinx
# sphinx
Expand All @@ -186,7 +177,7 @@ jsonschema==4.17.0
# via nbformat
jupyter-client==7.2.2
# via
# forml (setup.py)
# forml (pyproject.toml)
# nbclient
jupyter-core==4.11.2
# via
Expand Down Expand Up @@ -221,9 +212,7 @@ mccabe==0.7.0
mistune==2.0.4
# via nbconvert
mlflow==1.30.0
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
msgpack==1.0.4
# via distributed
mypy-extensions==0.4.3
Expand All @@ -240,7 +229,7 @@ nbformat==5.7.0
# nbconvert
# nbsphinx
nbsphinx==0.8.9
# via forml (setup.py)
# via forml (pyproject.toml)
nest-asyncio==1.5.6
# via
# jupyter-client
Expand All @@ -249,8 +238,7 @@ nodeenv==1.7.0
# via pre-commit
numpy==1.23.4
# via
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
# pandas
# scikit-learn
Expand All @@ -263,16 +251,14 @@ packaging==21.3
# dask
# distributed
# docker
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
# nbconvert
# pytest
# sphinx
pandas==1.5.1
# via
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
pandocfilters==1.5.0
# via nbconvert
Expand All @@ -291,7 +277,7 @@ pexpect==4.8.0
pickleshare==0.7.5
# via ipython
pip-tools==6.9.0
# via forml (setup.py)
# via forml (pyproject.toml)
platformdirs==2.5.3
# via
# black
Expand All @@ -302,7 +288,7 @@ pluggy==1.0.0
pockets==0.9.1
# via sphinxcontrib-napoleon
pre-commit==2.20.0
# via forml (setup.py)
# via forml (pyproject.toml)
prometheus-client==0.15.0
# via prometheus-flask-exporter
prometheus-flask-exporter==0.20.3
Expand All @@ -311,14 +297,14 @@ prompt-toolkit==3.0.32
# via ipython
protobuf==4.21.9
# via mlflow
psutil==5.9.3
psutil==5.9.4
# via distributed
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
pycln==2.1.1
# via forml (setup.py)
# via forml (pyproject.toml)
pycodestyle==2.9.1
# via flake8
pydantic==1.10.2
Expand All @@ -333,13 +319,11 @@ pygments==2.13.0
# nbconvert
# sphinx
pyhive==0.6.5
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
pyjwt==2.6.0
# via databricks-cli
pylint==2.15.5
# via forml (setup.py)
# via forml (pyproject.toml)
pyparsing==3.0.9
# via packaging
pyrsistent==0.19.2
Expand All @@ -350,11 +334,11 @@ pytest==7.2.0
# pytest-cov
# pytest-xdist
pytest-asyncio==0.20.1
# via forml (setup.py)
# via forml (pyproject.toml)
pytest-cov==4.0.0
# via forml (setup.py)
# via forml (pyproject.toml)
pytest-xdist==3.0.2
# via forml (setup.py)
# via forml (pyproject.toml)
python-dateutil==2.8.2
# via
# jupyter-client
Expand Down Expand Up @@ -390,9 +374,7 @@ requests==2.28.1
rfc3986==1.5.0
# via httpx
scikit-learn==1.1.3
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
scipy==1.9.3
# via
# mlflow
Expand Down Expand Up @@ -421,48 +403,45 @@ soupsieve==2.3.2.post1
# via beautifulsoup4
sphinx==5.3.0
# via
# forml (setup.py)
# forml (pyproject.toml)
# nbsphinx
# sphinx-copybutton
# sphinx-immaterial
# sphinxcontrib-details-directive
# sphinxcontrib-spelling
sphinx-copybutton==0.5.0
# via forml (setup.py)
# via forml (pyproject.toml)
sphinx-immaterial==0.10.0
# via forml (setup.py)
# via forml (pyproject.toml)
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-details-directive==0.1.0
# via forml (setup.py)
# via forml (pyproject.toml)
sphinxcontrib-devhelp==1.0.2
# via sphinx
sphinxcontrib-htmlhelp==2.0.0
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-napoleon==0.7
# via forml (setup.py)
# via forml (pyproject.toml)
sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sphinxcontrib-spelling==7.6.2
# via forml (setup.py)
# via forml (pyproject.toml)
sqlalchemy==1.4.43
# via
# alembic
# forml
# forml (setup.py)
# forml (pyproject.toml)
# mlflow
sqlparse==0.4.3
# via mlflow
stack-data==0.6.0
# via ipython
starlette==0.21.0
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
tabulate==0.9.0
# via databricks-cli
tblib==1.7.0
Expand All @@ -475,16 +454,14 @@ tokenize-rt==5.0.0
# via black
toml==0.10.2
# via
# forml
# forml (setup.py)
# forml (pyproject.toml)
# pre-commit
tomli==2.0.1
# via
# black
# build
# coverage
# forml
# forml (setup.py)
# forml (pyproject.toml)
# pep517
# pylint
# pytest
Expand Down Expand Up @@ -527,9 +504,7 @@ urllib3==1.26.12
# docker
# requests
uvicorn==0.19.0
# via
# forml
# forml (setup.py)
# via forml (pyproject.toml)
virtualenv==20.16.6
# via pre-commit
wcwidth==0.2.5
Expand Down

0 comments on commit 530d4ae

Please sign in to comment.