Use the -e
option to install the bigquery_schema_generator
package
as "symlinks" so that changes to the code are picked up immediately,
without having to run python setup.py install
:
$ cd bigquery-schema-generator
$ pip3 install -e .
There are a lot of instructions on the web that uses
setup.py register
and setup.py upload
, but as far as I can tell,
those are deprecated. The tool that seems to work for me is
Twine.
PyPI now supports Markdown so we no longer need
to download pypandoc
(Python package) and pandoc
(apt package) to convert
Markdown to RST.
Install the following packages:
$ sudo -H pip3 install setuptools wheel twine
- Increment the version numbers in:
version.py
README.md
CHANGELOG.md
- Push all changes to
develop
branch. - Create a GitHub pull request (PR) from
develop
intomaster
branch. - Merge the PR into
master
. - Create a new Release in GitHub with the new tag label.
- Create the dist using
python3 setup.py sdist
. - Upload to PyPI using
twine upload dist/bigquery-schema-generator-{version}.tar.gz
.- Enter my PyPI login credentials.
- If
dist/
becomes too cluttered, we can remove the entiredist/
directory and runpython3 setup.py sdist
again.