Skip to content

Commit

Permalink
Use pyproject.toml (#116)
Browse files Browse the repository at this point in the history
* Use pyproject.toml

* Remove quotes
  • Loading branch information
cbrnr authored Feb 12, 2024
1 parent cafcd96 commit efaa0bd
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 104 deletions.
3 changes: 1 addition & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Then, in your Python environment follow these steps:
```Shell
git clone https://github.com/USERNAME/pybv
cd pybv
pip install -r requirements-dev.txt
pip install -e .
pip install -e ".[dev]"
pre-commit install
```

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install -e .
python -m pip install -e .[dev]
- name: install MNE-Python main
if: "matrix.platform == 'ubuntu-22.04'"
Expand Down
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ python:
- method: pip
path: .
extra_requirements:
- export
- requirements: docs/requirements-rtd.txt
- dev
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
include MANIFEST.in
include README.rst
include LICENSE
include requirements-dev.txt
include CITATION.cff
include .mailmap

Expand Down
1 change: 0 additions & 1 deletion docs/requirements-rtd.txt

This file was deleted.

68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,71 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "pybv"
authors = [
{name = "pybv developers"},
]
maintainers = [
{name = "Stefan Appelhoff", email = "[email protected]"},
]
description = "pybv – a lightweight I/O utility for the BrainVision data format"
keywords = ["Brain Products", "BrainVision", "vhdr", "vmrk", "eeg"]
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">=3.8"
dependencies = [
"numpy >= 1.18.1",
]
dynamic = ["version"]
classifiers = [
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python",
"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",
]

[project.optional-dependencies]
full = [
"mne >= 1.0",
]

dev = [
"pybv[full]",
"check-manifest",
"numpydoc",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-sugar",
"ruff",
"sphinx",
"sphinx-copybutton",
]

[project.urls]
Documentation = "https://pybv.readthedocs.io"
Repository = "https://github.com/bids-standard/pybv"
Issues = "https://github.com/bids-standard/pybv/issues"

[tool.ruff.lint]
select = ["A", "B006", "D", "E", "F", "I", "W", "UP"]
ignore = ["D203", "D213"]

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

[tool.setuptools.packages.find]
exclude = ["docs", "specification"]
11 changes: 0 additions & 11 deletions requirements-dev.txt

This file was deleted.

56 changes: 0 additions & 56 deletions setup.cfg

This file was deleted.

29 changes: 0 additions & 29 deletions setup.py

This file was deleted.

0 comments on commit efaa0bd

Please sign in to comment.