Skip to content

Commit 814a5ba

Browse files
committed
add notes to self about how to publish to PyPI
1 parent 44baaf7 commit 814a5ba

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,36 @@ or find a python distribution for Mac OS with this support.
147147

148148
...
149149

150+
### Publishing a release to PyPI
151+
152+
Because I forget...
153+
154+
```
155+
# assumes ~/.pypirc is already set up
156+
157+
workon dbt-sqlite-devel
158+
159+
vi setup.py # update version
160+
161+
# start clean
162+
rm -rf dist/ build/ *.egg-info
163+
164+
# make sure tools are up to date
165+
python -m pip install --upgrade setuptools wheel twine
166+
167+
# build
168+
python setup.py sdist bdist_wheel
169+
170+
# upload to PyPI
171+
python -m twine upload dist/*
172+
173+
git commit
174+
git tag vXXX
175+
git push --tags
176+
177+
# go to github and "Draft a new release"
178+
```
179+
150180
## Running Tests
151181

152182
Install the `pytest-dbt-adapter` package and run the test specs in this repository:

0 commit comments

Comments
 (0)