Skip to content

Commit

Permalink
use pyproject.toml for build specification
Browse files Browse the repository at this point in the history
  • Loading branch information
frank1010111 authored and jokva committed Nov 27, 2024
1 parent 4d67821 commit d02f58e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
pip install -r requirements-dev.txt
- name: Build wheel
run: |
python setup.py bdist_wheel
python -m pip build --wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pip install -r requirements-dev.txt
- name: Run tests
run: |
python setup.py pytest
python -m pytest
- name: Build wheel
run: |
python setup.py bdist_wheel
python -m build --wheel
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ["hatchling>=1.0", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "wellpathpy"
dynamic = ["version"]
description = "Light package to load well deviations"
readme = "README.md"
authors = [
{ name = "Robert Leckenby", email = "fracgeol@gmail.com" },
{ name = "Jørgen Kvalsvik", email = "j@lambda.is" },
{ name = "Brendon Hall", email = "brendon.hall@gmail.com" },
]
maintainers = [
]
license = { file = "LICENSE" }
platforms = "any"

dependencies = [
"numpy >=1.10",
]

[project.optional-dependencies]
test = [
"pytest",
"hypothesis",
]

[project.urls]
"Homepage" = "https://github.com/Zabamund/wellpathpy"
"Repository" = "https://github.com/Zabamund/wellpathpy"

[tool.hatch.version]
source = "vcs"

[tool.hatch.metadata]
license = "LGPL-3.0"

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.setuptools_scm]
version_scheme = "post-release"

1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ numpy
setuptools-scm
hypothesis
wheel
build
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

21 changes: 0 additions & 21 deletions setup.py

This file was deleted.

0 comments on commit d02f58e

Please sign in to comment.