Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build

on:
push:
branches:
- master
tags:
- v*.*
pull_request:
workflow_dispatch:


jobs:
build_wheel:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# Used to host cibuildwheel
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build wheel
run: pip wheel -w ./wheelhouse . --no-deps

- uses: actions/upload-artifact@v4
with:
name: cibw-wheel
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheel, build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/kclpy-ext
permissions:
id-token: write
# if: github.event_name == 'release' && github.event.action == 'published'
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- name: List artifacts
run: ls -lah dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Why this Fork for LocalStack?

The official AWS python package does not publish the wheels, thus causing the need to always pull from maven on every install.
This destabilizes our pipeline because maven might rate-limit our runners when accessing the JARs.

# Amazon Kinesis Client Library for Python

[![Version](https://img.shields.io/pypi/v/amazon-kclpy.svg?style=flat)](https://pypi.org/project/amazon-kclpy/) [![UnitTestCoverage](https://github.com/awslabs/amazon-kinesis-client-python/actions/workflows/run-unit-tests.yml/badge.svg)](https://github.com/awslabs/amazon-kinesis-client-python/actions/workflows/run-unit-tests.yml)
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[metadata]
description-file = README.md
description_file = README.md
[aliases]
test=pytest
test=pytest
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def run(self):
pass

setup(
name=PACKAGE_NAME,
name=PACKAGE_NAME + "-ext",
version=PACKAGE_VERSION,
description='A python interface for the Amazon Kinesis Client Library MultiLangDaemon',
description='A python interface for the Amazon Kinesis Client Library MultiLangDaemon - ext',
license='Apache-2.0',
packages=[PACKAGE_NAME, PACKAGE_NAME + "/v2", PACKAGE_NAME + "/v3", 'samples'],
scripts=glob.glob('samples/*py'),
Expand All @@ -242,7 +242,7 @@ def run(self):
setup_requires=["pytest-runner"],
tests_require=["pytest", "mock"],
cmdclass=commands,
url="https://github.com/awslabs/amazon-kinesis-client-python",
url="https://github.com/localstack/amazon-kinesis-client-python",
keywords="amazon kinesis client library python",
zip_safe=False,
)
Loading