Skip to content

Commit

Permalink
Tell setuptools-scm where to find the repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Mar 3, 2021
1 parent c2c4118 commit ce06efb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:

jobs:
deploy:
defaults:
run:
working-directory: lib/py/

runs-on: ubuntu-latest

steps:
Expand All @@ -26,7 +30,6 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
cd lib/py/
python setup.py sdist bdist_wheel
twine upload dist/*
5 changes: 4 additions & 1 deletion lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
},
author="reddit",
license="BSD",
use_scm_version=True,
use_scm_version={
"root": "../../",
"relative_to": __file__,
},
packages=find_packages(),
python_requires=">=3.7",
setup_requires=["setuptools_scm"],
Expand Down

0 comments on commit ce06efb

Please sign in to comment.