Skip to content

Commit 9fa5c66

Browse files
committed
Rename the app
1 parent b39a3ff commit 9fa5c66

27 files changed

+35
-35
lines changed

pyramid-app/.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
source = pyramid_app
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include *.txt *.ini *.cfg *.rst
2-
recursive-include pyramid_html *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2
2+
recursive-include pyramid_app *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2
33
recursive-include tests *
44
recursive-exclude * __pycache__
55
recursive-exclude * *.py[co]

pyramid-html/README.md renamed to pyramid-app/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pyramid-html
1+
# pyramid-app
22

33

44
## Introduction
@@ -8,8 +8,8 @@ This project got initialized by using `cookiecutter`.
88
```bash
99
$ cookiecutter gh:Pylons/pyramid-cookiecutter-starter
1010

11-
[1/4] project_name (Pyramid Scaffold): pyramid-html
12-
[2/4] repo_name (pyramid_html):
11+
[1/4] project_name (Pyramid Scaffold): pyramid-app
12+
[2/4] repo_name (pyramid_app):
1313
[3/4] Select template_language
1414
1 - jinja2
1515
2 - chameleon
@@ -30,10 +30,10 @@ Welcome to Pyramid. Sorry for the convenience.
3030
===============================================================================
3131

3232
Change directory into your newly created project.
33-
cd pyramid-html
33+
cd pyramid-app
3434

3535
Create a Python virtual environment.
36-
python3 -m venv env
36+
python3 -m venv .venv
3737

3838
Upgrade packaging tools.
3939
env/bin/pip install --upgrade pip setuptools

pyramid-html/development.ini renamed to pyramid-app/development.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
###
55

66
[app:main]
7-
use = egg:pyramid_html
7+
use = egg:pyramid_app
88

99
pyramid.reload_templates = true
1010
pyramid.debug_authorization = false
@@ -32,7 +32,7 @@ listen = localhost:6543
3232
###
3333

3434
[loggers]
35-
keys = root, pyramid_html
35+
keys = root, pyramid_app
3636

3737
[handlers]
3838
keys = console
@@ -44,10 +44,10 @@ keys = generic
4444
level = INFO
4545
handlers = console
4646

47-
[logger_pyramid_html]
47+
[logger_pyramid_app]
4848
level = DEBUG
4949
handlers =
50-
qualname = pyramid_html
50+
qualname = pyramid_app
5151

5252
[handler_console]
5353
class = StreamHandler

pyramid-html/production.ini renamed to pyramid-app/production.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
###
55

66
[app:main]
7-
use = egg:pyramid_html
7+
use = egg:pyramid_app
88

99
pyramid.reload_templates = false
1010
pyramid.debug_authorization = false
@@ -26,7 +26,7 @@ listen = *:6543
2626
###
2727

2828
[loggers]
29-
keys = root, pyramid_html
29+
keys = root, pyramid_app
3030

3131
[handlers]
3232
keys = console
@@ -38,10 +38,10 @@ keys = generic
3838
level = WARN
3939
handlers = console
4040

41-
[logger_pyramid_html]
41+
[logger_pyramid_app]
4242
level = WARN
4343
handlers =
44-
qualname = pyramid_html
44+
qualname = pyramid_app
4545

4646
[handler_console]
4747
class = StreamHandler

pyramid-html/pyramid_html/templates/base.jinja2 renamed to pyramid-app/pyramid_app/templates/base.jinja2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="description" content="pyramid web application">
88
<meta name="author" content="Pylons Project">
9-
<link rel="shortcut icon" href="{{request.static_url('pyramid_html:static/pyramid-16x16.png')}}">
9+
<link rel="shortcut icon" href="{{request.static_url('pyramid_app:static/pyramid-16x16.png')}}">
1010

1111
<title>Cookiecutter Starter project for the Pyramid Web Framework</title>
1212

1313
<!-- Bootstrap core CSS -->
1414
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
1515

1616
<!-- Custom styles for this scaffold -->
17-
<link href="{{request.static_url('pyramid_html:static/theme.css')}}" rel="stylesheet">
17+
<link href="{{request.static_url('pyramid_app:static/theme.css')}}" rel="stylesheet">
1818

1919
<!-- HTML5 shiv and Respond.js IE8 support of HTML5 elements and media queries -->
2020
<!--[if lt IE 9]>
@@ -29,7 +29,7 @@
2929
<div class="container">
3030
<div class="row">
3131
<div class="col-md-2">
32-
<img class="logo img-responsive" src="{{request.static_url('pyramid_html:static/pyramid.png') }}" alt="pyramid web framework">
32+
<img class="logo img-responsive" src="{{request.static_url('pyramid_app:static/pyramid.png') }}" alt="pyramid web framework">
3333
</div>
3434
<div class="col-md-10">
3535
{% block content %}

pyramid-html/pyramid_html/views/default.py renamed to pyramid-app/pyramid_app/views/default.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
@view_config(
55
route_name='home',
6-
renderer='pyramid_html:templates/home.jinja2'
6+
renderer='pyramid_app:templates/home.jinja2'
77
)
88
def home(request):
9-
return {'project': 'pyramid-html'}
9+
return {'project': 'pyramid-app'}
1010

1111

1212
@view_config(
1313
route_name='about',
14-
renderer='pyramid_html:templates/about.jinja2'
14+
renderer='pyramid_app:templates/about.jinja2'
1515
)
1616
def about(request):
1717
return {'message': 'About pyramid.'}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pyramid.view import notfound_view_config
22

33

4-
@notfound_view_config(renderer='pyramid_html:templates/404.jinja2')
4+
@notfound_view_config(renderer='pyramid_app:templates/404.jinja2')
55
def notfound_view(request):
66
request.response.status = 404
77
return {}

pyramid-html/pytest.ini renamed to pyramid-app/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
addopts = --strict-markers
33

44
testpaths =
5-
pyramid_html
5+
pyramid_app
66
tests

pyramid-html/setup.py renamed to pyramid-app/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
]
2424

2525
setup(
26-
name='pyramid_html',
26+
name='pyramid_app',
2727
version='0.0',
28-
description='pyramid-html',
28+
description='pyramid-app',
2929
long_description=README + '\n\n' + CHANGES,
3030
classifiers=[
3131
'Programming Language :: Python',
@@ -46,7 +46,7 @@
4646
install_requires=requires,
4747
entry_points={
4848
'paste.app_factory': [
49-
'main = pyramid_html:main',
49+
'main = pyramid_app:main',
5050
],
5151
},
5252
)

pyramid-html/testing.ini renamed to pyramid-app/testing.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
###
55

66
[app:main]
7-
use = egg:pyramid_html
7+
use = egg:pyramid_app
88

99
pyramid.reload_templates = false
1010
pyramid.debug_authorization = false
@@ -26,7 +26,7 @@ listen = localhost:6543
2626
###
2727

2828
[loggers]
29-
keys = root, pyramid_html
29+
keys = root, pyramid_app
3030

3131
[handlers]
3232
keys = console
@@ -38,10 +38,10 @@ keys = generic
3838
level = INFO
3939
handlers = console
4040

41-
[logger_pyramid_html]
41+
[logger_pyramid_app]
4242
level = DEBUG
4343
handlers =
44-
qualname = pyramid_html
44+
qualname = pyramid_app
4545

4646
[handler_console]
4747
class = StreamHandler
File renamed without changes.

pyramid-html/tests/conftest.py renamed to pyramid-app/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
import webtest
77

8-
from pyramid_html import main
8+
from pyramid_app import main
99

1010

1111
def pytest_addoption(parser):

pyramid-html/tests/test_views.py renamed to pyramid-app/tests/test_views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from pyramid_html.views.default import home, about
2-
from pyramid_html.views.notfound import notfound_view
1+
from pyramid_app.views.default import home, about
2+
from pyramid_app.views.notfound import notfound_view
33

44

55
def test_home(app_request):
66
info = home(app_request)
77
assert app_request.response.status_int == 200
8-
assert info['project'] == 'pyramid-html'
8+
assert info['project'] == 'pyramid-app'
99

1010

1111
def test_notfound_view(app_request):

pyramid-html/.coveragerc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)