Skip to content

Commit

Permalink
Merge pull request #8 from hz-b/dev/feature/pypi-upload
Browse files Browse the repository at this point in the history
[TASK] tested with build, wheel
  • Loading branch information
PierreSchnizer authored Jun 14, 2024
2 parents 82c7c3a + a730e8b commit 78d5a02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools twine numpy
python -m pip install --upgrade pip build wheel setuptools twine numpy
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py build_proto_c
python -m pip wheel -w dist/ ./
python setup.py sdist
python -m twine --repository testpypi upload dist/*
python -m build -w
python -m build -s
python -m twine upload --repository testpypi dist/*
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
include protocol_buffer.py
# the source files
# include proto/*
include proto/*
# the files generated
b# configuration files
include proto_gen/*
# configuration files
include bact_archiver/*.cfg
# documentation files
include doc/conf.py
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"proto/epics_event.pyx",
"proto_gen/epics_event.pb.cc",
],
include_dirs=[".", "proto_gen/", get_include()],
include_dirs=[".", "proto/", "proto_gen/", get_include()],
libraries=[
"protobuf",
],
Expand Down

0 comments on commit 78d5a02

Please sign in to comment.