-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
114 additions
and
125 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,7 @@ jobs: | |
run: | | ||
conda install -y pandoc | ||
python -m pip install -U pip wheel | ||
pip install . | ||
python -m pip install -U -r docs/requirements.txt | ||
pip install .[docs] | ||
- name: Show installed dependencies | ||
run: | | ||
pip freeze | ||
|
@@ -70,8 +69,7 @@ jobs: | |
run: | | ||
conda install -y pandoc | ||
python -m pip install -U pip wheel | ||
pip install . | ||
python -m pip install -U -r docs/requirements.txt | ||
pip install .[docs] | ||
- name: Show installed dependencies | ||
run: | | ||
pip freeze | ||
|
@@ -98,7 +96,7 @@ jobs: | |
run: | | ||
python -m pip install -U pip wheel | ||
python -m pip install -U -e . | ||
python -m pip install -r requirements_dev.txt | ||
python -m pip install -r requirements_pinned.txt | ||
- name: Run tests | ||
run: | | ||
py.test --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests | ||
|
@@ -125,7 +123,7 @@ jobs: | |
run: | | ||
python -m pip install -U pip wheel | ||
python -m pip install -U -e . | ||
python -m pip install -r requirements_dev.txt | ||
python -m pip install -r requirements_pinned.txt | ||
python -m pip install git+https://github.com/glotaran/pyglotaran | ||
- name: Show installed dependencies | ||
run: | | ||
|
@@ -147,10 +145,9 @@ jobs: | |
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip wheel | ||
python -m pip install -U hatch | ||
- name: Build dist | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
run: hatch build | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[formatting] | ||
align_comments = false | ||
array_auto_collapse = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,84 @@ | ||
[build-system] | ||
build-backend = "hatchling.build" | ||
requires = [ | ||
"hatchling", | ||
] | ||
|
||
[project] | ||
name = "pyglotaran-extras" | ||
description = "Supplementary package for pyglotaran with (example) plotting code." | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
authors = [{ name = "Joris Snellenburg", email = "[email protected]" }] | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Chemistry", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
dependencies = [ | ||
"cycler>=0.10", | ||
"matplotlib>=3.3", | ||
"numpy<1.24,>=1.21.2", | ||
"pyglotaran>=0.7", | ||
"tabulate>=0.8.9", | ||
"xarray>=2022.3", | ||
] | ||
[project.optional-dependencies] | ||
dev = [ | ||
"pyglotaran_extras[docs,test]", | ||
] | ||
docs = [ | ||
"jupyterlab>=3", | ||
"matplotlib>=3", | ||
"myst-parser>=0.12", | ||
"nbsphinx>=0.8.1", # notebook docs | ||
"numpydoc>=0.8", | ||
"Sphinx>=3.2", | ||
"sphinx-copybutton>=0.3", | ||
"sphinx-last-updated-by-git>=0.3", | ||
"sphinx-rtd-theme>=1.2", | ||
"sphinxcontrib-jquery>=4.1", # Needed for the search to work Ref.: https://github.com/readthedocs/sphinx_rtd_theme/issues/1434 | ||
] | ||
test = [ | ||
"coverage[toml]", | ||
"nbval>=0.9.6", | ||
"pluggy>=0.7", | ||
"pytest>=3.7.1", | ||
"pytest-cov>=2.5.1", | ||
"tox>=3.5.2", | ||
] | ||
[project.urls] | ||
Changelog = "https://pyglotaran-extras.readthedocs.io/en/latest/changelog.html" | ||
Documentation = "https://pyglotaran-extras.readthedocs.io" | ||
"GloTarAn Ecosystem" = "https://glotaran.org" | ||
Homepage = "https://github.com/glotaran/pyglotaran-extras" | ||
Source = "https://github.com/glotaran/pyglotaran-extras" | ||
Tracker = "https://github.com/glotaran/pyglotaran-extras/issues" | ||
|
||
[tool.hatch.version] | ||
path = "pyglotaran_extras/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["/pyglotaran_extras"] | ||
|
||
[tool.hatch.envs.default] | ||
features = ["dev"] | ||
|
||
[tool.black] | ||
line-length = 99 | ||
target-version = ['py38'] | ||
target-version = ['py310'] | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
|
@@ -19,34 +97,34 @@ exclude = ''' | |
[tool.ruff] | ||
|
||
select = [ | ||
"E", # pycodestyle | ||
"W", # pycodestyle | ||
"C", # mccabe | ||
"F", # pyflakes | ||
"UP", # pyupgrade | ||
"D", # pydocstyle | ||
"N", # pep8-naming | ||
"E", # pycodestyle | ||
"W", # pycodestyle | ||
"C", # mccabe | ||
"F", # pyflakes | ||
"UP", # pyupgrade | ||
"D", # pydocstyle | ||
"N", # pep8-naming | ||
"YTT", # flake8-2020 | ||
"BLE", # flake8-blind-except | ||
# "FBT", # flake8-boolean-trap | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"T10", # flake8-debugger | ||
"FA", # flake8-future-annotations | ||
"EM", # flake8-errmsg | ||
"FA", # flake8-future-annotations | ||
"EM", # flake8-errmsg | ||
"ISC", # flake8-implicit-str-concat | ||
"INP", # flake8-no-pep420 | ||
"PIE", # flake8-pie | ||
"T20", # flake8-print | ||
"PT", # flake8-pytest-style | ||
"PT", # flake8-pytest-style | ||
"RSE", # flake8-raise | ||
"RET", # flake8-return | ||
"SIM", # flake8-simplify | ||
"TCH", # flake8-type-checking | ||
"ARG", # flake8-unused-arguments | ||
"PTH", # flake8-use-pathlib | ||
"ERA", # eradicate | ||
"PD", # pandas-vet | ||
"PD", # pandas-vet | ||
"PGH", # pygrep-hooks | ||
"NPY", # NumPy-specific | ||
"RUF", # Ruff-specific | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,5 @@ build: | |
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
- method: pip | ||
path: . | ||
path: .[docs] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Runtime dependencies | ||
|
||
cycler==0.11.0 | ||
matplotlib==3.7.2 | ||
numpy==1.24.4 | ||
pyglotaran==0.7.1 | ||
tabulate==0.9.0 | ||
xarray==2023.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters