[spyder] 03/05: d/control: lintian: fix capitalization errors

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Oct 19 21:46:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository spyder.

commit d38516731ed239eabb4a38c9269854d0c885348c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Oct 19 11:50:11 2014 +0100

    d/control: lintian: fix capitalization errors
---
 debian/control                          |  12 ++--
 scripts/spyder_win_post_install.py.orig | 103 --------------------------------
 2 files changed, 6 insertions(+), 109 deletions(-)

diff --git a/debian/control b/debian/control
index 418aef8..318f684 100644
--- a/debian/control
+++ b/debian/control
@@ -30,7 +30,7 @@ Depends: ${misc:Depends},
 Breaks: ${python-Breaks},
         python-spyderlib (<< 2.3.0+dfsg-2)
 Replaces: python-spyderlib (<< 2.3.0+dfsg-2)
-Description: python IDE for scientists (Python 2)
+Description: Python IDE for scientists (Python 2)
  Spyder (previously known as Pydee) is a free open-source Python
  development environment providing MATLAB-like features in a simple
  and light-weighted software
@@ -65,7 +65,7 @@ Breaks: ${python:Breaks},
         python-spyderlib-doc (<< 2.3.0+dfsg-4)
 Provides: ${python:Provides}
 Replaces: spyder (<< 2.0.12-1)
-Description: python IDE for scientists (Python 2)
+Description: Python IDE for scientists (Python 2)
  Originally written to design Spyder (the Scientific PYthon
  Development EnviRonment), the spyderlib Python library provides
  ready-to-use pure-Python widgets: source code editor with syntax
@@ -83,7 +83,7 @@ Depends: ${misc:Depends},
          ${sphinxdoc:Depends}
 Breaks: python-spyderlib (<< 2.3.0+dfsg-4)
 Replaces: python-spyderlib (<< 2.3.0+dfsg-4)
-Description: python IDE for scientists (Documentation)
+Description: Python IDE for scientists (Documentation)
  Originally written to design Spyder (the Scientific PYthon
  Development EnviRonment), the spyderlib Python library provides
  ready-to-use pure-Python widgets: source code editor with syntax
@@ -103,7 +103,7 @@ Depends: ${misc:Depends},
 Breaks: ${python3-Breaks},
         python3-spyderlib (<< 2.3.0+dfsg-2)
 Replaces: python3-spyderlib (<< 2.3.0+dfsg-2)
-Description: python IDE for scientists (Python 3)
+Description: Python IDE for scientists (Python 3)
  Spyder (previously known as Pydee) is a free open-source Python
  development environment providing MATLAB-like features in a simple
  and light-weighted software
@@ -136,7 +136,7 @@ Suggests: tortoisehg,
 Provides: ${python3:Provides}
 Breaks: ${python3:Breaks},
          spyder3 (<< 2.3.0+dfsg-2)
-Description: python IDE for scientists (Python 3)
+Description: Python IDE for scientists (Python 3)
  Originally written to design Spyder (the Scientific PYthon
  Development EnviRonment), the spyderlib Python library provides
  ready-to-use pure-Python widgets: source code editor with syntax
@@ -152,7 +152,7 @@ Architecture: all
 Section: python
 Depends: ${misc:Depends}
 Provides: ${python3:Provides}
-Description: python IDE for scientists (common files)
+Description: Python IDE for scientists (common files)
  Originally written to design Spyder (the Scientific PYthon
  Development EnviRonment), the spyderlib Python library provides
  ready-to-use pure-Python widgets: source code editor with syntax
