Merge lp:~maphew/leo-editor/pypi-packaging into lp:leo-editor

Proposed by Matt Wilkie
Status: Merged
Merged at revision: 5725
Proposed branch: lp:~maphew/leo-editor/pypi-packaging
Merge into: lp:leo-editor
Diff against target: 135 lines (+51/-24)
1 file modified
setup.py (+51/-24)
To merge this branch: bzr merge lp:~maphew/leo-editor/pypi-packaging
Reviewer Review Type Date Requested Status
The Leo editor team Pending
Review via email: mp+159561@code.launchpad.net

Description of the change

Updated `setup.py` for Leo-4.10-final, added "Classifiers" as made sense to me. The resultant source build package was uploaded to the testing Python Package Index server, from which `pip install leo-editor` is successful.

A windows binary distribution build does not appear to be necessary.

Known limitations: __py-cache__ files are included, but shouldn't be.

Recipe:
------

Add 'testing' section to .pypirc, then:

    python setup.py register -r testing
    python setup.py sdist upload -r testing
    pip install -i https://testpypi.python.org/pypi leo-editor

.pypirc:
--------
[distutils]
index-servers =
    pypi
    testing

[pypi]
username:maphew

[testing]
repository:http://testpypi.python.org/pypi
username:maphew
password:SuperSecret123Words

#note: upload failed without the password in file in clear text. I lost patience troubleshooting and just let it ride for now.

To post a comment you must log in.
lp:~maphew/leo-editor/pypi-packaging updated
5722. By Edward K. Ream

merged EKR's docutils work

5723. By tbnorth

patch from SegundoBob to avoid leading space inserting date into empty
headline

5724. By tbnorth

less code better, remove one line (trivial)

5725. By Ville M. Vainio

Merge Matt Wilkies' setup.py mods

Revision history for this message
Edward K. Ream (edreamleo) wrote :

On Thu, Apr 18, 2013 at 2:39 PM, <email address hidden> wrote:

> The proposal to merge lp:~maphew/leo-editor/pypi-packaging into
> lp:leo-editor has been updated.
>
> Status: Needs review => Merged
>

Thanks for this.

Edward

Revision history for this message
Matt Wilkie (maphew) wrote :

you're welcome :)

I've just pushed a minor change to trunk, r5760. hope that's okay. Change
is to use the actual current version number and add myself as temporary
package maintainer (more on this later).

-matt

On Tue, Apr 30, 2013 at 2:46 PM, Edward K. Ream <email address hidden> wrote:

