Skip to content

Commit e36232d

Browse files
hugovkJacobCoffee
andauthored
Remove outdated PEPs code and docs (#2806)
Co-authored-by: Jacob Coffee <[email protected]>
1 parent d846f82 commit e36232d

File tree

15 files changed

+5
-726
lines changed

15 files changed

+5
-726
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
static/sass/*.css linguist-vendored
2-
peps/tests/fake_pep_repo/*.html linguist-vendored
32
static/js/libs/*.js linguist-vendored
43
static/js/plugins/*.js linguist-vendored

docs/source/commands.rst

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,3 @@ Command-line options
3535
.. option:: --app-label <app_label>
3636

3737
Create initial data with the *app_label* provided.
38-
39-
.. _command-generate-pep-pages:
40-
41-
generate_pep_pages
42-
------------------
43-
44-
This command generates ``pages.Page`` objects from the output
45-
of the existing PEP repository generation process. You run it like::
46-
47-
$ ./manage.py generate_pep_pages
48-
49-
To get verbose output, specify ``--verbosity`` option::
50-
51-
$ ./manage.py generate_pep_pages --verbosity=2
52-
53-
It uses the conversion code in the ``peps/converters.py`` file, in an
54-
attempt to normalize the formatting for display purposes.
55-
56-
.. _command-dump-pep-pages:
57-
58-
dump_pep_pages
59-
--------------
60-
61-
This command simply dumps our PEP related pages as JSON to :attr:`sys.stdout`.
62-
You can run like::
63-
64-
$ ./manage.py dump_pep_pages

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Contents:
2525
install.md
2626
contributing
2727
administration
28-
pep_generation
2928
commands
3029

3130
Indices and tables

docs/source/pep_generation.rst

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

env_sample

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
DATABASE_URL=postgres:///pythondotorg
33
SEARCHBOX_SSL_URL=http://127.0.0.1:9200/
44

5-
# development optional
6-
#PEP_REPO_PATH=None
7-
85
# production required
96
SECRET_KEY=
107
ALLOWED_HOSTS=127.0.0.1,
@@ -13,7 +10,6 @@ EMAIL_HOST_USER=
1310
EMAIL_HOST_PASSWORD=
1411
EMAIL_PORT=
1512
DEFAULT_FROM_EMAIL=
16-
PEP_ARTIFACT_URL=
1713
FASTLY_API_KEY=
1814
SENTRY_DSN=
1915
SOURCE_VERSION=

pydotorg/settings/cabotage.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
EMAIL_USE_TLS = True
6262
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL')
6363

64-
PEP_REPO_PATH = None
65-
PEP_ARTIFACT_URL = config('PEP_ARTIFACT_URL')
66-
6764
# Fastly API Key
6865
FASTLY_API_KEY = config('FASTLY_API_KEY')
6966

pydotorg/settings/local.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@
3434

3535
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
3636

37-
# Set the local pep repository path to fetch PEPs from,
38-
# or none to fallback to the tarball specified by PEP_ARTIFACT_URL.
39-
PEP_REPO_PATH = config('PEP_REPO_PATH', default=None) # directory path or None
40-
41-
# Set the path to where to fetch PEP artifacts from.
42-
# The value can be a local path or a remote URL.
43-
# Ignored if PEP_REPO_PATH is set.
44-
PEP_ARTIFACT_URL = os.path.join(BASE, 'peps/tests/peps.tar.gz')
45-
4637
# Use Dummy SASS compiler to avoid performance issues and remove the need to
4738
# have a sass compiler installed at all during local development if you aren't
4839
# adjusting the CSS at all. Comment this out or adjust it to suit your local

static/sass/_layout.scss

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727

2828
.container,
2929
.row,
30-
.pep-list-header,
31-
.pep-index-list li,
32-
.info-key,
3330
.listing-company,
3431
.list-recent-jobs li { @extend %pie-clearfix; }
3532

@@ -377,43 +374,12 @@
377374

378375
.most-recent-posts { @include span-columns( 9 ); }
379376

380-
.pep-widget,
381377
.psf-widget,
382378
.python-needs-you-widget {
383379
padding: 1.5em 1.75em;
384380
clear: both;
385381
}
386382

387-
/* PEP landing page */
388-
.pep-list-header,
389-
.pep-index-list li,
390-
.info-key { margin: 0 -.5em; }
391-
392-
.pep-list-header { display: block; }
393-
394-
.pep-index-list {
395-
396-
.label { display: none; }
397-
a { display: block; }
398-
li {
399-
border-bottom: 1px solid darken($grey-lighterest, 5%);
400-
margin-bottom: 0;
401-
}
402-
}
403-
404-
.pep-type,
405-
.pep-num,
406-
.pep-title,
407-
.pep-owner {
408-
float: left;
409-
border-bottom: 0;
410-
}
411-
412-
.pep-type { width: 15%; }
413-
.pep-num { width: 10%; }
414-
.pep-title { width: 50%; }
415-
.pep-owner { width: 25%; }
416-
417383
/* Jobs landing page */
418384
.jobs-intro { padding-top: 2em; padding-bottom: 2em; }
419385

@@ -1101,7 +1067,6 @@
11011067
}
11021068
}
11031069

