Skip to content

Commit

Permalink
pkgs/sage-project-cookiecutter: Rename from sage-project
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Mar 18, 2024
1 parent 6f45292 commit aed4ff2
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 6 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Creating a user project

::

$ sage-project create PROJECT-DIRECTORY
$ sage-project-cookiecutter create PROJECT-DIRECTORY

This creates configuration files:

Expand All @@ -34,7 +34,7 @@ This creates configuration files:

It can also be invoked as follows::

$ pipx run cookiecutter gh:sagemath/sage --directory="pkgs/sage-project/sage_project/user-project-template"
$ pipx run cookiecutter gh:sagemath/sage --directory="pkgs/sage-project-cookiecutter/sage_project_cookiecutter/user-project-template"

See https://cookiecutter.readthedocs.io/en/latest/README.html for available options.

Expand All @@ -44,7 +44,7 @@ Creating a pip-installable downstream package

::

$ sage-project create --downstream-package PROJECT-DIRECTORY
$ sage-project-cookiecutter create --downstream-package PROJECT-DIRECTORY

Additionally creates:

Expand All @@ -56,10 +56,23 @@ Adding Sage CI portability/integration testing infrastructure to an upstream pro

::

$ sage-project create --upstream-package PROJECT-DIRECTORY
$ sage-project-cookiecutter create --upstream-package PROJECT-DIRECTORY

Creates:

- ``.github/workflows/ci-sage.yml``
- ``.devcontainer/portability-*``
- ``.devcontainer/tox-docker-in-docker``


Creating a pip-installable upstream package of the SageMath organization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

$ sage-project-cookiecutter create --sagemath-upstream-package PROJECT-DIRECTORY

Additionally creates:

- ``CODE_OF_CONDUCT.md``
- ``CONTRIBUTING.md``
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "sage-project"
name = "sage-project-cookiecutter"
description = "Sage: Open Source Mathematics Software: Script for maintaining a SageMath-based project"
license = {text = "GNU General Public License (GPL) v2 or later"}
authors = [{name = "The Sage Developers", email = "sage-support@googlegroups.com"}]
Expand All @@ -18,12 +18,14 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Mathematics",
]
urls = {Homepage = "https://www.sagemath.org"}
dependencies = [
"cookiecutter",
"cruft",
]
dynamic = ["version"]

Expand All @@ -38,7 +40,7 @@ packages = [
include-package-data = false

[tools.setuptools.package-data]
"sage_project" = [
"sage_project_cookiecutter" = [
"template*/**"
]

Expand Down

0 comments on commit aed4ff2

Please sign in to comment.