diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..12215c1f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: build + +on: + release: + types: [ released ] + pull_request: + workflow_dispatch: + +jobs: + build: + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 + with: + upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} + secrets: + pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f5cbe8..b1fed832 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml deleted file mode 100644 index b76202e0..00000000 --- a/.github/workflows/publish-to-pypi.yml +++ /dev/null @@ -1,17 +0,0 @@ -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 }} diff --git a/README.md b/README.md index 3b6558aa..014010dd 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ The following describes the typical work flow for contributing to the pysiaf pro 11. Delete your local copy of your branch. ### Installation -This package is supported in python 3.8 and 3.9 +This package is supported in python 3.10+ `pip install pysiaf` diff --git a/pyproject.toml b/pyproject.toml index 773b662c..a377a931 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ dependencies = [ "lxml>=4.6.4", "matplotlib>=3.4.3", "numpy>=1.21.4", - "numpydoc>=1.1.0", "openpyxl>=3.0.9", "requests>=2.26.0", "scipy>=1.7.2", @@ -25,6 +24,7 @@ dependencies = [ dynamic = [ "version", ] +requires-python = ">=3.10" [project.readme] file = "README.md" @@ -40,7 +40,7 @@ repository = "https://github.com/spacetelescope/pysiaf" [project.optional-dependencies] test = [ - 'pytest', + "pytest", ] docs = [ "stsci-rtd-theme", @@ -48,6 +48,7 @@ docs = [ "sphinx-automodapi", "sphinx>=7.2.5", "numpy", + "numpydoc>=1.1.0", "matplotlib", "scipy", "tomli; python_version<\"3.11\"",