Skip to content

Commit 9984747

Browse files
fix dependency installation (#110)
* fix dependency installation * test for matplotlib instead of -base * test for change it back to see base compatible * add dependency installation in pyproject.toml for pip install
1 parent 6b34124 commit 9984747

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
conda activate test
4545
conda install --file requirements/run.txt
4646
conda install --file requirements/test.txt
47-
pip install .
47+
pip install . --no-deps
4848
4949
- name: Validate diffpy.srmise
5050
shell: bash -l {0}

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "diffpy.srmise"
7-
dynamic=['version']
7+
dynamic=['version', 'dependencies']
88
authors = [
99
{ name="Simon J.L. Billinge group", email="[email protected]" },
1010
{name="Luke Granlund", email="[email protected]"},
@@ -51,6 +51,9 @@ include = ["*"] # package names should match these glob patterns (["*"] by defa
5151
exclude = ["diffpy.srmise.tests*"] # exclude packages matching these glob patterns (empty by default)
5252
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5353

54+
[tool.setuptools.dynamic]
55+
dependencies = {file = ["requirements/run.txt"]}
56+
5457
[tool.black]
5558
line-length = 115
5659
include = '\.pyi?$'

0 commit comments

Comments
 (0)