-
Notifications
You must be signed in to change notification settings - Fork 1
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 #9 from AstarVienna/hb/pyproject
Use pyproject.toml and DevOps workflow
- Loading branch information
Showing
12 changed files
with
141 additions
and
173 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,14 @@ | ||
name: Check Markdown links | ||
|
||
on: | ||
push: | ||
schedule: | ||
- # Run every day at 5:00 UTC | ||
- cron: "0 5 * * *" | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 |
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,25 @@ | ||
name: Minimum Dependencies | ||
# Installs the minimum versions of the dependencies and runs the tests. | ||
# This test will lower the chance that users botch their installation by | ||
# only upgrading this project but not the dependencies. | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev_master | ||
pull_request: | ||
branches: | ||
- master | ||
- dev_master | ||
|
||
# Allows you to run this workflow manually from the Actions tab. | ||
workflow_dispatch: | ||
|
||
schedule: | ||
- # Run every day at 5:00 UTC. | ||
- cron: "0 5 * * *" | ||
|
||
jobs: | ||
call-minimum-dependencies: | ||
uses: AstarVienna/DevOps/.github/workflows/minimumdependencies.yml@master |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev_master | ||
pull_request: | ||
branches: | ||
- master | ||
- dev_master | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-tests: | ||
uses: AstarVienna/DevOps/.github/workflows/tests.yml@master |
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,23 @@ | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
|
||
# If using Sphinx, optionally build your docs in additional formats such as PDF | ||
# formats: [] # ignore htmlzip. html is always run |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
[project] | ||
name = "speXtra" | ||
version = "0.34-alpha" | ||
description = "Tool to manage and manipulate astronomical spectra" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
# When updating the version, also update the versions in .github/workflows/* | ||
license = {text = "License :: OSI Approved :: MIT License"} | ||
authors = [ | ||
{name = "Miguel Verdugo", email="[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Kieran Leschinski", email="[email protected]"}, | ||
{name = "Hugo Buddelmeijer", email="[email protected]"}, | ||
] | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
] | ||
dependencies = [ | ||
# Try to keep the dependencies on lower versions that have a wheel | ||
# package on PyPI, for minimumdependencies.yml | ||
"numpy>=1.18.0", | ||
"astropy>=4.0", | ||
"synphot>=1.1.0", | ||
"pyyaml>5.2", | ||
"scipy>=1.4.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest>=5.0.0", | ||
"pytest-cov", | ||
"matplotlib>=3.2.0", | ||
] | ||
docs = [ | ||
"sphinx>=4.3.0", | ||
"sphinx-rtd-theme>=0.5.1", | ||
"jupyter_sphinx==0.2.3", | ||
"sphinxcontrib-apidoc", | ||
"nbsphinx", | ||
"numpydoc", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://spextra.readthedocs.io/en/latest/" | ||
"Source" = "https://github.com/AstarVienna/speXtra" | ||
"Bug Reports" = "https://github.com/AstarVienna/speXtra/issues" | ||
|
||
[tool.setuptools] | ||
packages = ["spextra"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--strict-markers" | ||
markers = [ | ||
"webtest: marks tests as requiring network (deselect with '-m \"not webtest\"')", | ||
] |
This file was deleted.
Oops, something went wrong.
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,3 +1,2 @@ | ||
# THIS FILE GENERATED BY speXtra setup.py | ||
version = '0.33' | ||
date = '2023-03-21' | ||
from importlib import metadata | ||
version = metadata.version(__package__) |