Skip to content

Commit

Permalink
reset changes to original template
Browse files Browse the repository at this point in the history
  • Loading branch information
thrau committed Aug 16, 2024
1 parent b0ced60 commit a2a9426
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
1 change: 0 additions & 1 deletion template/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"project_short_description": "All the boilerplate you need to create a LocalStack extension.",
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '-') }}",
"module_name": "{{ cookiecutter.project_slug.replace('-', '_') }}",
"class_name": "{{ cookiecutter.project_name.replace('-', ' ').replace('_', ' ').title().replace(' ', '') }}",
"full_name": "Jane Doe",
"email": "jane@example.com",
"github_username": "janedoe",
Expand Down
2 changes: 1 addition & 1 deletion template/{{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install: venv
$(VENV_RUN); python -m pip install -e .[dev]

dist: venv
$(VENV_RUN); python -m build
$(VENV_RUN); python setup.py sdist bdist_wheel

publish: clean-dist venv dist
$(VENV_RUN); pip install --upgrade twine; twine upload dist/*
Expand Down
22 changes: 22 additions & 0 deletions template/{{cookiecutter.project_slug}}/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[metadata]
name = {{ cookiecutter.project_slug }}
version = {{ cookiecutter.version }}
summary = LocalStack Extension: {{ cookiecutter.project_name }}
url = https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}
author = {{ cookiecutter.full_name }}
author_email = {{ cookiecutter.email }}
description = {{ cookiecutter.project_short_description }}
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8

[options]
zip_safe = False
packages = find:

[options.extras_require]
dev =
localstack-core>=1.0

[options.entry_points]
localstack.extensions =
{{ cookiecutter.project_slug }} = {{ cookiecutter.module_name }}.extension:MyExtension
4 changes: 4 additions & 0 deletions template/{{cookiecutter.project_slug}}/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env python
from setuptools import setup

setup()
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from localstack.extensions.api import Extension, http, aws

class {{ cookiecutter.class_name }}(Extension):
class MyExtension(Extension):
name = "{{ cookiecutter.project_slug }}"

def on_extension_load(self):
Expand Down

0 comments on commit a2a9426

Please sign in to comment.