-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: build and doc fixes * fix: merging dev versions * fix: typos * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: restore overwritten setup.cfg * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: remove unneded steps * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: setup is at root now * fix: restore deleted content * fix: restore deleted content --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
62ce8ff
commit 16d8413
Showing
7 changed files
with
98 additions
and
25 deletions.
There are no files selected for viewing
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,44 @@ | ||
# Building the google-events Python library | ||
|
||
## Installing the current version | ||
|
||
The library source in this repository can be installed and used as is: | ||
|
||
1. Clone or download the repository contents | ||
1. Instantiate a virtual Python environment if desired. | ||
1. In a shell, change to the repository root. | ||
1. Install with `pip install -e .` | ||
|
||
## Building a distribution | ||
|
||
A Python wheel can be created for the current contents of this repository as | ||
follows: | ||
|
||
1. Clone or download the repository contents | ||
1. Instantiate a virtual Python environment if desired. | ||
1. In a shell, change to the repository root. | ||
1. Install the standard *build* library: | ||
`pip install --upgrade build` | ||
1. Build the distributions(s): | ||
`python -m build .` | ||
1. The *dist* folder will contain distributable packages in those formats | ||
available to your installation. | ||
|
||
## Updating the library | ||
|
||
Whenever the *googleapis/cloudevents* proto definitions change, the matching | ||
Python *google-events* library can be updated to match, as follows: | ||
|
||
1. Clone or download the repository contents | ||
1. Instantiate a virtual Python environment if desired. | ||
1. In a shell, change to the repository root, then the *scripts* folder: | ||
`cd scripts` | ||
1. Install the required libraries to run the generator script: | ||
`pip install -r requirements.txt` | ||
1. For a test run, run the script, specifying a folder of your choice for the output: | ||
`python generate-from-proto.py -o [OUTPUT_DIR]` | ||
and examine the contents of *[OUTPUT_DIR]*. | ||
1. Update the library by having the generator script replace the repository src folder: | ||
`python generate-from-proto.py -o ../src` | ||
|
||
You can install or distribute the updated library with the previous instructions. |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.9.0", | ||
"setuptools >= 61.0", | ||
] | ||
build-backend = "setuptools.build_meta" |
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 |
---|---|---|
@@ -1,19 +1,36 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
[metadata] | ||
name = google.events | ||
version = 0.3.0 | ||
author = Google LLC | ||
author_email = googleapis-packages@google.com | ||
description = Google Cloudevents library | ||
long_description = file: README.md | ||
url = url | ||
license = Apache 2.0 | ||
platforms = Posix, MacOS X, Windows | ||
classifiers = | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: Apache Software License | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Operating System :: OS Independent | ||
Topic :: Internet | ||
|
||
# Generated by synthtool. DO NOT EDIT! | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[options] | ||
include_package_data = True | ||
package_dir = | ||
=src | ||
packages = find_namespace: | ||
python_requires = >=3.7 | ||
install_requires = | ||
proto-plus >= 1.22.0 | ||
protobuf >= 4.21.5 | ||
|
||
[options.packages.find] | ||
where=src |
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 @@ | ||
pytest==7.2.1 |