Skip to content

Commit

Permalink
Merge pull request #72 from OneBusAway/release-please--branches--main…
Browse files Browse the repository at this point in the history
…--changes--next

release: 0.1.0-alpha.16
  • Loading branch information
Ahmedhossamdev authored Aug 10, 2024
2 parents 256a433 + fe3becc commit d0d0516
Show file tree
Hide file tree
Showing 13 changed files with 504 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.15"
".": "0.1.0-alpha.16"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 24
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-9c3d349c8e661f7dc8c2585d02f334bb6ba3456f0d929c44d46454a0d190af7b.yml
configured_endpoints: 25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-f0a1f65a327091207db6d5ecc22149149967274b0c54c192cc442f93cc819c64.yml
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.1.0-alpha.16 (2024-08-10)

Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)

### Features

* **api:** OpenAPI spec update via Stainless API ([#71](https://github.com/OneBusAway/python-sdk/issues/71)) ([876b77c](https://github.com/OneBusAway/python-sdk/commit/876b77c3addf2460c3116738f7b4bc784f67350d))
* **api:** OpenAPI spec update via Stainless API ([#75](https://github.com/OneBusAway/python-sdk/issues/75)) ([6af5d8a](https://github.com/OneBusAway/python-sdk/commit/6af5d8a93d7f516c9bb7a20e20d063944d0435e9))


### Chores

* **ci:** bump prism mock server version ([#73](https://github.com/OneBusAway/python-sdk/issues/73)) ([e303bb6](https://github.com/OneBusAway/python-sdk/commit/e303bb64a39d45801d72141e13e00bac40771f71))
* **internal:** ensure package is importable in lint cmd ([#74](https://github.com/OneBusAway/python-sdk/issues/74)) ([b4db5b9](https://github.com/OneBusAway/python-sdk/commit/b4db5b955b4880c1eea3bba00749bb9f4a78416b))

## 0.1.0-alpha.15 (2024-08-08)

Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
Expand Down
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ Methods:

- <code title="get /api/where/report-problem-with-stop/{stopID}.json">client.report_problem_with_stop.<a href="./src/onebusaway/resources/report_problem_with_stop.py">retrieve</a>(stop_id, \*\*<a href="src/onebusaway/types/report_problem_with_stop_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/shared/response_wrapper.py">ResponseWrapper</a></code>

# ReportProblemWithTrip

Methods:

- <code title="get /api/where/report-problem-with-trip/{tripID}.json">client.report_problem_with_trip.<a href="./src/onebusaway/resources/report_problem_with_trip.py">retrieve</a>(trip_id, \*\*<a href="src/onebusaway/types/report_problem_with_trip_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/shared/response_wrapper.py">ResponseWrapper</a></code>

# SearchForStop

Types:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "onebusaway"
version = "0.1.0-alpha.15"
version = "0.1.0-alpha.16"
description = "The official Python library for the onebusaway-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -76,10 +76,13 @@ format = { chain = [
"lint" = { chain = [
"check:ruff",
"typecheck",
"check:importable",
]}
"check:ruff" = "ruff check ."
"fix:ruff" = "ruff check --fix ."

"check:importable" = "python -c 'import onebusaway'"

typecheck = { chain = [
"typecheck:pyright",
"typecheck:mypy"
Expand Down
4 changes: 2 additions & 2 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
echo -n "Waiting for server"
Expand All @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL"
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL"
fi
16 changes: 16 additions & 0 deletions src/onebusaway/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class OnebusawaySDK(SyncAPIClient):
trip_details: resources.TripDetailsResource
trip_for_vehicle: resources.TripForVehicleResource
report_problem_with_stop: resources.ReportProblemWithStopResource
report_problem_with_trip: resources.ReportProblemWithTripResource
search_for_stop: resources.SearchForStopResource
search_for_route: resources.SearchForRouteResource
with_raw_response: OnebusawaySDKWithRawResponse
Expand Down Expand Up @@ -147,6 +148,7 @@ def __init__(
self.trip_details = resources.TripDetailsResource(self)
self.trip_for_vehicle = resources.TripForVehicleResource(self)
self.report_problem_with_stop = resources.ReportProblemWithStopResource(self)
self.report_problem_with_trip = resources.ReportProblemWithTripResource(self)
self.search_for_stop = resources.SearchForStopResource(self)
self.search_for_route = resources.SearchForRouteResource(self)
self.with_raw_response = OnebusawaySDKWithRawResponse(self)
Expand Down Expand Up @@ -287,6 +289,7 @@ class AsyncOnebusawaySDK(AsyncAPIClient):
trip_details: resources.AsyncTripDetailsResource
trip_for_vehicle: resources.AsyncTripForVehicleResource
report_problem_with_stop: resources.AsyncReportProblemWithStopResource
report_problem_with_trip: resources.AsyncReportProblemWithTripResource
search_for_stop: resources.AsyncSearchForStopResource
search_for_route: resources.AsyncSearchForRouteResource
with_raw_response: AsyncOnebusawaySDKWithRawResponse
Expand Down Expand Up @@ -367,6 +370,7 @@ def __init__(
self.trip_details = resources.AsyncTripDetailsResource(self)
self.trip_for_vehicle = resources.AsyncTripForVehicleResource(self)
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResource(self)
self.report_problem_with_trip = resources.AsyncReportProblemWithTripResource(self)
self.search_for_stop = resources.AsyncSearchForStopResource(self)
self.search_for_route = resources.AsyncSearchForRouteResource(self)
self.with_raw_response = AsyncOnebusawaySDKWithRawResponse(self)
Expand Down Expand Up @@ -512,6 +516,9 @@ def __init__(self, client: OnebusawaySDK) -> None:
self.report_problem_with_stop = resources.ReportProblemWithStopResourceWithRawResponse(
client.report_problem_with_stop
)
self.report_problem_with_trip = resources.ReportProblemWithTripResourceWithRawResponse(
client.report_problem_with_trip
)
self.search_for_stop = resources.SearchForStopResourceWithRawResponse(client.search_for_stop)
self.search_for_route = resources.SearchForRouteResourceWithRawResponse(client.search_for_route)

Expand Down Expand Up @@ -545,6 +552,9 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResourceWithRawResponse(
client.report_problem_with_stop
)
self.report_problem_with_trip = resources.AsyncReportProblemWithTripResourceWithRawResponse(
client.report_problem_with_trip
)
self.search_for_stop = resources.AsyncSearchForStopResourceWithRawResponse(client.search_for_stop)
self.search_for_route = resources.AsyncSearchForRouteResourceWithRawResponse(client.search_for_route)

Expand Down Expand Up @@ -580,6 +590,9 @@ def __init__(self, client: OnebusawaySDK) -> None:
self.report_problem_with_stop = resources.ReportProblemWithStopResourceWithStreamingResponse(
client.report_problem_with_stop
)
self.report_problem_with_trip = resources.ReportProblemWithTripResourceWithStreamingResponse(
client.report_problem_with_trip
)
self.search_for_stop = resources.SearchForStopResourceWithStreamingResponse(client.search_for_stop)
self.search_for_route = resources.SearchForRouteResourceWithStreamingResponse(client.search_for_route)

Expand Down Expand Up @@ -627,6 +640,9 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResourceWithStreamingResponse(
client.report_problem_with_stop
)
self.report_problem_with_trip = resources.AsyncReportProblemWithTripResourceWithStreamingResponse(
client.report_problem_with_trip
)
self.search_for_stop = resources.AsyncSearchForStopResourceWithStreamingResponse(client.search_for_stop)
self.search_for_route = resources.AsyncSearchForRouteResourceWithStreamingResponse(client.search_for_route)

Expand Down
2 changes: 1 addition & 1 deletion src/onebusaway/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "onebusaway"
__version__ = "0.1.0-alpha.15" # x-release-please-version
__version__ = "0.1.0-alpha.16" # x-release-please-version
14 changes: 14 additions & 0 deletions src/onebusaway/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@
ReportProblemWithStopResourceWithStreamingResponse,
AsyncReportProblemWithStopResourceWithStreamingResponse,
)
from .report_problem_with_trip import (
ReportProblemWithTripResource,
AsyncReportProblemWithTripResource,
ReportProblemWithTripResourceWithRawResponse,
AsyncReportProblemWithTripResourceWithRawResponse,
ReportProblemWithTripResourceWithStreamingResponse,
AsyncReportProblemWithTripResourceWithStreamingResponse,
)

__all__ = [
"AgenciesWithCoverageResource",
Expand Down Expand Up @@ -312,6 +320,12 @@
"AsyncReportProblemWithStopResourceWithRawResponse",
"ReportProblemWithStopResourceWithStreamingResponse",
"AsyncReportProblemWithStopResourceWithStreamingResponse",
"ReportProblemWithTripResource",
"AsyncReportProblemWithTripResource",
"ReportProblemWithTripResourceWithRawResponse",
"AsyncReportProblemWithTripResourceWithRawResponse",
"ReportProblemWithTripResourceWithStreamingResponse",
"AsyncReportProblemWithTripResourceWithStreamingResponse",
"SearchForStopResource",
"AsyncSearchForStopResource",
"SearchForStopResourceWithRawResponse",
Expand Down
Loading

0 comments on commit d0d0516

Please sign in to comment.