Skip to content

Commit

Permalink
Move to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Mar 31, 2024
1 parent 6ec691e commit 0ba8974
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 2,949 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[build-system]
requires = ["setuptools >= 61.0", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"

[project]
dynamic = ["version"]
name = "yadg"
authors = [
{name = "Peter Kraus", email = "[email protected]"},
{name = "Nicolas Vetsch"},
]
maintainers = [
{name = "Peter Kraus", email = "[email protected]"},
]
description = "yet another datagram"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
requires-python = ">= 3.9"
dependencies = [
"numpy",
"scipy",
"pint >= 0.22",
"pyyaml",
"uncertainties",
"striprtf",
"tzlocal",
"packaging",
"python-dateutil",
"openpyxl >= 3.0.0",
"h5netcdf ~= 1.0",
"xarray-datatree ~= 0.0.12",
"dgbowl-schemas @ git+https://github.com/dgbowl/dgbowl-schemas.git@dataschema_5.1",
"requests",
]

[project.optional-dependencies]
testing = ["pytest"]
docs = [
"sphinx ~= 7.2",
"sphinx-rtd-theme ~= 1.3.0",
"sphinx-autodoc-typehints",
"autodoc-pydantic ~= 2.0.0",
"sphinxcontrib-mermaid ~= 0.9.2",
]

[project.scripts]
yadg = "yadg:run_with_arguments"

[tool.setuptools-git-versioning]
enabled = true
dev_template = "{tag}.dev{ccount}"
dirty_template = "{tag}.dev{ccount}"

[tool.flake8]
max-line-length = 88
extend-ignore = "E203"
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[versioneer]
VCS = git
style = pep440-pre
versionfile_source = src/yadg/_version.py
versionfile_build = yadg/_version.py
tag_prefix =
parentdir_prefix = yadg-

[flake8]
max-line-length = 88
extend-ignore = E203
62 changes: 0 additions & 62 deletions setup.py

This file was deleted.

5 changes: 3 additions & 2 deletions src/yadg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import sys
from importlib.metadata import version
from .main import run_with_arguments
from . import _version

__all__ = ["run_with_arguments"]
__version__ = _version.get_versions()["version"]
__version__ = version("yadg")

sys.path += sys.modules["yadg"].__path__

Loading

0 comments on commit 0ba8974

Please sign in to comment.