No project description provided
Project description
BigQuery Sync
This repository contains the bigquery_sync package, which helps to sync between git and Bigquery in your Python projects. This guide provides instructions for configuring, building, and publishing the package to PyPI using poetry.
Prerequisites
Before getting started, ensure that you have the following installed on your machine:
- Python (version 3.8 or higher)
- Poetry (latest version)
If you're new to Poetry, it’s a dependency management and packaging tool that simplifies the Python project workflow.
Setup Instructions
1. Configure Your PyPI Credentials
Before you can publish a package to PyPI, you'll need to authenticate. If you haven’t already, configure your Poetry installation with your PyPI API token.
To do this, run the following command, replacing your-api-token with your actual PyPI token:
bash
poetry config pypi-token.pypi your-api-token
If you don’t have an API token yet, you can generate one by logging into your PyPI account and following the instructions for creating a new token.
2. Update the Version Number
Before publishing a new version of your package, you need to update the version number in the pyproject.toml file. This is important for tracking releases and ensuring that your package’s version is unique on PyPI.
Open the pyproject.toml file and locate the [tool.poetry] section. Update the version field to reflect the new version you're about to publish:
[tool.poetry]
name = "bigquery_sync"
version = "0.1.0" # Update this version number
description = "A Python package for syncing with BigQuery."
3. Build the Package
Once you've updated the version number, it's time to build the package. This will create distributable files that can be uploaded to PyPI.
Run the following command to build the package:
poetry build
This command will generate two types of files inside the dist/ directory:
- A source distribution (
.tar.gzfile) - A wheel distribution (
.whlfile)
4. Publish the Package to PyPI
After successfully building the package, you can now publish it to PyPI.
Use the following command to publish your package:
poetry publish
If you’ve correctly configured your PyPI token, Poetry will authenticate and publish the package.
5. Verifying the Package
Once the package has been published, you can verify it by visiting the PyPI website:
- Go to https://pypi.org/project/bigquery_sync/
- Confirm that the new version is listed and that all the information is correct.
You can also install and test your package locally by running:
pip install bigquery_sync
Additional Resources
For more detailed instructions on publishing Python packages to PyPI using Poetry, you can refer to the following tutorial:
This guide provides further insights and troubleshooting tips if you run into any issues.
Conclusion
By following the steps above, you can easily configure, build, and publish your Python package to PyPI using Poetry. Happy coding!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bigquery_sync-0.1.18.tar.gz.
File metadata
- Download URL: bigquery_sync-0.1.18.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70f7035a394940e820ad5b63d62482211941411654a6b5247ebf43cafd1990c
|
|
| MD5 |
d7ea14282510ea97062ce1d1c71601d9
|
|
| BLAKE2b-256 |
8f258344e85df4f0f4fb0ba65a18201d38bf7dafe481520c598f03e09bf56c4c
|
File details
Details for the file bigquery_sync-0.1.18-py3-none-any.whl.
File metadata
- Download URL: bigquery_sync-0.1.18-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a73e0c9a9160d407603435bac7ae848743348e11cf23350a160127d5a5ac1cf8
|
|
| MD5 |
d2c54712f3aa28e7c4e024daf2221ae1
|
|
| BLAKE2b-256 |
bc99c2624ae9f8eaa587f428046ce21c1c453663acbef63d057541cb0612f845
|