> On Thu, Apr 18, 2013 at 2:39 PM, <email address hidden> wrote:
>
> > The proposal to merge lp:~maphew/leo-editor/pypi-packaging into
> > lp:leo-editor has been updated.
> >
> > Status: Needs review => Merged
> >
>
> Thanks for this.
>
> Edward
>
> --
> https://code.launchpad.net/~maphew/leo-editor/pypi-packaging/+merge/159561
> You are the owner of lp:~maphew/leo-editor/pypi-packaging.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2011-06-12 12:34:11 +0000
3+++ setup.py 2013-04-18 07:23:30 +0000
4@@ -1,9 +1,9 @@
5-#@+leo-ver=4-thin
6-#@+node:ville.20090213231648.1:@thin ~/leo-editor/setup.py
7+#@+leo-ver=5-thin
8+#@+node:maphew.20130415133445.2159: * @file leo-editor/setup.py
9 #@@language python
10 #@@tabwidth -4
11 #@+others
12-#@+node:ville.20090213231648.2:setup declarations
13+#@+node:ville.20090213231648.2: ** setup declarations
14
15 #from setuptools import setup,find_packages
16
17@@ -19,8 +19,7 @@
18 from distutils.command.install_data import install_data
19 from distutils.command.install import INSTALL_SCHEMES
20 import os,fnmatch
21-#@-node:ville.20090213231648.2:setup declarations
22-#@+node:ville.20090213231648.3:fullsplit
23+#@+node:ville.20090213231648.3: ** fullsplit
24 import sys
25
26 def fullsplit(path, result=None):
27@@ -37,17 +36,14 @@
28 return result
29 return fullsplit(head, [tail] + result)
30
31-#@-node:ville.20090213231648.3:fullsplit
32-#@+node:ville.20090213231648.4:purelib hack
33+#@+node:ville.20090213231648.4: ** purelib hack
34 # Tell distutils to put the data_files in platform-specific installation
35 # locations. See here for an explanation:
36 # http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
37 for scheme in list(INSTALL_SCHEMES.values()):
38 scheme['data'] = scheme['purelib']
39-#@+node:ville.20090213233714.2:@url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
40-#@-node:ville.20090213233714.2:@url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
41-#@-node:ville.20090213231648.4:purelib hack
42-#@+node:ville.20090213231648.5:collect (and filter) files
43+#@+node:ville.20090213233714.2: *3* @url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
44+#@+node:ville.20090213231648.5: ** collect (and filter) files
45 # Compile the list of packages available, because distutils doesn't have
46 # an easy way to do this.
47 packages, data_files = [], []
48@@ -87,14 +83,12 @@
49 #cleanup unwanted data files
50
51
52-#@-node:ville.20090213231648.5:collect (and filter) files
53-#@+node:ville.20090213231648.6:bdist_wininst hack
54+#@+node:ville.20090213231648.6: ** bdist_wininst hack
55 # Small hack for working with bdist_wininst.
56 # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
57 if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
58 for file_info in data_files:
59 file_info[0] = '\\PURELIB\\%s' % file_info[0]
60-#@-node:ville.20090213231648.6:bdist_wininst hack
61 #@-others
62
63
64@@ -102,22 +96,56 @@
65 datapats = ['.tix', '.GIF', '.dbm', '.conf', '.TXT', '.xml', '.gif', '*.leo', '.def', '.svg', '*.ini', '.six', '.bat', '.cat', '.pro', '.sh', '.xsl', '.bmp', '.js', '*.ui', '.rix', '.pmsp', '.pyd', '.png', '.alg', '.php', '.css', '.ico', '*.txt', '.html', '.iix', '.w']
66 #print data_files
67
68+# variable order matches order on pkg info page, but that's just a niceity
69+# https://testpypi.python.org/pypi?name=leo-editor&version=4.10-final&:action=submit_form
70 setup(
71 name = 'leo-editor',
72- version = "4.7.1",
73+ version = "4.10-final",
74 author = "Edward K. Ream",
75 author_email = 'edreamleo@gmail.com',
76- url = 'http://webpages.charter.net/edreamleo/front.html',
77+ #maintainer = '',
78+ #maintainer_email = '',
79+ url = 'http://leoeditor.com',
80+ license = 'MIT License',
81+ description = "Leonine Editor with Outlines",
82+ long_description = """
83+Leo is an outline-oriented IDE written in 100% pure Python.
84+Leo features a multi-window outlining editor, Python colorizing,
85+powerful outline commands and many other things, including
86+unlimited Undo/Redo and an integrated Python shell(IDLE) window.
87+Leo requires Python 2.6 or above. Leo works with Python 3.x.
88+Requires PyQt and SIP preinstalled.
89+ """,
90+ #keywords = [],
91+ platforms = ['linux','windows'],
92+ download_url = 'http://sourceforge.net/projects/leo/files/Leo/4.10%20final/Leo-4.10-final.zip/download',
93+ #bugtrack_url = 'https://bugs.launchpad.net/leo-editor', #only py3?
94+
95+ # only include dependencies which can be installed by pip
96+ requires = ['docutils'],
97+
98+ #provides = [],
99+ #obsoletes= [],
100+ classifiers = [
101+ 'Development Status :: 5 - Production/Stable',
102+ 'Environment :: Win32 (MS Windows)',
103+ 'Environment :: X11 Applications :: Qt',
104+ 'Intended Audience :: End Users/Desktop',
105+ 'Intended Audience :: Developers',
106+ 'License :: OSI Approved :: MIT License',
107+ 'Natural Language :: English',
108+ 'Operating System :: Microsoft :: Windows',
109+ 'Operating System :: POSIX :: Linux',
110+ 'Programming Language :: Python :: 2.6',
111+ 'Programming Language :: Python :: 3',
112+ 'Topic :: Software Development',
113+ 'Topic :: Text Editors',
114+ 'Topic :: Text Processing',
115+ ],
116+
117 packages = packages,
118 data_files = data_files,
119 package_data = {'leo.plugins' : datapats },
120- description = "A programmer's editor/outliner, and much more",
121- long_description = """
122-Leo is an outline-oriented editor written in 100% pure Python.
123-Leo features a multi-window outlining editor, syntax colorizing,
124-powerful outline commands and many other things, including
125-unlimited Undo/Redo and scriptability.
126- """,
127 scripts = ['leo/scripts/leo'],
128
129 #entry_points = {
130@@ -130,5 +158,4 @@
131 # }
132
133 )
134-#@-node:ville.20090213231648.1:@thin ~/leo-editor/setup.py
135 #@-leo

Subscribers

People subscribed via source and target branches