Skip to content

Commit

Permalink
fix: Fixed package build error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexschimpf authored Sep 20, 2023
1 parent ea5794f commit 2f08334
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
python-version: '3.7'
- run: make install-dev
- run: make build
- run: make test-install-build
- env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ help:

# build python package
build:
python setup.py sdist
rm -rf dist && rm -rf fastapi_versionizer.egg-info && python setup.py sdist


# test install of build
test-install-build:
pip install dist/$(shell ls dist | grep tar.gz | head -1)

# deploy package to pypi
deploy:
Expand Down
1 change: 1 addition & 0 deletions Manifest.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prune tests
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/alexschimpf/fastapi-versionizer',
package_data={'fastapi_versionizer': ['py.typed']},
packages=['fastapi_versionizer'],
packages=['', 'fastapi_versionizer'],
package_data={
'': ['README.md', 'requirements.txt', 'package.json'],
'fastapi_versionizer': ['py.typed']
},
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit 2f08334

Please sign in to comment.