Skip to content

Commit

Permalink
Add boto3-stubs[all] extra support
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Jun 6, 2020
1 parent 710c515 commit 7c0d573
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions mypy_boto3_builder/templates/boto3-stubs/README.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ Builder changelog can be found in [Releases](https://github.com/vemel/mypy_boto3

## Submodules

{{ "- `" -}}
{{ boto3_stubs_name -}}
{{ "[all]` - Type annotations for all services" -}}
{{ ".\n" -}}
{% if package.essential_service_names -%}
{{ "- `" -}}
{{ boto3_stubs_name -}}
Expand Down
9 changes: 6 additions & 3 deletions mypy_boto3_builder/templates/boto3-stubs/setup.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ setup(
"{{ master_pypi_name }}=={{ build_version }}",
],
extras_require={
"essential": [
"all": [
{% for service_name in package.service_names -%}
{% if service_name.is_essential() -%}
"{{ service_name.pypi_name }}=={{ build_version }}",
{% endif -%}
{% endfor -%}
],
"essential": [
{% for service_name in package.essential_service_names -%}
"{{ service_name.pypi_name }}=={{ build_version }}",
{% endfor -%}
],
{% for service_name in package.service_names -%}
Expand Down
4 changes: 4 additions & 0 deletions mypy_boto3_builder/templates/master/README.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ a drop-in type annotations for you and makes sure that:

## Submodules

{{ "- `" -}}
{{ boto3_stubs_name -}}
{{ "[all]` - Type annotations for all services" -}}
{{ ".\n" -}}
{% if package.essential_service_names -%}
{{ "- `" }}{{ boto3_stubs_name -}}{{ "[essential]` - Type annotations for " -}}
{% for service_name in package.essential_service_names -%}
Expand Down

0 comments on commit 7c0d573

Please sign in to comment.