From b60f63392390bb7a6f84d98fba8c88dc9bb22958 Mon Sep 17 00:00:00 2001 From: tsutterley Date: Mon, 18 Nov 2024 14:46:47 -0800 Subject: [PATCH] chore: bump version to `0.1.0` fix: fully modernize build fix: modernize publication to pypi --- .github/workflows/python-publish.yml | 6 ++-- .gitignore | 1 + CITATION.cff | 33 +++++++++++++++++++++ MANIFEST.in | 1 - doc/source/release_notes/release-v0.1.0.rst | 11 +++++++ pyproject.toml | 4 +++ setup.py | 19 ------------ version.txt | 2 +- 8 files changed, 53 insertions(+), 24 deletions(-) create mode 100644 CITATION.cff create mode 100644 doc/source/release_notes/release-v0.1.0.rst delete mode 100644 setup.py diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2c2e5b0..b117abd 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,12 +21,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel - twine upload dist/* + python -m build + python -m twine upload dist/* diff --git a/.gitignore b/.gitignore index f8fec0a..aa77063 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ wheels/ pythonenv*/ setup-miniconda-patched-environment.yml .vscode +_version.py # OS generated files # ###################### .DS_Store diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..687d9b4 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,33 @@ +# This CITATION.cff file was generated with cffinit. +# Visit https://bit.ly/cffinit to generate yours today! + +cff-version: 1.2.0 +title: IS2view +message: Interactive visualization and data extraction tool for the ICESat-2 ATL14/15 Gridded Land Ice Height Products +type: software +authors: + - given-names: Tyler + family-names: Sutterley + affiliation: University of Washington, Applied Physics Laboratory + - given-names: Ben + family-names: Smith + affiliation: University of Washington, Applied Physics Laboratory +identifiers: + - type: doi + value: 10.5281/zenodo.8015463 + description: Zenodo Archive +repository-code: 'https://github.com/tsutterley/IS2view' +url: 'https://is2view.readthedocs.io' +repository: 'https://pypi.org/project/IS2view' +repository-artifact: 'https://anaconda.org/conda-forge/is2view' +doi: "10.5281/zenodo.8015463" +version: "0.1.0" +date-released: "2024-11-18" +keywords: + - ICESat-2 + - elevation + - digital elevation models + - ipython + - jupyter + - graphics +license: MIT diff --git a/MANIFEST.in b/MANIFEST.in index 7135f1b..2a8b402 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,3 @@ prune doc* prune notebooks* exclude *.cfg exclude *.yml -include version.txt diff --git a/doc/source/release_notes/release-v0.1.0.rst b/doc/source/release_notes/release-v0.1.0.rst new file mode 100644 index 0000000..a9767b1 --- /dev/null +++ b/doc/source/release_notes/release-v0.1.0.rst @@ -0,0 +1,11 @@ +################## +`Release v0.1.0`__ +################## + +* ``refactor``: modernize build with ``pyproject.toml`` (`#44 `_) +* ``feat``: generalize hash function to use any available algorithm (`#44 `_) +* ``chore``: improve optional dependencies in build (`#45 `_) +* ``fix``: update CMR search utility to replace deprecated scrolling (`#46 `_) +* ``fix``: change default request type to ``application/netcdf`` (`#47 `_) + +.. __: https://github.com/tsutterley/IS2view/releases/tag/0.1.0 diff --git a/pyproject.toml b/pyproject.toml index 911eff0..593ef65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,3 +92,7 @@ omit = [ show_missing = true precision = 2 +[tool.setuptools_scm] +local_scheme = "node-and-date" +version_scheme = "python-simplified-semver" +version_file = "IS2view/_version.py" diff --git a/setup.py b/setup.py deleted file mode 100644 index ac36b7e..0000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -from setuptools import setup - -# get version -with open('version.txt', mode='r', encoding='utf8') as fh: - fallback_version = fh.read() - -# semantic version configuration for setuptools-scm -setup_requires = ["setuptools_scm"] -use_scm_version = { - "relative_to": __file__, - "local_scheme": "node-and-date", - "version_scheme": "python-simplified-semver", - "fallback_version":fallback_version, -} - -setup( - name='IS2view', - use_scm_version=use_scm_version -) diff --git a/version.txt b/version.txt index c5d54ec..6e8bf73 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.9 +0.1.0