Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: ".github/workflows" # Location of package manifests
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"
cooldown:
default-days: 7
17 changes: 8 additions & 9 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Publish to PyPI
name: build

on:
release:
types: [released]
types: [ released ]
pull_request:
workflow_dispatch:

jobs:
publish:
uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@99401c364fa51c9c507d3cd6d272049278ac0b2c # v2.4.0
with:
test: false
build_platform_wheels: false # Set to true if your package contains a C extension
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }}
secrets:
user: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} # WARNING: Do not hardcode secret values here! If you want to use a different user or password, you can override this secret by creating one with the same name in your Github repository settings.
test_password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER_TEST }}
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ docs/build
dist
__pycache__
pip-wheel-metadata
version.py
coverage.xml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# COSTools

[![Build status](https://dev.azure.com/spacetelescope/costools/_apis/build/status/spacetelescope.costools?branchName=master)](https://dev.azure.com/spacetelescope/costools/_build/latest?definitionId=5&branchName=master)
[![build](https://github.com/spacetelescope/costools/actions/workflows/publish-to-pypi.yml/badge.svg?branch=master)](https://github.com/spacetelescope/costools/actions/workflows/publish-to-pypi.yml)
[![tests](https://github.com/spacetelescope/costools/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/spacetelescope/costools/actions/workflows/tests.yml)
[![Codecov](https://codecov.io/gh/spacetelescope/costools/branch/master/graph/badge.svg)](https://codecov.io/gh/spacetelescope/costools)
[![ReadtheDocs](https://readthedocs.org/projects/costools/badge/?version=latest)(http://costools.readthedocs.io/en/latest/)
[![Powered by Astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)(http://www.astropy.org)
Expand Down
37 changes: 0 additions & 37 deletions azure-pipelines.yml

This file was deleted.

59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
[project]
name = "costools"
description = "Tools for COS (Cosmic Origins Spectrograph)"
authors = [
{ name = "Warren Hack" },
{ name = "Nadezhda Dencheva" },
{ name = "Phil Hodge" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"astropy",
"calcos",
"numpy",
"stsci.tools",
]
dynamic = [
"version",
]
license = "BSD-3-Clause"
license-files = [
"LICENSE.txt"
]
readme = "README.md"

[project.optional-dependencies]
docs = [
"sphinx",
"numpydoc",
"sphinx_rtd_theme>1.2.0",
]
test = [
"pytest",
"pytest-cov",
]

[project.scripts]
timefilter = "costools.timefilter:main"
add_cos_s_region = "costools.add_cos_s_region:call_main"

[build-system]
requires = [
"setuptools>=38.2.5",
"setuptools_scm",
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
include-package-data = false

[tool.setuptools.package-data]
costools = [
"pars/*",
"*.help",
]

[tool.setuptools_scm]
version_file = "src/costools/version.py"

59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.