From f8be5693a413a4fe5730893a3e3d17df387c5e17 Mon Sep 17 00:00:00 2001 From: delucchi-cmu Date: Mon, 6 Nov 2023 10:21:11 -0500 Subject: [PATCH 1/2] Better readme links --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb4349c2..c8d871c7 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ [![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/latest/) -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/astronomy-commons/hipscat-import) -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hipscat-import/testing-and-coverage.yml) -![Read the Docs](https://img.shields.io/readthedocs/hipscat-import) +[![PyPI](https://img.shields.io/pypi/v/hipscat-import?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/hipscat-import/) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hipscat-import/smoke-test.yml)](https://github.com/astronomy-commons/hipscat-import/actions/workflows/smoke-test.yml) +[![codecov](https://codecov.io/gh/astronomy-commons/hipscat-import/branch/main/graph/badge.svg)](https://codecov.io/gh/astronomy-commons/hipscat-import) +[![Read the Docs](https://img.shields.io/readthedocs/hipscat-import)](https://hipscat-import.readthedocs.io/) +[![benchmarks](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hipscat-import/asv-main.yml?label=benchmarks)](https://astronomy-commons.github.io/hipscat-import/) ## HiPSCat import - Utility for ingesting large survey data into HiPSCat structure. From 28154bbf83e68dc967712675de91a86e94c79d05 Mon Sep 17 00:00:00 2001 From: delucchi-cmu Date: Mon, 6 Nov 2023 10:23:14 -0500 Subject: [PATCH 2/2] Get ready for pylint warnings. --- .copier-answers.yml | 3 ++- .github/workflows/linting.yml | 2 +- .github/workflows/publish-to-pypi.yml | 10 ++++------ pyproject.toml | 4 ++++ 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 07e9dbdc..1f1545a7 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: v1.4.3 +_commit: v1.4.4 _src_path: gh:lincc-frameworks/python-project-template author_email: lincc-frameworks-team@lists.lsst.org author_name: LINCC Frameworks @@ -13,5 +13,6 @@ package_name: hipscat_import preferred_linter: pylint project_license: BSD project_name: hipscat-import +project_organization: astronomy-commons use_gitlfs: none use_isort: true diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 257190f4..b1a41085 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -30,6 +30,6 @@ jobs: pip install .[dev] if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Analyze code with linter - run: | pylint -rn -sn --recursive=y ./src --rcfile=./src/.pylintrc + pylint -rn -sn --recursive=y ./tests --rcfile=./tests/.pylintrc diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 5367eb63..3147bde9 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,5 +1,5 @@ # This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries +# For more information see: https://github.com/pypa/gh-action-pypi-publish#trusted-publishing # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by @@ -19,7 +19,8 @@ jobs: deploy: runs-on: ubuntu-latest - + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Set up Python @@ -33,7 +34,4 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 058e151f..ccabd9ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,10 @@ dev = [ "types-PyYAML", # type stubs for pyyaml ] +[metadata] +long_description = { file = "README.md" } +url = "https://github.com/astronomy-commons/hipscat-import" + [build-system] requires = [ "setuptools>=62", # Used to build and package the Python project