1104-
.pep-widget,
11051070
.psf-widget,
11061071
.python-needs-you-widget {
11071072
padding: 1.5em 1.75em;
@@ -1143,19 +1108,6 @@
11431108
}
11441109
}
11451110

1146-
.pep-widget {
1147-
1148-
.widget-title {
1149-
position: relative;
1150-
padding-right: 6em;
1151-
}
1152-
}
1153-
1154-
.rss-link {
1155-
position: absolute;
1156-
top: 0; right: 0;
1157-
}
1158-
11591111
/* Footer */
11601112
.sitemap {
11611113

static/sass/mq.css

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,11 @@
115115
/* Other elements */
116116
.container,
117117
.row,
118-
.pep-list-header,
119-
.pep-index-list li,
120-
.info-key,
121118
.listing-company,
122119
.list-recent-jobs li {
123120
*zoom: 1; }
124121
.container:after,
125122
.row:after,
126-
.pep-list-header:after,
127-
.pep-index-list li:after,
128-
.info-key:after,
129123
.listing-company:after,
130124
.list-recent-jobs li:after {
131125
content: "";
@@ -338,17 +332,11 @@ html[xmlns] .slides { display: block; }
338332
/* Other elements */
339333
.container,
340334
.row,
341-
.pep-list-header,
342-
.pep-index-list li,
343-
.info-key,
344335
.listing-company,
345336
.list-recent-jobs li {
346337
*zoom: 1; }
347338
.container:after,
348339
.row:after,
349-
.pep-list-header:after,
350-
.pep-index-list li:after,
351-
.info-key:after,
352340
.listing-company:after,
353341
.list-recent-jobs li:after {
354342
content: "";
@@ -1423,48 +1411,11 @@ html[xmlns] .slides { display: block; }
14231411
float: left;
14241412
margin-right: 2.12766%; }
14251413

1426-
.pep-widget,
14271414
.psf-widget,
14281415
.python-needs-you-widget {
14291416
padding: 1.5em 1.75em;
14301417
clear: both; }
14311418

1432-
/* PEP landing page */
1433-
.pep-list-header,
1434-
.pep-index-list li,
1435-
.info-key {
1436-
margin: 0 -.5em; }
1437-
1438-
.pep-list-header {
1439-
display: block; }
1440-
1441-
.pep-index-list .label {
1442-
display: none; }
1443-
.pep-index-list a {
1444-
display: block; }
1445-
.pep-index-list li {
1446-
border-bottom: 1px solid #e3e7ec;
1447-
margin-bottom: 0; }
1448-
1449-
.pep-type,
1450-
.pep-num,
1451-
.pep-title,
1452-
.pep-owner {
1453-
float: left;
1454-
border-bottom: 0; }
1455-
1456-
.pep-type {
1457-
width: 15%; }
1458-
1459-
.pep-num {
1460-
width: 10%; }
1461-
1462-
.pep-title {
1463-
width: 50%; }
1464-
1465-
.pep-owner {
1466-
width: 25%; }
1467-
14681419
/* Jobs landing page */
14691420
.jobs-intro {
14701421
padding-top: 2em;
@@ -2302,7 +2253,6 @@ html[xmlns] .slides { display: block; }
23022253
display: inline;
23032254
visibility: visible; }
23042255

2305-
.pep-widget,
23062256
.psf-widget,
23072257
.python-needs-you-widget {
23082258
padding: 1.5em 1.75em; }
@@ -2349,15 +2299,6 @@ html[xmlns] .slides { display: block; }
23492299
zoom: 1;
23502300
display: inline; }
23512301

2352-
.pep-widget .widget-title {
2353-
position: relative;
2354-
padding-right: 6em; }
2355-
2356-
.rss-link {
2357-
position: absolute;
2358-
top: 0;
2359-
right: 0; }
2360-
23612302
/* Footer */
23622303
.sitemap a {
23632304
text-align: left; }

0 commit comments

Comments
 (0)