You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2022/12/23 16:13:55 UTC

[arrow-adbc] branch main updated: fix(python): make package names consistent (#258)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new bc917fd  fix(python): make package names consistent (#258)
bc917fd is described below

commit bc917fdb8564a76ceaf30f45f40a3f07a7dab023
Author: David Li <li...@gmail.com>
AuthorDate: Fri Dec 23 11:13:49 2022 -0500

    fix(python): make package names consistent (#258)
---
 ci/scripts/python_wheel_unix_build.sh        | 4 +++-
 python/adbc_driver_manager/pyproject.toml    | 2 +-
 python/adbc_driver_postgresql/pyproject.toml | 2 +-
 python/adbc_driver_sqlite/pyproject.toml     | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ci/scripts/python_wheel_unix_build.sh b/ci/scripts/python_wheel_unix_build.sh
index e62571a..0636574 100755
--- a/ci/scripts/python_wheel_unix_build.sh
+++ b/ci/scripts/python_wheel_unix_build.sh
@@ -89,6 +89,8 @@ python -m pip install --upgrade pip auditwheel cibuildwheel delocate setuptools
 for component in $COMPONENTS; do
     pushd ${source_dir}/python/$component
 
+    component_dashes=${component//_/-}
+
     echo "=== Clean build artifacts ==="
     rm -rf ./build ./dist ./repaired_wheels ./$component/*.so ./$component/*.so.*
 
@@ -103,7 +105,7 @@ for component in $COMPONENTS; do
     # causing the build to fail.
     python setup.py sdist
     if [[ "$component" = "adbc_driver_manager" ]]; then
-        python -m cibuildwheel --output-dir repaired_wheels/ dist/$component-*.tar.gz
+        python -m cibuildwheel --output-dir repaired_wheels/ dist/$component_dashes-*.tar.gz
     else
         python -m pip wheel -w dist -vvv .
 
diff --git a/python/adbc_driver_manager/pyproject.toml b/python/adbc_driver_manager/pyproject.toml
index 91957fb..d2f980f 100644
--- a/python/adbc_driver_manager/pyproject.toml
+++ b/python/adbc_driver_manager/pyproject.toml
@@ -16,7 +16,7 @@
 # under the License.
 
 [project]
-name = "adbc_driver_manager"
+name = "adbc-driver-manager"
 description = "A generic entrypoint for ADBC drivers."
 authors = [{name = "Apache Arrow Developers", email = "dev@arrow.apache.org"}]
 license = {text = "Apache-2.0"}
diff --git a/python/adbc_driver_postgresql/pyproject.toml b/python/adbc_driver_postgresql/pyproject.toml
index 78b6de1..ebc453d 100644
--- a/python/adbc_driver_postgresql/pyproject.toml
+++ b/python/adbc_driver_postgresql/pyproject.toml
@@ -16,7 +16,7 @@
 # under the License.
 
 [project]
-name = "adbc_driver_postgresql"
+name = "adbc-driver-postgresql"
 description = "A libpq-based ADBC driver for working with PostgreSQL."
 authors = [{name = "Apache Arrow Developers", email = "dev@arrow.apache.org"}]
 license = {text = "Apache-2.0"}
diff --git a/python/adbc_driver_sqlite/pyproject.toml b/python/adbc_driver_sqlite/pyproject.toml
index 86b3739..b0e5921 100644
--- a/python/adbc_driver_sqlite/pyproject.toml
+++ b/python/adbc_driver_sqlite/pyproject.toml
@@ -16,7 +16,7 @@
 # under the License.
 
 [project]
-name = "adbc_driver_sqlite"
+name = "adbc-driver-sqlite"
 description = "An ADBC driver for working with SQLite."
 authors = [{name = "Apache Arrow Developers", email = "dev@arrow.apache.org"}]
 license = {text = "Apache-2.0"}