pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ipython/ipython/commit/cbe6a036eedd92c15728475bf57d0a6773673d48

60c69660fa.css" /> remove bundled profiles · ipython/ipython@cbe6a03 · GitHub
Skip to content

Commit cbe6a03

Browse files
committed
remove bundled profiles
and move README_STARTUP to core/profile
1 parent cde5f29 commit cbe6a03

11 files changed

Lines changed: 5 additions & 86 deletions

File tree

IPython/config/profile/README

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

IPython/config/profile/__init__.py

Whitespace-only changes.

IPython/config/profile/cluster/ipython_config.py

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

IPython/config/profile/math/ipython_config.py

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

IPython/config/profile/pysh/ipython_config.py

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

IPython/config/profile/sympy/ipython_config.py

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

IPython/core/profileapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def list_profiles_in(path):
112112

113113
def list_bundled_profiles():
114114
"""list profiles that are bundled with IPython."""
115-
path = os.path.join(get_ipython_package_dir(), u'config', u'profile')
115+
path = os.path.join(get_ipython_package_dir(), u'core', u'profile')
116116
files = os.listdir(path)
117117
profiles = []
118118
for profile in files:

IPython/core/profiledir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def check_startup_dir(self):
114114
self._mkdir(self.startup_dir)
115115

116116
readme = os.path.join(self.startup_dir, 'README')
117-
src = os.path.join(get_ipython_package_dir(), u'config', u'profile', u'README_STARTUP')
117+
src = os.path.join(get_ipython_package_dir(), u'core', u'profile', u'README_STARTUP')
118118

119119
if not os.path.exists(src):
120120
self.log.warn("Could not copy README_STARTUP to startup dir. Source file %s does not exist.", src)
@@ -169,7 +169,7 @@ def copy_config_file(self, config_file, path=None, overwrite=False):
169169
if os.path.isfile(dst) and not overwrite:
170170
return False
171171
if path is None:
172-
path = os.path.join(get_ipython_package_dir(), u'config', u'profile', u'default')
172+
path = os.path.join(get_ipython_package_dir(), u'core', u'profile', u'default')
173173
src = os.path.join(path, config_file)
174174
shutil.copy(src, dst)
175175
return True

IPython/core/tests/test_profile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ def test_list_profiles_in():
149149

150150
def test_list_bundled_profiles():
151151
# This variable will need to be updated when a new profile gets bundled
152-
bundled_true = [u'cluster', u'math', u'pysh', u'sympy']
153152
bundled = sorted(list_bundled_profiles())
154-
nt.assert_equal(bundled, bundled_true)
153+
nt.assert_equal(bundled, [])
155154

156155

157156
def test_profile_create_ipython_dir():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy