Skip to content

Commit

Permalink
remove pylons template
Browse files Browse the repository at this point in the history
also some other doc updates
Fixes: #987

Change-Id: Icf3513201a4e26296cef15e2d6b3703759f6e831
  • Loading branch information
zzzeek committed May 31, 2022
1 parent 11839b7 commit 2cd9e1a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 191 deletions.
2 changes: 1 addition & 1 deletion alembic/command.py
Expand Up @@ -29,7 +29,7 @@ def list_templates(config):
with open(
os.path.join(config.get_template_directory(), tempname, "README")
) as readme:
synopsis = next(readme)
synopsis = next(readme).rstrip()
config.print_stdout("%s - %s", tempname, synopsis)

config.print_stdout("\nTemplates are used via the 'init' command, e.g.:")
Expand Down
1 change: 0 additions & 1 deletion alembic/templates/pylons/README

This file was deleted.

71 changes: 0 additions & 71 deletions alembic/templates/pylons/alembic.ini.mako

This file was deleted.

86 changes: 0 additions & 86 deletions alembic/templates/pylons/env.py

This file was deleted.

24 changes: 0 additions & 24 deletions alembic/templates/pylons/script.py.mako

This file was deleted.

7 changes: 3 additions & 4 deletions docs/build/front.rst
Expand Up @@ -93,11 +93,10 @@ Community
=========

Alembic is developed by `Mike Bayer <http://techspot.zzzeek.org>`_, and is
loosely associated with the SQLAlchemy_, `Pylons <http://www.pylonsproject.org>`_,
and `Openstack <http://www.openstack.org>`_ projects.
part of the SQLAlchemy_ project.

User issues, discussion of potential bugs and features should be posted
to the Alembic Google Group at `sqlalchemy-alembic <https://groups.google.com/group/sqlalchemy-alembic>`_.
User issues, discussion of potential bugs and features are most easily
discussed using `Github Discussions <https://github.com/sqlalchemy/alembic/discussions/>`_.

.. _bugs:

Expand Down
5 changes: 3 additions & 2 deletions docs/build/tutorial.rst
Expand Up @@ -108,11 +108,12 @@ command::
generic - Generic single-database configuration.
async - Generic single-database configuration with an async dbapi.
multidb - Rudimentary multi-database configuration.
pylons - Configuration that reads from a Pylons project environment.

Templates are used via the 'init' command, e.g.:

alembic init --template pylons ./scripts
alembic init --template generic ./scripts

.. versionchanged:: 1.8 The "pylons" environment template has been removed.

Editing the .ini File
=====================
Expand Down
5 changes: 3 additions & 2 deletions docs/build/unreleased/764.rst
Expand Up @@ -2,5 +2,6 @@
:tags: feature, typing
:tickets: 764

Adds typing annotations to ``env.py`` and migration templates.
Pull request by Nikita Sobolev.
:pep:`484` typing annotations have been added to the ``env.py`` and
revision template files within migration templates. Pull request by Nikita
Sobolev.
7 changes: 7 additions & 0 deletions docs/build/unreleased/987.rst
@@ -0,0 +1,7 @@
.. change::
:tags: changed, environment
:tickets: 987

The "Pylons" environment template has been removed as of Alembic 1.8. This
template was based on the very old pre-Pyramid Pylons web framework which
has been long superseded by Pyramid.

0 comments on commit 2cd9e1a

Please sign in to comment.