-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove tutorials (moved to user-demos repo) * rename docs overview -> main * rename docs api -> api-reference * update docs for-developers * fix type checking for docs build
- Loading branch information
Showing
31 changed files
with
488 additions
and
1,039 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pittgoogle.exceptions | ||
===================== | ||
|
||
.. automodule:: pittgoogle.exceptions | ||
:members: | ||
:private-members: | ||
:member-order: bysource |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pittgoogle.registry | ||
=================== | ||
|
||
.. automodule:: pittgoogle.registry | ||
:members: | ||
:private-members: | ||
:member-order: bysource |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Managing Dependencies with Poetry | ||
|
||
This page contains instructions for managing the `pittgoogle` package dependencies using [Poetry](https://python-poetry.org/). | ||
Poetry was implemented in this repo in [pull #7](https://github.com/mwvgroup/pittgoogle-client/pull/7). | ||
|
||
## Setup your environment | ||
|
||
Create a new conda environment for poetry and install it ([Poetry installation](https://python-poetry.org/docs/#installation)). | ||
|
||
```bash | ||
conda create --name poetry-py311 python=3.11 | ||
conda activate poetry-py311 | ||
|
||
# pipx is recommended, but it requires a brew install on MacOS and I (Raen) avoid brew whenever possible. | ||
# pip seems to work fine. | ||
pip install poetry | ||
``` | ||
|
||
## Install existing dependencies | ||
|
||
This repo already contains a poetry.lock file, so running `poetry install` will give you | ||
the exact versions specified there ([Poetry install dependencies](https://python-poetry.org/docs/basic-usage/#installing-dependencies)). | ||
|
||
If you would rather start over completely, skip ahead to the next section. | ||
|
||
```bash | ||
poetry install | ||
``` | ||
|
||
## Update Dependency Versions | ||
|
||
To upgrade to the latest versions compatible with the pyproject.toml file, you have two options below | ||
([Poetry update dependencies](https://python-poetry.org/docs/basic-usage/#updating-dependencies-to-their-latest-versions)): | ||
|
||
```bash | ||
# Option 1: Start over completely by deleting the lock file and re-installing. | ||
rm poetry.lock | ||
poetry install | ||
|
||
# Option 2: Update dependencies starting from the existing lock file (assumes you've run poetry install). | ||
poetry update | ||
``` | ||
|
||
Now commit the updated poetry.lock file to the repo. | ||
|
||
## Add a Dependency | ||
|
||
Here are two examples | ||
([Poetry add dependencies](https://python-poetry.org/docs/managing-dependencies/#adding-a-dependency-to-a-group), | ||
see also: [Poetry version-constraint syntax](https://python-poetry.org/docs/dependency-specification/)): | ||
|
||
```bash | ||
# This example adds pandas to the main dependencies. | ||
poetry add pandas | ||
|
||
# This example adds sphinx to the docs dependencies. | ||
poetry add sphinx --group docs.dependencies | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Release a New Version of pittgoogle-client | ||
|
||
When you are ready to release a new version of `pittgoogle-client`, publish to PyPI using the following steps: | ||
|
||
1. Make sure the code in the main branch is ready for release. | ||
|
||
2. Make sure the CHANGELOG.md file has been updated to reflect the changes being released. | ||
|
||
3. On the repo's GitHub [releases](https://github.com/mwvgroup/pittgoogle-client/releases) page: | ||
- Click "Draft a new release". | ||
- Under "Choose a tag", enter the version tag as "v" followed by the release version | ||
([semantic versioning](https://semver.org/) MAJOR.MINOR.PATCH). | ||
- Enter the same tag for the release title. | ||
- Click "Publish release". | ||
|
||
Completing step 3 will: | ||
|
||
- Execute the test suite. | ||
- Publish the documentation to GitHub pages. | ||
- Publish the package to PyPI.org. | ||
|
||
You will now be able to install the new version using: | ||
|
||
```bash | ||
pip install --upgrade pittgoogle-client | ||
``` | ||
|
||
This release process was implemented and described in [pull #7](https://github.com/mwvgroup/pittgoogle-client/pull/7). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. _find-project-id: | ||
|
||
Find the Project ID | ||
=================== | ||
|
||
If you've created a :ref:`project <projects>` and need to know the ID: | ||
|
||
- Go to the `Google Cloud Console <https://console.cloud.google.com/home/dashboard>`__. | ||
- Click on the name of the project in the menu bar at the top of the page. | ||
- From there you can see the names and IDs of all the projects you are connected to. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Frequently Asked Questions | ||
============================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
cost | ||
find-project-id |
Oops, something went wrong.