From 7c2fa0adeca724d13160023346f8364b35bc08ad Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 18 Jan 2024 22:01:58 -0500 Subject: [PATCH] assorted cleanups --- LICENSE.txt | 2 +- NEWS.rst | 0 asv.conf.json | 2 +- manylinux_build.sh | 30 -------------------- pantab/newsfragments/.gitignore | 1 - scripts/generate_non_pantab_writeable.py | 36 ------------------------ 6 files changed, 2 insertions(+), 69 deletions(-) delete mode 100644 NEWS.rst delete mode 100755 manylinux_build.sh delete mode 100644 pantab/newsfragments/.gitignore delete mode 100644 scripts/generate_non_pantab_writeable.py diff --git a/LICENSE.txt b/LICENSE.txt index 56f84c56..929affc7 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2018-2023 William Ayd and innobi, LLC +Copyright (c) 2018-2024 William Ayd and innobi, LLC All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/NEWS.rst b/NEWS.rst deleted file mode 100644 index e69de29b..00000000 diff --git a/asv.conf.json b/asv.conf.json index 6740b6ea..3562565a 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -44,7 +44,7 @@ // If missing or the empty string, the tool will be automatically // determined by looking for tools on the PATH environment // variable. - "environment_type": "conda", + "environment_type": "virtualenv", // timeout in seconds for installing any dependencies in environment // defaults to 10 min diff --git a/manylinux_build.sh b/manylinux_build.sh deleted file mode 100755 index 415e8eaf..00000000 --- a/manylinux_build.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -l - -# PYVER2 removes the period from the version -PYVER2="${PYVER//.}" - -# Starting in Python38 the ABI version is no longer required -if [ "$PYVER2" = "37" ] || [ "$PYVER2" = "36" ] -then - ABIVER="m" -else - ABIVER="" -fi - -PYLOC=/opt/python/cp${PYVER2}-cp${PYVER2}${ABIVER} - -# Clear any existing pip caches -which ${PYLOC}/bin/python -${PYLOC}/bin/python -m pip install --upgrade pip -${PYLOC}/bin/python -m pip install --upgrade setuptools wheel auditwheel -${PYLOC}/bin/python -m pip install tableauhyperapi numpy - -# Hack so auditwheel can find libtableauhyperapi -LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PYLOC}/lib/python${PYVER}/site-packages/tableauhyperapi/bin - -cd /io -${PYLOC}/bin/python setup.py bdist_wheel -# TODO: we probably only need to repair one wheel file -for whl in dist/pantab*.whl; do - ${PYLOC}/bin/python -m auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/ -done diff --git a/pantab/newsfragments/.gitignore b/pantab/newsfragments/.gitignore deleted file mode 100644 index f935021a..00000000 --- a/pantab/newsfragments/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!.gitignore diff --git a/scripts/generate_non_pantab_writeable.py b/scripts/generate_non_pantab_writeable.py deleted file mode 100644 index 028ca56d..00000000 --- a/scripts/generate_non_pantab_writeable.py +++ /dev/null @@ -1,36 +0,0 @@ -# Not all types are writeable by pantab but should probably be readable -# This utility script will help generate those files which can be -# incorporate into testing - -import tableauhyperapi as tab_api - -if __name__ == "__main__": - table = tab_api.TableDefinition( - table_name=tab_api.TableName("public", "table"), - columns=[ - tab_api.TableDefinition.Column( - name="Non-Nullable String", - type=tab_api.SqlType.text(), - nullability=tab_api.NOT_NULLABLE, - ), - tab_api.TableDefinition.Column( - name="Non-Nullable Float", - type=tab_api.SqlType.double(), - nullability=tab_api.NOT_NULLABLE, - ), - ], - ) - - with tab_api.HyperProcess( - telemetry=tab_api.Telemetry.DO_NOT_SEND_USAGE_DATA_TO_TABLEAU - ) as hyper: - with tab_api.Connection( - endpoint=hyper.endpoint, - database="non_pantab_writeable.hyper", - create_mode=tab_api.CreateMode.CREATE_AND_REPLACE, - ) as connection: - connection.catalog.create_table(table_definition=table) - - with tab_api.Inserter(connection, table) as inserter: - inserter.add_rows([["row1", 1.0], ["row2", 2.0]]) - inserter.execute()