Skip to content

Commit

Permalink
Migrate to pyproject.toml (#65)
Browse files Browse the repository at this point in the history
* move to pyproject file

* remove setup.py

* remove options that were defaults

* update authors metadata as discussed
  • Loading branch information
fsoubelet authored Aug 13, 2024
1 parent eb174d4 commit 85ab019
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 74 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ on:
jobs:
tests:
uses: pylhc/.github/.github/workflows/cron.yml@master
with:
extra-dependencies: test
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ on: # Runs on any push event to any branch except master (the coverage workflow
jobs:
tests:
uses: pylhc/.github/.github/workflows/tests.yml@master
with:
extra-dependencies: test
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "sdds/__init__.py"

[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/doc",
"/tests",
]

[tool.hatch.build.targets.wheel]
packages = ["sdds"]

[project]
name = "sdds"
readme = "README.md"
description = "SDDS file handling."
authors = [
{name = "OMC Team", email = "[email protected]"}, # see zenodo file / commits for details
]
license = "MIT"
dynamic = ["version"]
requires-python = ">=3.9"

keywords = [
"SDDS",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]

dependencies = [
"numpy >= 1.24",
]

[project.optional-dependencies]
test = [
"pytest>=7.0",
"pytest-cov>=2.9",
]
doc = [
"sphinx >= 7.0",
"sphinx_rtd_theme >= 2.0",
]

all = [
"sdds[test]",
"sdds[doc]",
]

[project.urls]
homepage = "https://github.com/pylhc/sdds"
repository = "https://github.com/pylhc/sdds"
documentation = "https://pylhc.github.io/sdds/"
changelog = "https://github.com/pylhc/sdds/blob/master/CHANGELOG.md"
70 changes: 0 additions & 70 deletions setup.py

This file was deleted.

0 comments on commit 85ab019

Please sign in to comment.