-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from astrofrog/update-infrastructure
Update infrastructure and fix compatibility with Numpy 2.0
- Loading branch information
Showing
12 changed files
with
180 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: ".github/workflows" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- pre-commit-ci | ||
categories: | ||
- title: Bug Fixes | ||
labels: | ||
- bug | ||
- title: New Features | ||
labels: | ||
- enhancement | ||
- title: Documentation | ||
labels: | ||
- Documentation | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow takes the GitHub release notes an updates the changelog on the | ||
# main branch with the body of the release notes, thereby keeping a log in | ||
# the git repo of the changes. | ||
|
||
name: "Update Changelog" | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
ref: main | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@61ce794778aa787ea8d204d9fe2928543cb2fe40 # v1.11.0 | ||
with: | ||
release-notes: ${{ github.event.release.body }} | ||
latest-version: ${{ github.event.release.name }} | ||
path-to-changelog: CHANGES.md | ||
|
||
- name: Commit updated CHANGELOG | ||
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGES.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,98 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
|
||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel"] | ||
requires = [ | ||
"setuptools>=61.2", | ||
"setuptools-scm", | ||
] | ||
|
||
build-backend = 'setuptools.build_meta' | ||
[project] | ||
name = "astrodendro" | ||
description = "Python package for computation of astronomical dendrograms" | ||
readme.content-type = "text/markdown" | ||
readme.file = "README.md" | ||
license.text = "MIT" | ||
authors = [ | ||
{ name = "Thomas Robitaille", email = "[email protected]" }, | ||
{ name = "Chris Beaumont" }, | ||
{ name = "Adam Ginsburg" }, | ||
{ name = "Braden MacDonald" }, | ||
{ name = "and Erik Rosolowsky" }, | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3" | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
dependencies = [ | ||
"astropy>=5", | ||
"h5py>=3", | ||
"matplotlib>=3.3", | ||
"numpy>=1.20", | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"aplpy", | ||
"numpydoc", | ||
"sphinx<7", | ||
"sphinx-astropy", | ||
] | ||
test = [ | ||
"pytest", | ||
"pytest-cov", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://www.dendrograms.org/" | ||
documentation = "https://dendrograms.readthedocs.io/en/stable/" | ||
repository = "https://github.com/dendrograms/astrodendro" | ||
|
||
[tool.setuptools] | ||
zip-safe = false | ||
license-files = [ | ||
"LICENSE", | ||
] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools.package-data] | ||
"astrodendro.tests" = [ | ||
"*.npz", | ||
"benchmark_data/*.fits", | ||
] | ||
"astrodendro.io.tests" = [ | ||
"data/*", | ||
] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "astrodendro/version.py" | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
"astrodendro/conftest.py", | ||
"astrodendro/tests/*", | ||
"astrodendro/*/tests/*", | ||
"astrodendro/extern/*", | ||
"astrodendro/version*", | ||
"*/astrodendro/conftest.py", | ||
"*/astrodendro/tests/*", | ||
"*/astrodendro/*/tests/*", | ||
"*/astrodendro/extern/*", | ||
"*/astrodendro/version*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"except ImportError", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"def main\\(.*\\):", | ||
"pragma: py{ignore_python_version}", | ||
"def _ipython_key_completions_", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters