Skip to content

Commit

Permalink
switching to Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymayi committed Nov 8, 2022
1 parent 57da3f7 commit 4c3f5bc
Show file tree
Hide file tree
Showing 10 changed files with 246 additions and 254 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -30,25 +30,32 @@ on:
jobs:
build:

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- "3.9"
- "3.10"

steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: pip install --upgrade tox
- name: "Run tests"
run: tox
run: |
pip install --upgrade hatch
- 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
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: junit.xml
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -37,13 +37,13 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
name: Black
args: [--config=pyproject.toml]
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.2.0
hooks:
- id: pyupgrade
name: Python syntax upgrade
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Expand Up @@ -27,5 +27,5 @@ python:
- method: pip
path: .
extra_requirements:
- all
- docs
- all
2 changes: 1 addition & 1 deletion NOTICE
@@ -1,5 +1,5 @@
Openschema
Copyright 2021 ForML authors
Copyright 2022 ForML authors

This product includes software developed by
ForML contributors (http://forml.io/).
111 changes: 53 additions & 58 deletions constraints.txt
Expand Up @@ -2,23 +2,23 @@
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --extra=all,docs,dev --output-file=constraints.txt --strip-extras
# pip-compile --extra=dev,docs --no-emit-index-url --output-file=constraints.txt --strip-extras pyproject.toml
#
alabaster==0.7.12
# via sphinx
astroid==2.12.9
astroid==2.12.12
# via pylint
attrs==22.1.0
# via
# flake8-bugbear
# pytest
babel==2.10.3
babel==2.11.0
# via sphinx
black==22.8.0
# via openschema (setup.py)
build==0.8.0
black==22.10.0
# via openschema (pyproject.toml)
build==0.9.0
# via pip-tools
certifi==2022.6.15.1
certifi==2022.9.24
# via requests
cfgv==3.3.1
# via pre-commit
Expand All @@ -32,16 +32,18 @@ click==8.1.3
# typer
cloudpickle==2.2.0
# via forml
coverage==6.4.4
coverage==6.5.0
# via pytest-cov
dill==0.3.5.1
dill==0.3.6
# via pylint
distlib==0.3.6
# via virtualenv
docutils==0.17.1
# via
# sphinx
# sphinx-rtd-theme
exceptiongroup==1.0.1
# via pytest
execnet==1.9.0
# via pytest-xdist
filelock==3.8.0
Expand All @@ -51,33 +53,33 @@ flake8==5.0.4
# flake8-bugbear
# flake8-colors
# flake8-typing-imports
flake8-bugbear==22.9.11
# via openschema (setup.py)
flake8-bugbear==22.10.27
# via openschema (pyproject.toml)
flake8-colors==0.1.9
# via openschema (setup.py)
flake8-typing-imports==1.13.0
# via openschema (setup.py)
forml==0.8
# via openschema (setup.py)
identify==2.5.5
# via openschema (pyproject.toml)
flake8-typing-imports==1.14.0
# via openschema (pyproject.toml)
forml==0.9
# via openschema (pyproject.toml)
identify==2.5.8
# via pre-commit
idna==3.3
idna==3.4
# via requests
imagesize==1.4.1
# via sphinx
iniconfig==1.1.1
# via pytest
isort==5.10.1
# via
# openschema (setup.py)
# openschema (pyproject.toml)
# pylint
jinja2==3.1.2
# via
# forml
# sphinx
joblib==1.1.0
joblib==1.2.0
# via scikit-learn
lazy-object-proxy==1.7.1
lazy-object-proxy==1.8.0
# via astroid
libcst==0.4.7
# via pycln
Expand All @@ -93,7 +95,7 @@ mypy-extensions==0.4.3
# typing-inspect
nodeenv==1.7.0
# via pre-commit
numpy==1.23.3
numpy==1.23.4
# via
# forml
# pandas
Expand All @@ -105,17 +107,17 @@ packaging==21.3
# forml
# pytest
# sphinx
pandas==1.4.4
pandas==1.5.1
# via forml
pathspec==0.9.0
# via
# black
# pycln
pep517==0.13.0
# via build
pip-tools==6.8.0
# via openschema (setup.py)
platformdirs==2.5.2
pip-tools==6.9.0
# via openschema (pyproject.toml)
platformdirs==2.5.3
# via
# black
# pylint
Expand All @@ -125,13 +127,9 @@ pluggy==1.0.0
pockets==0.9.1
# via sphinxcontrib-napoleon
pre-commit==2.20.0
# via openschema (setup.py)
py==1.11.0
# via
# pytest
# pytest-forked
# via openschema (pyproject.toml)
pycln==2.1.1
# via openschema (setup.py)
# via openschema (pyproject.toml)
pycodestyle==2.9.1
# via flake8
pyenchant==3.2.2
Expand All @@ -140,24 +138,21 @@ pyflakes==2.5.0
# via flake8
pygments==2.13.0
# via sphinx
pylint==2.15.2
# via openschema (setup.py)
pylint==2.15.5
# via openschema (pyproject.toml)
pyparsing==3.0.9
# via packaging
pytest==7.1.3
pytest==7.2.0
# via
# pytest-cov
# pytest-forked
# pytest-xdist
pytest-cov==3.0.0
# via openschema (setup.py)
pytest-forked==1.4.0
# via pytest-xdist
pytest-xdist==2.5.0
# via openschema (setup.py)
pytest-cov==4.0.0
# via openschema (pyproject.toml)
pytest-xdist==3.0.2
# via openschema (pyproject.toml)
python-dateutil==2.8.2
# via pandas
pytz==2022.2.1
pytz==2022.6
# via
# babel
# pandas
Expand All @@ -168,9 +163,9 @@ pyyaml==6.0
# pycln
requests==2.28.1
# via sphinx
scikit-learn==1.1.2
scikit-learn==1.1.3
# via forml
scipy==1.9.1
scipy==1.9.3
# via scikit-learn
six==1.16.0
# via
Expand All @@ -179,35 +174,35 @@ six==1.16.0
# sphinxcontrib-napoleon
snowballstemmer==2.2.0
# via sphinx
sphinx==5.1.1
sphinx==5.3.0
# via
# openschema (setup.py)
# openschema (pyproject.toml)
# sphinx-copybutton
# sphinx-rtd-theme
# sphinxcontrib-details-directive
# sphinxcontrib-spelling
sphinx-copybutton==0.5.0
# via openschema (setup.py)
sphinx-rtd-theme==1.0.0
# via openschema (setup.py)
# via openschema (pyproject.toml)
sphinx-rtd-theme==1.1.1
# via openschema (pyproject.toml)
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-details-directive==0.1.0
# via openschema (setup.py)
# via openschema (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 openschema (setup.py)
# via openschema (pyproject.toml)
sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sphinxcontrib-spelling==7.6.0
# via openschema (setup.py)
sphinxcontrib-spelling==7.6.2
# via openschema (pyproject.toml)
threadpoolctl==3.1.0
# via scikit-learn
toml==0.10.2
Expand All @@ -223,23 +218,23 @@ tomli==2.0.1
# pep517
# pylint
# pytest
tomlkit==0.11.4
tomlkit==0.11.6
# via
# pycln
# pylint
typer==0.6.1
# via pycln
typing-extensions==4.3.0
typing-extensions==4.4.0
# via
# libcst
# typing-inspect
typing-inspect==0.8.0
# via libcst
urllib3==1.26.12
# via requests
virtualenv==20.16.5
virtualenv==20.16.6
# via pre-commit
wheel==0.37.1
wheel==0.38.3
# via pip-tools
wrapt==1.14.1
# via astroid
Expand Down
3 changes: 1 addition & 2 deletions openschema/__init__.py
Expand Up @@ -19,5 +19,4 @@
Schema catalog.
"""

__version__ = '0.4.dev2'
__author__ = 'ForML Authors'
__version__ = '0.5.dev1'

0 comments on commit 4c3f5bc

Please sign in to comment.