From c15035e2e966180c58d5bcb34bc2f4d5b5d95989 Mon Sep 17 00:00:00 2001 From: Antony Lewis Date: Fri, 2 Aug 2024 16:18:00 +0100 Subject: [PATCH] test install --- .github/workflows/testing.yml | 6 +++--- pyproject.toml | 13 ++++++++----- requirements.txt | 2 +- soliket/cosmopower/cosmopower.py | 2 +- tox.ini | 3 ++- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7c6bfc81..1d3d292c 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -23,7 +23,7 @@ jobs: - name: oldest supported versions os: ubuntu-latest python-version: '3.9' - toxenv: py38-test-oldest + toxenv: py39-test-oldest - name: macOS latest os: macos-latest @@ -32,8 +32,8 @@ jobs: - name: Windows latest os: windows-latest - python-version: '3.12' - toxenv: py312-test-latest + python-version: '3.11' + toxenv: py311-test-latest env: PYTHONIOENCODING: utf-8 PYTHONUTF8: 1 diff --git a/pyproject.toml b/pyproject.toml index d4853549..2cc37507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,12 +2,12 @@ name = "soliket" dynamic = ['version'] authors = [ - {name = "Simons Observatory"} + { name = "Simons Observatory" } ] description = "Likelihood and Theory codes for the Simons Observatory." readme = "README.rst" requires-python = ">=3.9" -license = {text = "MIT"} +license = { text = "MIT" } dependencies = [ "requests", "numpy", @@ -55,7 +55,7 @@ include = [ "soliket.poisson", "soliket.ps", "soliket.xcorr", - ] +] [tool.setuptools.package-data] "*" = ['*.yaml', '*.fits', '*.txt', '*.pkl', '*.gz'] @@ -72,11 +72,14 @@ docs = [ "sphinx", "sphinx_rtd_theme", ] +tests = [ + "scikit-learn", +] [tool.flake8] -select = ["E713","E704","E703","E714","E741","E10","E11","E20","E22","E23","E25","E262","E27","E301","E302","E304","E9","F405","F406","F5","F6","F7","F8","E501","W191","F401","W1","W292","W293","W3"] +select = ["E713", "E704", "E703", "E714", "E741", "E10", "E11", "E20", "E22", "E23", "E25", "E262", "E27", "E301", "E302", "E304", "E9", "F405", "F406", "F5", "F6", "F7", "F8", "E501", "W191", "F401", "W1", "W292", "W293", "W3"] max-line-length = 90 -exclude = [".tox","build","cobaya_packages","test",".eggs"] +exclude = [".tox", "build", "cobaya_packages", "test", ".eggs"] [tool.coverage.run] omit = [ diff --git a/requirements.txt b/requirements.txt index 083788e8..84dd9e3c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,4 +18,4 @@ pyccl >= 3.0; platform_system!='Windows' sacc fgspectra>=1.1.0 syslibrary -pyhalomodel \ No newline at end of file +pyhalomodel diff --git a/soliket/cosmopower/cosmopower.py b/soliket/cosmopower/cosmopower.py index a4735d71..197e9a17 100644 --- a/soliket/cosmopower/cosmopower.py +++ b/soliket/cosmopower/cosmopower.py @@ -1,4 +1,4 @@ -""" +r""" .. module:: soliket.cosmopower :Synopsis: Simple CosmoPower theory wrapper for Cobaya. diff --git a/tox.ini b/tox.ini index c7f91f64..7a9e871d 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ requires = setuptools_scm >= 8 pip >= 19.3.1 envlist = - py{39,310,311.312}-test{,-all}{,-latest,-oldest}{,-cov} + py{39,310,311}-test{,-all}{,-latest,-oldest}{,-cov} codestyle [testenv] @@ -39,6 +39,7 @@ description = cov: and test coverage extras = + tests all: all commands =