Skip to content

Commit

Permalink
Merge pull request #60 from bobleesj/pyproject
Browse files Browse the repository at this point in the history
Add dependency installation in pyproject.toml for pip install
  • Loading branch information
sbillinge authored Sep 3, 2024
2 parents 5594c60 + 7f731e4 commit 92248e0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
conda activate test
conda install --file requirements/run.txt
conda install --file requirements/test.txt
pip install .
pip install . --no-deps
- name: Validate bg-mpl-stylesheets
shell: bash -l {0}
run: |
Expand Down
23 changes: 23 additions & 0 deletions news/pyproject.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* dependency installation in pyproject.toml for pip install

**Security:**

* <news item>
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bg-mpl-stylesheets"
dynamic=['version']
dynamic=['version', 'dependencies']
authors = [
{ name="Simon J.L. Billinge group", email="[email protected]" },
]
Expand Down Expand Up @@ -48,6 +48,9 @@ include = ["*"] # package names should match these glob patterns (["*"] by defa
exclude = ["bg-mpl-stylesheets.tests*"] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.setuptools.dynamic]
dependencies = {file = ["requirements/run.txt"]}

[tool.black]
line-length = 115
include = '\.pyi?$'
Expand Down

0 comments on commit 92248e0

Please sign in to comment.