Skip to content

Commit

Permalink
fix: add resource to the PIP package
Browse files Browse the repository at this point in the history
  • Loading branch information
panpuchkov committed Dec 28, 2023
1 parent d474b4c commit 68689a7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,14 @@ jobs:
shell: bash
run: |
set -x
sudo apt-get -y install twine
pip install -r requirements-build.txt
python -m build
sudo apt-get -y install twine
twine check dist/*
twine upload --skip-existing -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/* --verbose
#twine upload --skip-existing -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/* --verbose
cd dist
pwd
tar -xf $(ls pygitver-*.gz)
tree
cd ..
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apk add --no-cache git openssh

# Copy application code and
COPY ./src/pygitver/templates /pygitver/templates
COPY ./scripts /pygitver/scripts
COPY ./src/pygitver/scripts /pygitver/scripts
COPY --from=build /opt/venv /opt/venv

WORKDIR /app
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ pygitver = "pygitver.pygitver:main"
url = "https://github.com/panpuchkov/pygitver"


[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
pygitver = ["*.py", "*.tmpl"]
"*" = ["*"]
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Jinja2

tox
pytest
black
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 68689a7

Please sign in to comment.