diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8fb894..7b54519 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: conda-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: conda-incubator/setup-miniconda@v3 with: miniforge-version: latest @@ -17,7 +17,7 @@ jobs: run: | conda install -y setuptools openturns numpy pytest numpydoc sphinx sphinx-gallery sphinx_rtd_theme pandoc flake8 matplotlib flake8 --max-line-length=120 - python setup.py install + pip install . pytest sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra make html -C doc diff --git a/pyproject.toml b/pyproject.toml index 36d8da5..1700ce5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,13 @@ [build-system] -requires = [ "setuptools"] +requires = ["setuptools"] [project] name = "ottemplate-python" version = "0.1" description = "Template" readme = "README.rst" -dependencies = [ "numpydoc","sphinx_gallery", "sphinx", "matplotlib", "openturns",] +dependencies = ["openturns"] + +[project.optional-dependencies] +doc = ["numpydoc", "sphinx-gallery", "sphinx", "matplotlib"] +test = ["pytest"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 13d85ff..0000000 --- a/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[aliases] -test=pytest - -[tool:pytest] -addopts = -v -rxs --maxfail=5 --durations=30 diff --git a/setup.py b/setup.py deleted file mode 100755 index fa57943..0000000 --- a/setup.py +++ /dev/null @@ -1,36 +0,0 @@ -""" -Setup script for ottemplate -========================== - -This script allows to install ottemplate within the python environment. - -Usage ------ -:: - - pip install . - -""" -from setuptools import setup, find_packages - - -setup( - # library name - name='ottemplate', - # code version - version="0.1", - # list libraries to be imported - packages=find_packages(), - # Descriptions - description="template for python modules utilizing openturns", - install_requires=['numpy>=1.13', - 'openturns', - 'matplotlib >= 1.5.1', - "numpydoc", - "sphinx_gallery", - "sphinx", - "matplotlib", - "openturns", - "pytest", - "pytest-runner"], -)