From ddae67de4154067d2317999f6cf6c31dd48ae047 Mon Sep 17 00:00:00 2001 From: Theodore Kisner Date: Thu, 5 May 2022 07:54:25 -0700 Subject: [PATCH] * Disable scheduled wheel tests on legacy toast2 branch. * Add files for toast-cmb legacy wrapper package on PyPI. This package simply depends on the new toast package. --- .github/workflows/wheels.yml | 6 +++--- alias/build.sh | 5 +++++ alias/setup.py | 36 ++++++++++++++++++++++++++++++++++++ alias/upload.sh | 4 ++++ 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100755 alias/build.sh create mode 100644 alias/setup.py create mode 100755 alias/upload.sh diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index c0db2f7a6..a5f47036d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -9,9 +9,9 @@ name: Test Binary Wheels # branches: [ master ] # Uncomment here for production and comment out push / PR above. -on: - schedule: - - cron: '0 4 * * *' +# on: +# schedule: +# - cron: '0 4 * * *' jobs: sdist: diff --git a/alias/build.sh b/alias/build.sh new file mode 100755 index 000000000..7b6060a5b --- /dev/null +++ b/alias/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +python3 setup.py sdist +python3 setup.py bdist_wheel + diff --git a/alias/setup.py b/alias/setup.py new file mode 100644 index 000000000..213fb684f --- /dev/null +++ b/alias/setup.py @@ -0,0 +1,36 @@ +# This setup.py is for building a legacy toast-cmb package on PyPI. + +import os +import sys + +from setuptools import setup + + +conf = dict() +conf["name"] = "toast-cmb" +conf["description"] = "ALIAS to Time Ordered Astrophysics Scalable Tools" +conf["long_description"] = "This package is a deprecated alias. Use https://pypi.org/project/toast instead." +conf["long_description_content_type"] = "text/markdown" +conf["author"] = "Theodore Kisner, Reijo Keskitalo" +conf["author_email"] = "tskisner.public@gmail.com" +conf["license"] = "BSD" +conf["url"] = "https://github.com/hpc4cmb/toast" +conf["version"] = "2.3.14" +conf["python_requires"] = ">=3.7.0" +conf["setup_requires"] = (["wheel"],) +conf["install_requires"] = ["toast",] +conf["platforms"] = "all" +conf["zip_safe"] = False +conf["classifiers"] = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Operating System :: POSIX", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Topic :: Scientific/Engineering :: Astronomy", +] + +setup(**conf) diff --git a/alias/upload.sh b/alias/upload.sh new file mode 100755 index 000000000..dcd550eb2 --- /dev/null +++ b/alias/upload.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +twine upload dist/toast* +