Skip to content

Commit

Permalink
Add dummy region
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 9, 2019
1 parent 18982c8 commit e35777c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions builder/mypy_boto3_builder/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

# Postfix for PyPI module name generated with docs
WITH_DOCS_PYPI_POSTFIX = "-with-docs"

# Random region to initialize services
DUMMY_REGION = "us-west-2"
4 changes: 2 additions & 2 deletions builder/mypy_boto3_builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from mypy_boto3_builder.version import __version__ as version
from mypy_boto3_builder.logger import get_logger
from mypy_boto3_builder.cli_parser import get_cli_parser
from mypy_boto3_builder.constants import MODULE_NAME
from mypy_boto3_builder.constants import MODULE_NAME, DUMMY_REGION


def main() -> None:
Expand All @@ -21,7 +21,7 @@ def main() -> None:
return

get_logger(verbose=args.debug)
session = Session()
session = Session(region_name=DUMMY_REGION)
args.output_path.mkdir(exist_ok=True)
# available_services = session.get_available_services()

Expand Down
2 changes: 1 addition & 1 deletion docs/MODULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Full list of [mypy-boto3](README.md#mypy_boto3) project modules.
- [Main](builder/build/lib/mypy_boto3_builder/main.md#main)
- [NicePath](builder/build/lib/mypy_boto3_builder/nice_path.md#nicepath)
- [Parsers](builder/build/lib/mypy_boto3_builder/parsers.md#parsers)
- [ResponseParser](builder/build/lib/mypy_boto3_builder/response_parser.md#responseparser)
- [Response Parser](builder/build/lib/mypy_boto3_builder/response_parser.md#response-parser)
- [ServiceName](builder/build/lib/mypy_boto3_builder/service_name.md#servicename)
- [Structures](builder/build/lib/mypy_boto3_builder/structures.md#structures)
- [Type Annotations](builder/build/lib/mypy_boto3_builder/type_annotations/index.md#type-annotations)
Expand Down
1 change: 1 addition & 0 deletions docs/builder/mypy_boto3_builder/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
- `PYPI_NAME` - PyPI module name: `'mypy-boto3'`
- `WITH_DOCS_POSTFIX` - Postfix for package name generated with docs: `'_with_docs'`
- `WITH_DOCS_PYPI_POSTFIX` - Postfix for PyPI module name generated with docs: `'-with-docs'`
- `DUMMY_REGION` - Random region to initialize services: `'us-west-2'`

0 comments on commit e35777c

Please sign in to comment.