Skip to content

Commit a1e79a7

Browse files
Merge pull request #1 from olafmersmann/main
Cleanup project structure
2 parents 2bde71f + 6f88af8 commit a1e79a7

19 files changed

Lines changed: 51 additions & 384 deletions

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macos-latest]
10+
version: ["3.10", "3.11"]
11+
runs-on: ${{matrix.os}}
12+
defaults:
13+
run:
14+
working-directory: ${{github.workspace}}
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{matrix.version}}
20+
- run: python -m pip install --upgrade pip build pytest
21+
- run: python -m build .
22+
- run: python -m pip install .
23+
- run: pytest test/

.gitignore

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
1+
*.egg-info/
22
.DS_Store
3-
test/__pycache__/test_aggregate_mean_var.cpython-310-pytest-7.1.3.pyc
4-
test/__pycache__/test_build_Psi.cpython-310-pytest-7.1.3.pyc
5-
test/__pycache__/test_build_psi_vec.cpython-310-pytest-7.1.3.pyc
6-
test/__pycache__/test_build_U.cpython-310-pytest-7.1.3.pyc
7-
test/__pycache__/test_evaluate_new_solutions.cpython-310-pytest-7.1.3.pyc
8-
test/__pycache__/test_evaluate_new_X.cpython-310-pytest-7.1.3.pyc
9-
test/__pycache__/test_extract_from_bounds.cpython-310-pytest-7.1.3.pyc
10-
test/__pycache__/test_generate_design.cpython-310-pytest-7.1.3.pyc
11-
test/__pycache__/test_infill.cpython-310-pytest-7.1.3.pyc
12-
test/__pycache__/test_nat_to_cod.cpython-310-pytest-7.1.3.pyc
13-
test/__pycache__/test_nat_to_cod_init.cpython-310-pytest-7.1.3.pyc
14-
test/__pycache__/test_ocba.cpython-310-pytest-7.1.3.pyc
15-
test/__pycache__/test_repair_non_numeric.cpython-310-pytest-7.1.3.pyc
16-
test/__pycache__/test_set_de_bounds.cpython-310-pytest-7.1.3.pyc
17-
test/__pycache__/test_show_progress.cpython-310-pytest-7.1.3.pyc
18-
test/__pycache__/test_suggest_new_X.cpython-310-pytest-7.1.3.pyc
19-
test/__pycache__/test_update_surrogate.cpython-310-pytest-7.1.3.pyc
3+
__pycache__/
204
spotPython.code-workspace
5+
src/spotPython/_version.py
6+
*.log

MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

notebooks/spotPython.build.kriging.log

Whitespace-only changes.

notebooks/spotPython.spot.spot.log

Whitespace-only changes.

pyproject.toml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
[build-system]
2-
requires = ["scipy",
3-
"setuptools>=61.0",
4-
"graphviz",
5-
"numpy",
6-
"scikit-learn",
7-
"matplotlib"]
2+
requires = [
3+
"setuptools>=61.0",
4+
"setuptools_scm[toml]"
5+
]
86
build-backend = "setuptools.build_meta"
97

108
[project]
119
name = "spotPython"
12-
version = "0.0.2"
1310
authors = [
1411
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1512
]
@@ -26,16 +23,20 @@ classifiers = [
2623
# PEP 621 dependencies declaration
2724
# adapt to your dependencies manager
2825
dependencies = [
29-
"mkdocstrings-python"
26+
"matplotlib",
27+
"numpy",
28+
"pandas",
29+
"scikit-learn",
30+
"scipy",
3031
]
32+
dynamic = ["version"]
3133

3234
[project.urls]
3335
"Homepage" = "https://www.spotseven.de"
36+
Issues = "https://github.com/sequential-parameter-optimization/spotPython/issues"
37+
Repository = "https://github.com/sequential-parameter-optimization/spotPython"
3438

3539
[tool.setuptools]
36-
# ...
37-
# By default, include-package-data is true in pyproject.toml, so you do
38-
# NOT have to specify this line.
3940
include-package-data = true
4041

4142
[tool.setuptools.packages.find]
@@ -45,3 +46,11 @@ where = ["src"]
4546
line-length = 120
4647
target-version = ["py310"]
4748

49+
[tool.setuptools_scm]
50+
write_to = "src/spotPython/_version.py"
51+
52+
[tool.pytest.ini_options]
53+
addopts = [
54+
"--import-mode=importlib",
55+
]
56+

spotPython.build.kriging.log

Whitespace-only changes.

spotPython.spot.spot.log

Whitespace-only changes.

src/pyspot.egg-info/PKG-INFO

Lines changed: 0 additions & 100 deletions
This file was deleted.

src/pyspot.egg-info/SOURCES.txt

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)