Skip to content

Commit 8d2a3ed

Browse files
authored
Remove old SDK code (#243)
* Delete old SDK code, docs, and scripts * Move code from src/StreamingDataFrames to root
1 parent a92aa32 commit 8d2a3ed

File tree

1,161 files changed

+407
-83992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,161 files changed

+407
-83992
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: CI
1+
name: 'CI'
22

33
on:
44
push:
5-
branches:
6-
- 'main'
5+
pull_request:
76

87

98
# Run only one workflow per PR or commit
@@ -14,110 +13,34 @@ concurrency:
1413
# Disable default permissions for all jobs
1514
permissions: { }
1615

17-
env:
18-
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
19-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
20-
2116
jobs:
22-
build-python:
17+
lint:
2318
permissions:
2419
contents: read # to fetch code (actions/checkout)
25-
name: Build native code and wheels (${{ matrix.runner.agent }})
26-
runs-on: ${{ matrix.runner.agent }}
27-
container:
28-
image: ${{ matrix.runner.image }}
29-
strategy:
30-
matrix:
31-
runner: [
32-
{
33-
agent: ubuntu-latest,
34-
image: quay.io/pypa/manylinux2014_x86_64,
35-
artifact_name_prefix: linux-amd64,
36-
build_scripts_dir: src/builds/python/linux,
37-
# Empty - the runner is responsible for setting up Python itself
38-
python_ver: ''
39-
},
40-
{
41-
agent: buildjet-4vcpu-ubuntu-2204-arm,
42-
image: quay.io/pypa/manylinux_2_28_aarch64,
43-
artifact_name_prefix: linux-arm64,
44-
build_scripts_dir: src/builds/python/linux,
45-
python_ver: ''
46-
},
47-
{
48-
agent: windows-latest,
49-
image: '',
50-
artifact_name_prefix: windows-amd64,
51-
build_scripts_dir: src/builds/python/windows,
52-
python_ver: 3.8
53-
},
54-
{
55-
agent: macos-latest,
56-
image: '',
57-
artifact_name_prefix: mac-amd64,
58-
build_scripts_dir: src/builds/python/mac,
59-
python_ver: 3.8
60-
},
61-
{
62-
agent: [self-hosted, macOS, ARM64],
63-
image: '',
64-
artifact_name_prefix: mac-arm64,
65-
build_scripts_dir: src/builds/python/mac,
66-
python_ver: 3.11
67-
},
68-
]
69-
fail-fast: false
20+
name: Run linters
21+
runs-on: ubuntu-latest
7022
steps:
7123
- name: Checkout
7224
uses: actions/checkout@v3
73-
- name: Copy LICENSE to src
74-
run: |
75-
cp LICENSE src/LICENSE
76-
- name: Prepare Docker container "${{ matrix.runner.image }}:${{ matrix.runner.arch }}"
77-
if: ${{ matrix.runner.image != '' }}
78-
run: |
79-
yum install clang gcc krb5-devel libstdc++-static python3 -y
80-
- name: Setup Python
81-
if: ${{ matrix.runner.python_ver != '' }}
25+
- name: Setup Python ${{ matrix.python }}
8226
uses: actions/setup-python@v4
8327
with:
84-
python-version: ${{ matrix.runner.python_ver }}
85-
- name: Install wheel
28+
python-version: 3.8
29+
- name: Install linters
8630
run: |
87-
python3 -m pip install --upgrade pip wheel
88-
- name: Install .NET Core SDK
89-
uses: actions/setup-dotnet@v3
90-
with:
91-
dotnet-version: '8.0.100-preview.2.23157.25'
92-
- name: Build native code
93-
working-directory: ${{ matrix.runner.build_scripts_dir }}
31+
python -m pip install -U -r requirements-dev.txt
32+
- name: Run Black
9433
run: |
95-
python3 build_native.py
96-
- name: Upload compiled native files
97-
uses: actions/upload-artifact@v3
98-
with:
99-
name: ${{ matrix.runner.artifact_name_prefix }}-native
100-
path: |
101-
src/PythonClient/src/quixstreams/native/*
102-
if-no-files-found: error
103-
- name: Build wheel
104-
working-directory: ${{ matrix.runner.build_scripts_dir }}
105-
run: |
106-
python3 build_wheel.py
107-
- name: Upload wheel
108-
uses: actions/upload-artifact@v3
109-
with:
110-
name: ${{ matrix.runner.artifact_name_prefix }}-wheel
111-
path: |
112-
src/PythonClient/dist/*.whl
113-
if-no-files-found: error
34+
python -m black --check quixstreams
35+
python -m black --check tests
11436
115-
test-python:
116-
needs: build-python
37+
test:
38+
needs: lint
11739
permissions:
11840
contents: read # to fetch code (actions/checkout)
11941
name: Run Python tests (python${{ matrix.python }})
12042
runs-on: ubuntu-latest
43+
timeout-minutes: 5
12144
strategy:
12245
matrix:
12346
python: [ 3.8 ]
@@ -133,73 +56,8 @@ jobs:
13356
python -m pip install -U pip
13457
- name: Install requirements
13558
run: |
136-
python -m pip install -U -r src/PythonClient/tests/requirements.txt
137-
python -m pip install -U -r src/PythonClient/src/requirements.txt
138-
- name: Download native code to Python project
139-
uses: actions/download-artifact@v3
140-
with:
141-
name: linux-amd64-native
142-
path: src/PythonClient/src/quixstreams/native/
143-
- name: Run unit tests
144-
working-directory: src/PythonClient
59+
python -m pip install -U -r tests/requirements.txt
60+
python -m pip install -U -r requirements.txt
61+
- name: Run tests
14562
run: |
146-
python -m pytest -s -v --ignore=tests/quixstreams/manual --ignore=tests/quixstreams/integrationtests
147-
- name: Run integration tests
148-
working-directory: src/PythonClient
149-
run: |
150-
python -m pytest -v tests/quixstreams/integrationtests
151-
152-
test-dotnet:
153-
permissions:
154-
contents: read # to fetch code (actions/checkout)
155-
name: Run C# tests
156-
runs-on: ${{ matrix.runner.agent }}
157-
strategy:
158-
matrix:
159-
runner: [
160-
{ agent: ubuntu-latest },
161-
]
162-
fail-fast: false
163-
steps:
164-
- name: Checkout
165-
uses: actions/checkout@v3
166-
- name: Install .NET Core SDK
167-
uses: actions/setup-dotnet@v3
168-
with:
169-
dotnet-version: '8.0.100-preview.2.23157.25'
170-
- name: Run C# tests
171-
working-directory: src/CsharpClient
172-
run: |
173-
dotnet test -l "console;verbosity=normal" --blame --blame-hang-timeout=30s
174-
175-
build-dotnet:
176-
permissions:
177-
contents: read # to fetch code (actions/checkout)
178-
name: Build C# nugets
179-
runs-on: windows-latest
180-
needs: test-dotnet
181-
steps:
182-
- name: Checkout
183-
uses: actions/checkout@v3
184-
- name: Copy LICENSE to src
185-
run: |
186-
cp LICENSE src/LICENSE
187-
- name: Setup Python
188-
uses: actions/setup-python@v4
189-
with:
190-
python-version: 3.8
191-
- name: Install .NET Core SDK
192-
uses: actions/setup-dotnet@v3
193-
with:
194-
dotnet-version: '8.0.100-preview.2.23157.25'
195-
- name: Build nugets
196-
working-directory: src/builds/csharp/nuget
197-
run: |
198-
python3 build_nugets.py
199-
- name: Upload nugets
200-
uses: actions/upload-artifact@v3
201-
with:
202-
name: windows-x64-nugets
203-
path: |
204-
src/builds/csharp/nuget/build-result/*.nupkg
205-
if-no-files-found: error
63+
python -m pytest -s -v

.github/workflows/streamingdataframes-tests.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.gitignore

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,34 @@
11
.DS_Store
2-
.idea/
2+
33
certificates/
44

5+
#Ignore PyCharm files
6+
.idea/
7+
8+
# Jupyter checkpoints
9+
.ipynb_checkpoints/
10+
11+
# pytest cache
12+
.pytest_cache
13+
14+
# coverage reports
15+
.coverage
16+
17+
#ignore environment
18+
env/
19+
venv/
20+
21+
#ignore build results
22+
/build/
23+
dist/
24+
*egg-info
25+
**/__pycache__/**
26+
27+
# Byte-compiled / optimized / DLL files
28+
__pycache__/
29+
*.py[cod]
30+
*$py.class
31+
532
#direnv
633
.direnv/
7-
.envrc
34+
.envrc

.pre-commit-config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# Pre-commit hooks for src/StreamingDataFrames
2-
3-
files: 'src/StreamingDataFrames/.*'
41
repos:
52
- repo: https://github.com/psf/black
63
rev: '23.7.0'
74
hooks:
85
- id: black
96
types: [python]
107
language_version: python3
11-
args: [ --config=src/StreamingDataFrames/pyproject.toml, --check ]
8+
args: [ --config=pyproject.toml, --check ]
129
verbose: true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)