sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.33k stars 453 forks source link

Cookiecutter for Sage user projects with devcontainer #34286

Open mkoeppe opened 2 years ago

mkoeppe commented 2 years ago

A cross of

The devcontainer config would be one of those added in #33671 (sagemath-sage or downstream-...).

Prospective sage users on Windows can use the devcontainer config to automate the Sage install in WSL. VS Code walks you through this.

Also a command sage --cookiecutter or sage --new-project could be added.

Cookiecutter details:

Cookiecutter template inspiration:

Alternative to cookiecutter:

Component: scripts

Issue created by migration from https://trac.sagemath.org/ticket/34286

mkoeppe commented 2 years ago

Description changed:

--- 
+++ 
@@ -8,3 +8,4 @@

 Also a command `sage --cookiecutter` could be added.

+Alternative to cookiecutter: https://marketplace.visualstudio.com/items?itemName=cantonios.project-templates
mkoeppe commented 2 years ago

Description changed:

--- 
+++ 
@@ -6,6 +6,6 @@

 Prospective sage users on Windows can use the devcontainer config to automate the Sage install in WSL. VS Code walks you through this.

-Also a command `sage --cookiecutter` could be added.
+Also a command `sage --cookiecutter` or `sage --new-project` could be added.

 Alternative to cookiecutter: https://marketplace.visualstudio.com/items?itemName=cantonios.project-templates
mkoeppe commented 2 years ago

Description changed:

--- 
+++ 
@@ -8,4 +8,8 @@

 Also a command `sage --cookiecutter` or `sage --new-project` could be added.

-Alternative to cookiecutter: https://marketplace.visualstudio.com/items?itemName=cantonios.project-templates
+Alternative to cookiecutter: 
+- https://marketplace.visualstudio.com/items?itemName=cantonios.project-templates
+
+- Getting a devcontainer template for Sage into https://github.com/microsoft/vscode-dev-containers/tree/main/containers 
+
tobiasdiez commented 2 years ago
comment:4

Since the template consists mostly in static files, it should be enough to use github's template repo https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository

mkoeppe commented 2 years ago
comment:5

That's a great idea, I forgot about those!