Skip to content

Commit

Permalink
Merge pull request #41 from mwtoews/pyproject
Browse files Browse the repository at this point in the history
Create pyproject.toml for metadata and dependencies
  • Loading branch information
GeostatsGuy authored Jul 3, 2024
2 parents 8ec5340 + e5c47e5 commit c4a3406
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 30 deletions.
Binary file removed .DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# Distribution / packaging
build/
dist/
*.egg-info/
MANIFEST

# Jupyter Notebook
.ipynb_checkpoints

# Misc
.DS_Store
18 changes: 9 additions & 9 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ authors:
orcid: https://orcid.org/0000-0002-5983-219X
- family-names: Jo
given-names: Honggeun
orcid:
# orcid:
- family-names: Kupenko
given-names: Anton
orcid:
# orcid:
- family-names: Liu
given-names: Wendi
orcid:
# orcid:
- family-names: Gigliotti
given-names: Alex E.
orcid:
# orcid:
- family-names: Salomaki
given-names: Travis
orcid:
# orcid:
- family-names: Javier
given-names: Santos
orcid:
# orcid:
title: "GeostatsPy: Geostatistical Library in Python"
version: 1.0.0
doi: 10.5281/zenodo.
date-released: 2021-10-13
# version: 1.0.0
# doi: 10.5281/zenodo.
# date-released: 2021-10-13
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = [
"setuptools>=61",
]
build-backend = "setuptools.build_meta"

[project]
name = "geostatspy"
dynamic = ["version"]
authors = [
{name = "Michael Pyrcz", email = "[email protected]"},
]
description = "Geostatistical methods from GSLIB: Geostatistical Library translated and reimplemented in Python"
readme = "README.md"
keywords = ["geostatistics", "GSLIB"]
license = {text = "MIT"}
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.7"
dependencies = [
"matplotlib",
"numpy",
"numba",
"pandas",
"scipy",
"statsmodels",
]

[project.urls]
Source = "https://github.com/GeostatsGuy/GeostatsPy"

[tool.setuptools.packages.find]
include = [
"geostatspy",
"geostatspy.*",
]

[tool.setuptools.dynamic]
version = {attr = "geostatspy.__version__"}
24 changes: 3 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
import setuptools
from geostatspy import __version__
"""See pyproject.toml for project metadata."""
from setuptools import setup

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="geostatspy",
version=__version__,
author="Michael Pyrcz",
author_email="[email protected]",
description="Geostatistical methods from GSLIB: Geostatistical Library translated and reimplemented in Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/GeostatsGuy/GeostatsPy",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
setup()

0 comments on commit c4a3406

Please sign in to comment.