diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..83cdefb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[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 = "Brendon Hall", email = "fracgeol@gmail.com" }, + { name = "Jørgen Kvalsvik", email = "fracgeol@gmail.com" } +] +maintainers = [ + { name = "Robert Leckenby", email = "fracgeol@gmail.com" } +] +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" + diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 9af7e6f..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[aliases] -test=pytest \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 9d04e2f..0000000 --- a/setup.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python3 - -from setuptools import setup - -with open("README.md", "r") as f: - long_description = f.read() - -setup(name='wellpathpy', - description='Light package to load well deviations', - long_description=long_description, - author='Robert Leckenby, Brendon Hall, Jørgen Kvalsvik', - author_email='fracgeol@gmail.com', - url='https://github.com/Zabamund/wellpathpy', - packages=['wellpathpy'], - license='LGPL-3.0', - platforms='any', - install_requires=['numpy >=1.10'], - setup_requires=['setuptools >=28', 'setuptools_scm', 'pytest-runner'], - tests_require=['pytest', 'hypothesis'], - use_scm_version=True, - )