Skip to content

Commit 38db2d1

Browse files
authored
fix: publish of sdist (#599)
1 parent 350ee86 commit 38db2d1

6 files changed

Lines changed: 25 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,7 @@ jobs:
144144
run: |
145145
python -m pip install --upgrade build wheel setuptools setuptools-rust
146146
- name: Build wheel
147-
run: python -m build --wheel --no-isolation
148-
149-
- uses: actions/upload-artifact@v4
150-
with:
151-
name: wheel
152-
path: dist/*.tar.gz
147+
run: make build-sdist
153148

154149
check_fmt:
155150
name: check formatting

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
run: |
8888
python -m pip install --upgrade build wheel setuptools setuptools-rust
8989
- name: Build wheel
90-
run: python -m build --wheel --no-isolation
90+
run: make build-sdist
9191

9292
- uses: actions/upload-artifact@v4
9393
with:

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ venv:
88

99
venv-pip: venv
1010
$(PIP) install -U pip build setuptools pdoc flake8 ipdb
11-
$(PIP) install -r requirements.txt
11+
$(PIP) install .
1212
$(PYTHON) --version
1313
$(PIP) --version
1414

@@ -31,6 +31,10 @@ install-wheel: build-wheel
3131
build-dev: venv-pip
3232
$(PYTHON) -m pip install --no-build-isolation -e .[dev]
3333

34+
build-sdist: venv-pip
35+
rm -rf ./fluvio.egg-info/
36+
$(PYTHON) -m build --sdist
37+
3438
unit-tests: build-dev
3539
cd tests/ && PYTHONPATH=.. $(PYTHON) -m unittest
3640

pyproject.toml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ authors = [
1414
{ name = "Fluvio Contributors", email = "team@fluvio.io" }
1515
]
1616
keywords = ["fluvio", "streaming", "stream"]
17-
1817
classifiers = [
1918
"Intended Audience :: Developers",
2019
"Programming Language :: Python :: 3",
@@ -25,8 +24,25 @@ classifiers = [
2524
"Programming Language :: Python :: 3.13",
2625
"Programming Language :: Python :: 3 :: Only"
2726
]
27+
dependencies = [
28+
"msgpack==1.0.4",
29+
"semantic-version==2.10.0",
30+
"humanfriendly==10.0"
31+
]
2832

29-
dynamic = ["dependencies"]
33+
[project.optional-dependencies]
34+
dev = [
35+
"flake8==7.1.1",
36+
"mccabe==0.7.0",
37+
"pycodestyle==2.12.1",
38+
"pyflakes==3.2.0",
39+
"black==25.1.0",
40+
"setuptools-rust==1.11.1",
41+
"toml==0.10.2",
42+
"build==1.2.2.post1",
43+
"pytest>=8",
44+
"cibuildwheel>=2.22",
45+
]
3046

3147
[project.urls]
3248
"Bug Reports" = "https://github.com/infinyon/fluvio-client-python/issues"
@@ -40,10 +56,3 @@ target = "fluvio._fluvio_python"
4056
path = "Cargo.toml"
4157
binding = "PyO3"
4258
quiet = true
43-
44-
[project.optional-dependencies]
45-
dev = [
46-
"pytest>=8",
47-
"flake8>=7",
48-
"cibuildwheel>=2.22",
49-
]

requirements-publish.txt

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

requirements.txt

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

0 commit comments

Comments
 (0)