Skip to content

Commit 85ab019

Browse files
authored
Migrate to pyproject.toml (#65)
* move to pyproject file * remove setup.py * remove options that were defaults * update authors metadata as discussed
1 parent eb174d4 commit 85ab019

File tree

4 files changed

+72
-74
lines changed

4 files changed

+72
-74
lines changed

.github/workflows/cron.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ on:
99
jobs:
1010
tests:
1111
uses: pylhc/.github/.github/workflows/cron.yml@master
12-
with:
13-
extra-dependencies: test

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ on: # Runs on any push event to any branch except master (the coverage workflow
1313
jobs:
1414
tests:
1515
uses: pylhc/.github/.github/workflows/tests.yml@master
16-
with:
17-
extra-dependencies: test

pyproject.toml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[tool.hatch.version]
6+
path = "sdds/__init__.py"
7+
8+
[tool.hatch.build.targets.sdist]
9+
exclude = [
10+
"/.github",
11+
"/doc",
12+
"/tests",
13+
]
14+
15+
[tool.hatch.build.targets.wheel]
16+
packages = ["sdds"]
17+
18+
[project]
19+
name = "sdds"
20+
readme = "README.md"
21+
description = "SDDS file handling."
22+
authors = [
23+
{name = "OMC Team", email = "[email protected]"}, # see zenodo file / commits for details
24+
]
25+
license = "MIT"
26+
dynamic = ["version"]
27+
requires-python = ">=3.9"
28+
29+
keywords = [
30+
"SDDS",
31+
]
32+
classifiers = [
33+
"Development Status :: 5 - Production/Stable",
34+
"Intended Audience :: Science/Research",
35+
"License :: OSI Approved :: MIT License",
36+
"Natural Language :: English",
37+
"Operating System :: OS Independent",
38+
"Programming Language :: Python :: 3 :: Only",
39+
"Programming Language :: Python :: 3.9",
40+
"Programming Language :: Python :: 3.10",
41+
"Programming Language :: Python :: 3.11",
42+
"Programming Language :: Python :: 3.12",
43+
"Programming Language :: Python :: Implementation :: CPython",
44+
"Topic :: Scientific/Engineering",
45+
"Topic :: Software Development :: Libraries :: Python Modules",
46+
"Typing :: Typed",
47+
]
48+
49+
dependencies = [
50+
"numpy >= 1.24",
51+
]
52+
53+
[project.optional-dependencies]
54+
test = [
55+
"pytest>=7.0",
56+
"pytest-cov>=2.9",
57+
]
58+
doc = [
59+
"sphinx >= 7.0",
60+
"sphinx_rtd_theme >= 2.0",
61+
]
62+
63+
all = [
64+
"sdds[test]",
65+
"sdds[doc]",
66+
]
67+
68+
[project.urls]
69+
homepage = "https://github.com/pylhc/sdds"
70+
repository = "https://github.com/pylhc/sdds"
71+
documentation = "https://pylhc.github.io/sdds/"
72+
changelog = "https://github.com/pylhc/sdds/blob/master/CHANGELOG.md"

setup.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)