Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,5 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install mkdocs-material
pip install mkdocstrings
pip install markdown-include
pip install -q 'setupext-janitor' #
pip install pytkdocs[numpy-style]
pip install .[dev,docs]
pytest
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ Once inside the environment, you can install ``CosmoPower``:
cd cosmopower
pip install .

To test the installation, you can use
To run the test suite, install the development extras and use ``pytest``:

pip install .[dev]
pytest


Expand Down
3 changes: 2 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Once inside the environment, you can install ``CosmoPower``:
cd cosmopower
pip install .

To test the installation, you can use
To run the test suite, install the development extras and use ``pytest``:

pip install .[dev]
pytest
33 changes: 25 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "cosmpower"
name = "cosmopower"
version = "0.2.0"
description = "Machine Learning - accelerated Bayesian inference"
readme = "README.md"
Expand All @@ -22,17 +22,26 @@ dependencies = [
"astropy>=3.2",
"scikit-learn",
"tqdm",
"gdown",
"jupyter",
"mkdocs-material",
"mkdocstrings",
"matplotlib",
"pytest",
"pyDOE",
"h5py",
"tensorflow>=2.18",
"tensorflow_probability>=0.24",
"tf-keras"
"tf-keras",
]

[project.optional-dependencies]
docs = [
"mkdocs-material",
"mkdocstrings",
"pytkdocs[numpy-style]",
]
examples = [
"jupyter",
"gdown",
]
dev = [
"pytest",
]

[project.urls]
Expand All @@ -41,3 +50,11 @@ homepage = "https://alessiospuriomancini.github.io/cosmopower/"
[tool.setuptools.packages.find]
where = ["."]

[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
testpaths = ["cosmopower/tests"]

7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.

13 changes: 0 additions & 13 deletions requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.