-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.8 - API integration #25
Open
tomdyson
wants to merge
8
commits into
master
Choose a base branch
from
api-integration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
620b465
Remove Deployment model, manage builds through UI
tomdyson cdcc328
Update changelog
tomdyson af4819e
Remove support for Wagtail <2
tomdyson f164453
Require Wagtail 2+ at installation
tomdyson 515dc33
Update documentation
tomdyson 252c627
Redirect to view by name, not instance
tomdyson e0c1557
Ignore IDE settings
tomdyson 2c62bad
Update for Django 4 compatibility
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,3 +99,5 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.vscode/ |
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 |
---|---|---|
@@ -1,37 +1,33 @@ | ||
from setuptools import setup, find_packages | ||
from wagtailnetlify import __version__ | ||
|
||
with open('README.md', 'r') as fh: | ||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name='wagtailnetlify', | ||
name="wagtailnetlify", | ||
version=__version__, | ||
description='Deploy Wagtail sites to Netlify', | ||
description="Deploy Wagtail sites to Netlify", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/tomdyson/wagtail-netlify', | ||
author='Tom Dyson', | ||
author_email='[email protected]', | ||
license='MIT', | ||
url="https://github.com/tomdyson/wagtail-netlify", | ||
author="Tom Dyson", | ||
author_email="[email protected]", | ||
license="MIT", | ||
classifiers=[ | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Wagtail", | ||
"Framework :: Wagtail :: 1", | ||
"Framework :: Wagtail :: 2", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
], | ||
keywords='development', | ||
keywords="development", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
"wagtail>=1.6", | ||
"wagtail-bakery>=0.3.0" | ||
], | ||
install_requires=["wagtail>=2.0", "wagtail-bakery>=0.3.0"], | ||
) |
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 +1 @@ | ||
__version__ = "0.7" | ||
__version__ = "0.8" |
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,7 @@ | ||
from django.urls import re_path | ||
from wagtailnetlify.views import list_deploys, do_deploy | ||
|
||
urlpatterns = [ | ||
re_path(r"^deployments$", list_deploys, name="list_deploys"), | ||
re_path(r"^deployments/create$", do_deploy, name="do_deploy"), | ||
] |
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
63 changes: 63 additions & 0 deletions
63
wagtailnetlify/templates/wagtailnetlify/deploy_listing.html
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,63 @@ | ||
{% extends "wagtailadmin/base.html" %} | ||
|
||
{% block titletag %}Netlify deployments{% endblock %} | ||
|
||
{% block content %} | ||
{% block header %} | ||
<header class="nice-padding hasform"> | ||
<div class="row header-title"> | ||
<div class="left"> | ||
<div class="col"> | ||
<h1> | ||
<svg class="icon icon-collapse-up header-title-icon" aria-hidden="true" focusable="false"> | ||
<use href="#icon-collapse-up"></use> | ||
</svg> | ||
Netlify Deployments</h1> | ||
</div> | ||
</div> | ||
{% block header_extra %} | ||
<div class="right"> | ||
<div class="actionbutton"> | ||
<a href="deployments/create" class="button bicolor icon icon-plus" title="New deployment">New | ||
Deployment</a> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
</div> | ||
</header> | ||
{% endblock %} | ||
|
||
<div> | ||
<div class="row"> | ||
<div class="result-list col12"> | ||
<table class="listing full-width"> | ||
<thead> | ||
<tr> | ||
<th scope="col">Deployment</th> | ||
<th scope="col">Status</th> | ||
<th scope="col">Time taken</th> | ||
<th scope="col">Started at</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for deploy in deploys %} | ||
<tr class="odd" data-object-pk="1917"> | ||
<td class="nowrap"><a href="{{ deploy.deploy_ssl_url }}">{{ deploy.title }}</a> | ||
(<a href="{{ deploy.admin_url }}">logs</a>)</td> | ||
<td class="nowrap">{{ deploy.state|title }}</td> | ||
<td class="nowrap"> | ||
{% if deploy.deploy_time %} | ||
{{ deploy.deploy_time }} seconds | ||
{% else %} | ||
- | ||
{% endif %} | ||
</td> | ||
<td class="nowrap">{{ deploy.created_at_parsed }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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,7 +1,4 @@ | ||
from django.conf.urls import url | ||
from wagtailnetlify.views import success_hook, redirects | ||
from django.urls import re_path | ||
from wagtailnetlify.views import redirects | ||
|
||
urlpatterns = [ | ||
url(r"^success$", success_hook, name="success_hook"), | ||
url(r"^redirects$", redirects, name="redirect_builder"), | ||
] | ||
urlpatterns = [re_path(r"^redirects$", redirects, name="redirect_builder")] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add the deployment id here?