diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 754745fd..f0c8f50e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,7 @@ on: pull_request: jobs: + tests: uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 with: @@ -40,3 +41,16 @@ jobs: runs-on: ubuntu-20.04 - linux: py310-test-bitlevel runs-on: ubuntu-20.04 + + + publish: + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1 + with: + test_extras: test + test_command: pytest --pyargs hyperion -m "not requires_hyperion_binaries" + targets: | + - linux + - macos + #- windows + secrets: + pypi_token: ${{ secrets.pypi_token }} diff --git a/docs/installation/installation.rst b/docs/installation/installation.rst index b201471b..b9d95c4b 100644 --- a/docs/installation/installation.rst +++ b/docs/installation/installation.rst @@ -96,11 +96,11 @@ Python module Install the Python module with:: - pip install . + pip install ".[recommended]" or:: - pip install . --user + pip install ".[recommended]" --user if you do not have root access. Check that the module installed correctly:: diff --git a/pyproject.toml b/pyproject.toml index 59c1b684..9002c799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,11 @@ [build-system] requires = ["setuptools", "setuptools_scm>=6.2", - "wheel", - "oldest-supported-numpy"] + "numpy>=2.0.0rc1"] build-backend = 'setuptools.build_meta' [tool.setuptools_scm] write_to = "hyperion/_version.py" + +[tool.cibuildwheel] +skip = "pp* *-musllinux* *aarch64* *i686*" diff --git a/setup.cfg b/setup.cfg index 1a823804..2d43d0cd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,10 +15,11 @@ install_requires = matplotlib>=1.5 astropy>=1.2 h5py>=2.4 - yt>=3.2 decorator [options.extras_require] +recommended = + yt>=3.2 docs = sphinx numpydoc diff --git a/tox.ini b/tox.ini index b7684f2e..36241449 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,7 @@ setenv = deps = bitlevel: numpy==1.21.* extras = + recommended test: test allowlist_externals = {toxinidir}/configure