From e5c47e5990fa6b3385261e087f1dea0cb01243fb Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Thu, 10 Nov 2022 12:12:16 +1300 Subject: [PATCH] Create pyproject.toml for metadata and dependencies --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 15 +++++++++++++++ CITATION.cff | 18 +++++++++--------- pyproject.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ setup.py | 24 +++--------------------- 5 files changed, 70 insertions(+), 30 deletions(-) delete mode 100644 .DS_Store create mode 100644 .gitignore create mode 100644 pyproject.toml diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index be3d1a8170164611c0a50168ecd7851fa770ac76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK-Hy^g6h55LWkagw4n6NCwkf_<%jb5l>TgpOXX$dVNix_Tv z3cWV*S$qH=#0SuCe%zFTS#LD1nUkFPPG`=UpKty;M8xW2w?b4PA_K}XlSi^fcsbV< z*-$xKKql&lsZEc_qYm{~ymf|VKr`^KF~Ik3k#@9M@5(3kWB-4`>>;w|L2r{o_g>KDMITuG(y~TIffN~ zC&rmXL)EV@&d~RwxLp3qHa0Wo&SwoHZ{#oLUt0ZeV#Rhmj_UU4Ise+XGMHt56UMmpk9jD_lQhRUX~tGi}t8VkIABD%KKZ&J4a98xl0Wk`c1Sj zAa^-JERIi0izC8h$5?7Z(WBHv6JH!j|I2iM-aNoKIv4{V%jncG@x_v?W9y`j)452- zWoaVXdxZ;al{wBu(i@*=P1KSzE}XTF>;7s6Gy{K}0e(K1P>wZ)3yI?BKq8(1zznj5 zz~(;%JjPU5Q@D_b5(tx_KpD!^6NAZcV?8Y>!{xp?!;;m zb*dTA3@kISDL)JR{%`*J{l6Tfzcd4yf&YpDmT6dxI)b{8a{i01SKRt^fc4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3a6b0c --- /dev/null +++ b/.gitignore @@ -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 diff --git a/CITATION.cff b/CITATION.cff index ab5d360..b8793d0 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -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 \ No newline at end of file +# version: 1.0.0 +# doi: 10.5281/zenodo. +# date-released: 2021-10-13 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2eea79d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = [ + "setuptools>=61", +] +build-backend = "setuptools.build_meta" + +[project] +name = "geostatspy" +dynamic = ["version"] +authors = [ + {name = "Michael Pyrcz", email = "mpyrcz@austin.utexas.edu"}, +] +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__"} diff --git a/setup.py b/setup.py index 1c12b0e..c4dfa9f 100644 --- a/setup.py +++ b/setup.py @@ -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="mpyrcz@austin.utexas.edu", - 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()