diff --git a/scripts/spyder_win_post_install.py.orig b/scripts/spyder_win_post_install.py.orig
deleted file mode 100644
index c12fdf1..0000000
--- a/scripts/spyder_win_post_install.py.orig
+++ /dev/null
@@ -1,103 +0,0 @@
-# postinstall script for Spyder
-"""Create Spyder start menu and desktop entries"""
-
-from __future__ import print_function
-
-import os
-import sys
-import os.path as osp
-import struct
-try:
-    # Python 2
-    import _winreg as winreg
-except ImportError:
-    # Python 3
-    import winreg
-
-
-EWS = "Edit with Spyder"
-KEY_C = r"Software\Classes\%s"
-KEY_C0 = KEY_C % r"Python.%sFile\shell\%s"
-KEY_C1 = KEY_C0 + r"\command"
-
-
-def install():
-    """Function executed when running the script with the -install switch"""
-    # Create Spyder start menu folder
-    start_menu = osp.join(get_special_folder_path('CSIDL_COMMON_PROGRAMS'),
-                          'Spyder (Py%i.%i %i bit)' % (sys.version_info[0],
-                                                       sys.version_info[1],
-                                                       struct.calcsize('P')*8))
-    if not osp.isdir(start_menu):
-        os.mkdir(start_menu)
-        directory_created(start_menu)
-    
-    # Create Spyder start menu entries
-    python = osp.abspath(osp.join(sys.prefix, 'python.exe'))
-    pythonw = osp.abspath(osp.join(sys.prefix, 'pythonw.exe'))
-    script = osp.abspath(osp.join(sys.prefix, 'scripts', 'spyder'))
-    workdir = "%HOMEDRIVE%%HOMEPATH%"
-    import distutils.sysconfig
-    lib_dir = distutils.sysconfig.get_python_lib(plat_specific=1)
-    ico_dir = osp.join(lib_dir, 'spyderlib', 'windows')
-
-    desc = 'Scientific Python Development EnvironmEnt, an alternative to IDLE'
-    fname = osp.join(start_menu, 'Spyder (full).lnk')
-    create_shortcut(python, desc, fname, '"%s"' % script, workdir,
-                    osp.join(ico_dir, 'spyder.ico'))
-    file_created(fname)
-
-    desc += '. Light configuration: console and variable explorer only.'
-    fname = osp.join(start_menu, 'Spyder (light).lnk')
-    create_shortcut(python, desc, fname,
-                    '"%s" --light' % script, workdir,
-                    osp.join(ico_dir, 'spyder_light.ico'))
-    file_created(fname)
-
-    fname = osp.join(start_menu, 'Spyder-Reset all settings.lnk')
-    create_shortcut(python, 'Reset Spyder settings to defaults',
-                    fname, '"%s" --reset' % script, workdir)
-    file_created(fname)
-
-    current = True  # only affects current user
-    root = winreg.HKEY_CURRENT_USER if current else winreg.HKEY_LOCAL_MACHINE
-    winreg.SetValueEx(winreg.CreateKey(root, KEY_C1 % ("", EWS)),
-                      "", 0, winreg.REG_SZ,
-                      '"%s" "%s\Scripts\spyder" "%%1"' % (pythonw, sys.prefix))
-    winreg.SetValueEx(winreg.CreateKey(root, KEY_C1 % ("NoCon", EWS)),
-                      "", 0, winreg.REG_SZ,
-                      '"%s" "%s\Scripts\spyder" "%%1"' % (pythonw, sys.prefix))
-    
-    # Create desktop shortcut file
-    desktop_folder = get_special_folder_path("CSIDL_DESKTOPDIRECTORY")
-    fname = osp.join(desktop_folder, 'Spyder.lnk')
-    create_shortcut(pythonw, desc, fname, '"%s"' % script, workdir,
-                    osp.join(ico_dir, 'spyder.ico'))
-    file_created(fname)
-
-
-def remove():
-    """Function executed when running the script with the -remove switch"""
-    current = True  # only affects current user
-    root = winreg.HKEY_CURRENT_USER if current else winreg.HKEY_LOCAL_MACHINE
-    for key in (KEY_C1 % ("", EWS), KEY_C1 % ("NoCon", EWS),
-                KEY_C0 % ("", EWS), KEY_C0 % ("NoCon", EWS)):
-        try:
-            winreg.DeleteKey(root, key)
-        except WindowsError:
-            pass
-
-
-if __name__=='__main__':
-    if len(sys.argv) > 1:
-        if sys.argv[1] == '-install':
-            try:
-                install()
-            except OSError:
-                print("Failed to create Start Menu items, try running "\
-                      "installer as administrator.", file=sys.stderr)
-        elif sys.argv[1] == '-remove':
-            remove()
-        else:
-            print("Unknown command line option %s" % sys.argv[1],
-                  file=sys.stderr)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/spyder.git



More information about the debian-science-commits mailing list