From ed1622dc3a3c8e633c5cc613c4a7806ce1df1e3e Mon Sep 17 00:00:00 2001 From: Mees Fix Date: Tue, 20 Jun 2023 10:22:03 -0500 Subject: [PATCH 1/2] Adding publish to pypi --- .github/workflows/publish-to-pypi.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..b76202e --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,17 @@ +name: Publish to PyPI + +on: + release: + types: [released] + workflow_dispatch: + +jobs: + publish: + uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master + with: + test: false + build_platform_wheels: false # Set to true if your package contains a C extension + 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 }} From a291f5bd467fc8d9deadf7cfd67c8a3094372a6c Mon Sep 17 00:00:00 2001 From: Mees Fix Date: Tue, 20 Jun 2023 14:44:18 -0500 Subject: [PATCH 2/2] Adding license --- LICENSE | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e414a49 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License +​ +Copyright (c) 2010-2021, Space Telescope Science Institute, AURA +All rights reserved. +​ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +​ +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +​ +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +​ +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. +​ +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file