Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation with pyproject.toml in src layout #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
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
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,8 +30,7 @@ jobs:
python -m pip install --upgrade pip
- name: Install package
run: |
pip install -e ".[core, test]"
pip install pytest pytest-qt
pip install -e ".[dev]"
- name: Test with pytest
run: |
pytest -sv --show-capture=no tests
85 changes: 0 additions & 85 deletions conda/meta.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions environment-readthedocs.yml

This file was deleted.

12 changes: 0 additions & 12 deletions environment-update-test.yml

This file was deleted.

42 changes: 0 additions & 42 deletions environment.yml

This file was deleted.

11 changes: 0 additions & 11 deletions lefthook.yml

This file was deleted.

24 changes: 0 additions & 24 deletions package.json

This file was deleted.

100 changes: 99 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,102 @@
[tool.black]
[build-system]
requires = ["setuptools>=64.0.1", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = {attr = "arpes.__version__"}

[project]
name = "arpes"
dynamic = ["version"]
authors = [
{name = "Conrad Stansbury", email = "[email protected]"},
]
description = "Modular data analysis code for angle resolved photoemission spectroscopy (ARPES)"
readme = "README.rst"
license = { file = "LICENSE" }
requires-python = ">=3.8.0,<3.13"
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"PyQt5>5.15",
"ase>=3.17.0",
"astropy",
"bokeh>=2.0.0",
"colorama",
"colorcet",
"dill",
"h5py>=3.2.1",
"imageio",
"ipywidgets>8.0.0",
"lmfit>=1.0.0",
"matplotlib>=3.0.3",
"netCDF4>=1.5.0,<1.7.0; python_version<'3.9'",
"netCDF4>=1.5.0; python_version>='3.9'",
"numba>=0.53.0",
"numpy>=1.20.0,<2.0.0",
"packaging",
"pandas",
"pint",
"pyqtgraph>=0.12.0",
"rx",
"scipy>=1.6.0",
"titlecase",
"tqdm",
"xarray>=0.16.1",
]

[project.urls]
Homepage = "https://gitlab.com/lanzara-group/python-arpes"

[project.optional-dependencies]
igor = [
"igor @ git+https://github.com/chstan/igorpy.git",
]
ml= [
"scikit-learn>=0.24.0",
"scikit-image",
"cvxpy",
]
jupyter = [
"jupyter",
"ipython",
"jupyter_contrib_nbextensions",
"notebook>=5.7.0",
]

dev = [
"markdown-include",
"attrs>=17.4.0",
"pluggy>=0.6.0",
"py>=1.5.2",
"pytest>=3.3.2",
"pytest-qt>=4.0.0",
]

[tool.setuptools.packages.find]
where = [
"src",
]

[tool.setuptools.package-data]
pynxtools = ["resources"]

[tool.black]
line-length = 100

[tool.pydocstyle]
Expand All @@ -19,3 +116,4 @@ exclude_lines = [
"raise NotImplementedError",
"pragma: no cover",
]

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

Loading
Loading