Skip to content

Commit 166766a

Browse files
committed
Update build to use pyproject.toml and hatch
Remove setup.py
1 parent b11dd95 commit 166766a

3 files changed

Lines changed: 39 additions & 72 deletions

File tree

labkey/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__title__ = "labkey"
17-
__version__ = "4.0.2"
18-
__author__ = "LabKey"
19-
__license__ = "Apache License 2.0"

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name="labkey"
7+
description = "Python client API for LabKey Server"
8+
dependencies = ["requests>=2.32.5"]
9+
requires-python = ">=3.11"
10+
license = "Apache-2.0"
11+
license-files = ["LICENSE.txt"]
12+
keywords = ["labkey"]
13+
maintainers = [{ name = "Alan Vezina", email="alanv@labkey.com" }]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Environment :: Console",
17+
"Intended Audience :: Science/Research",
18+
"Intended Audience :: System Administrators",
19+
"Operating System :: MacOS",
20+
"Operating System :: Microsoft",
21+
"Operating System :: POSIX",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
26+
"Topic :: Scientific/Engineering",
27+
]
28+
version = "4.0.2"
29+
30+
[tool.hatch.build.targets.sdist]
31+
only-include = ["labkey"]
32+
33+
[project.optional-dependencies]
34+
tests = ["pytest>=9.0.2", "mock>=5.2.0", "pytest-cov>=7.0.0"]
35+
dev = ["black>=26.1.0", "pytest>=9.0.2", "mock>=5.2.0", "pytest-cov>=7.0.0", "hatch>=1.16.4"]
36+
37+
[project.urls]
38+
Homepage = "https://github.com/LabKey/labkey-api-python"
39+
140
[tool.black]
241
line-length = 100

setup.py

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

0 commit comments

Comments
 (0)