-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35941d1
commit 850e11b
Showing
75 changed files
with
590 additions
and
878 deletions.
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
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,21 +1,43 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import pdb | ||
from requests.utils import requote_uri | ||
|
||
TERMINATOR = "\x1b[0m" | ||
WARNING = "\x1b[1;33m [WARNING]: " | ||
INFO = "\x1b[1;33m [INFO]: " | ||
HINT = "\x1b[3;33m" | ||
SUCCESS = "\x1b[1;32m [SUCCESS]: " | ||
|
||
pkg_name = "{{ cookiecutter.project_name }}" | ||
|
||
PROJECT_DIRECTORY = os.path.realpath(os.path.curdir) | ||
|
||
|
||
def remove_file(filepath): | ||
os.remove(os.path.join(PROJECT_DIRECTORY, filepath)) | ||
|
||
|
||
if 'Not open source' == '{{ cookiecutter.open_source_license }}': | ||
remove_file('LICENSE') | ||
if "Not open source" == "{{ cookiecutter.open_source_license }}": | ||
remove_file("LICENSE") | ||
|
||
# Generate Beyond code banner with https://banners.beyondco.de in README header | ||
pip_name = "{{ cookiecutter.project_slug }}" | ||
package_name = "{{ cookiecutter.project_name }}" | ||
description = "{{ cookiecutter.project_description }}" | ||
package_name_encoded = requote_uri(package_name) | ||
description_encoded = requote_uri(description) | ||
pattern = "topography" | ||
line = f"""<p align="center"> | ||
<img src="https://banners.beyondco.de/{package_name_encoded}.png?theme=light&packageManager=pip+install&packageName={pip_name}&pattern={pattern}&style=style_1&description={description_encoded}&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Fgblobscdn.gitbook.com%2Fspaces%2F-L9uc-9XAlqhXkBwrLMA%2Favatar.png"> | ||
</p> | ||
""" | ||
with open(os.path.join(PROJECT_DIRECTORY, "README.md"), "r+") as f: | ||
content = f.read() | ||
f.seek(0, 0) | ||
f.write(line.rstrip("\r\n") + "\n" + content) | ||
|
||
print(SUCCESS+"Your package is ready to be developed ! => cd {{cookiecutter.project_slug}}/"+TERMINATOR) | ||
print( | ||
SUCCESS | ||
+ "Your package is ready to be developed ! => cd {{cookiecutter.project_slug}}/" | ||
+ TERMINATOR | ||
) |
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,14 +1,14 @@ | ||
cookiecutter==1.7.2 | ||
binaryornot==0.4.4 | ||
cookiecutter | ||
binaryornot | ||
pyyaml | ||
flake8 | ||
black | ||
|
||
# Testing | ||
# ------------------------------------------------------------------------------ | ||
pytest-cookies | ||
pytest==6.2.3 | ||
pytest==6.2.4 | ||
pytest-instafail==0.4.2 | ||
masonite>=3.0<4.0 | ||
masonite-validation==3.0.14 | ||
masonite-logging==1.0.1 | ||
pyyaml==5.4.1 | ||
flake8==3.9.1 | ||
black==21.7b0 | ||
https://github.com/MasoniteFramework/masonite4/archive/master.zip | ||
https://github.com/MasoniteFramework/orm/archive/2.0.zip | ||
cryptography |
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,5 +1,5 @@ | ||
APP_DEBUG=True | ||
APP_ENV=development | ||
|
||
APP_KEY=plyUWY8iZnEH9_8WrVjl-LS3B8aRtHK9UAB35fGAq0M= | ||
DB_CONFIG_PATH=tests/integrations/config/database | ||
DB_CONNECTION=sqlite | ||
DB_DATABASE={{cookiecutter.pkg_name}}.db |
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,15 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
||
# Maintain dependencies for cookiecutter repo | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
# Allow up to 10 open pull requests for pip dependencies | ||
open-pull-requests-limit: 10 |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ coverage.xml | |
dist | ||
.env | ||
*.db | ||
masonite.egg-info | ||
src/masonite_{{cookiecutter.pkg_name}}.egg-info |
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
20 changes: 0 additions & 20 deletions
20
{{cookiecutter.project_slug}}/app/http/controllers/WelcomeController.py
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
{{cookiecutter.project_slug}}/app/http/middleware/AuthenticationMiddleware.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.