Skip to content

Commit 78d5a02

Browse files
Merge pull request #8 from hz-b/dev/feature/pypi-upload
[TASK] tested with build, wheel
2 parents 82c7c3a + a730e8b commit 78d5a02

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
python-version: '3.x'
2424
- name: Install dependencies
2525
run: |
26-
python -m pip install --upgrade pip wheel setuptools twine numpy
26+
python -m pip install --upgrade pip build wheel setuptools twine numpy
2727
- name: Build and publish
2828
env:
2929
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3030
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3131
run: |
3232
python setup.py build_proto_c
33-
python -m pip wheel -w dist/ ./
34-
python setup.py sdist
35-
python -m twine --repository testpypi upload dist/*
33+
python -m build -w
34+
python -m build -s
35+
python -m twine upload --repository testpypi dist/*

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include protocol_buffer.py
22
# the source files
3-
# include proto/*
3+
include proto/*
44
# the files generated
5-
b# configuration files
5+
include proto_gen/*
6+
# configuration files
67
include bact_archiver/*.cfg
78
# documentation files
89
include doc/conf.py

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"proto/epics_event.pyx",
2121
"proto_gen/epics_event.pb.cc",
2222
],
23-
include_dirs=[".", "proto_gen/", get_include()],
23+
include_dirs=[".", "proto/", "proto_gen/", get_include()],
2424
libraries=[
2525
"protobuf",
2626
],

0 commit comments

Comments
 (0)