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
=== modified file 'setup.py'
--- setup.py 2011-06-12 12:34:11 +0000
+++ setup.py 2013-04-18 07:23:30 +0000
@@ -1,9 +1,9 @@
1#@+leo-ver=4-thin1#@+leo-ver=5-thin
2#@+node:ville.20090213231648.1:@thin ~/leo-editor/setup.py2#@+node:maphew.20130415133445.2159: * @file leo-editor/setup.py
3#@@language python3#@@language python
4#@@tabwidth -44#@@tabwidth -4
5#@+others5#@+others
6#@+node:ville.20090213231648.2:setup declarations6#@+node:ville.20090213231648.2: ** setup declarations
77
8#from setuptools import setup,find_packages8#from setuptools import setup,find_packages
99
@@ -19,8 +19,7 @@
19from distutils.command.install_data import install_data19from distutils.command.install_data import install_data
20from distutils.command.install import INSTALL_SCHEMES20from distutils.command.install import INSTALL_SCHEMES
21import os,fnmatch21import os,fnmatch
22#@-node:ville.20090213231648.2:setup declarations22#@+node:ville.20090213231648.3: ** fullsplit
23#@+node:ville.20090213231648.3:fullsplit
24import sys23import sys
2524
26def fullsplit(path, result=None):25def fullsplit(path, result=None):
@@ -37,17 +36,14 @@
37 return result36 return result
38 return fullsplit(head, [tail] + result)37 return fullsplit(head, [tail] + result)
3938
40#@-node:ville.20090213231648.3:fullsplit39#@+node:ville.20090213231648.4: ** purelib hack
41#@+node:ville.20090213231648.4:purelib hack
42# Tell distutils to put the data_files in platform-specific installation40# Tell distutils to put the data_files in platform-specific installation
43# locations. See here for an explanation:41# locations. See here for an explanation:
44# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb42# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
45for scheme in list(INSTALL_SCHEMES.values()):43for scheme in list(INSTALL_SCHEMES.values()):
46 scheme['data'] = scheme['purelib']44 scheme['data'] = scheme['purelib']
47#@+node:ville.20090213233714.2:@url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb45#@+node:ville.20090213233714.2: *3* @url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
48#@-node:ville.20090213233714.2:@url http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb46#@+node:ville.20090213231648.5: ** collect (and filter) files
49#@-node:ville.20090213231648.4:purelib hack
50#@+node:ville.20090213231648.5:collect (and filter) files
51# Compile the list of packages available, because distutils doesn't have47# Compile the list of packages available, because distutils doesn't have
52# an easy way to do this.48# an easy way to do this.
53packages, data_files = [], []49packages, data_files = [], []
@@ -87,14 +83,12 @@
87#cleanup unwanted data files83#cleanup unwanted data files
8884
8985
90#@-node:ville.20090213231648.5:collect (and filter) files86#@+node:ville.20090213231648.6: ** bdist_wininst hack
91#@+node:ville.20090213231648.6:bdist_wininst hack
92# Small hack for working with bdist_wininst.87# Small hack for working with bdist_wininst.
93# See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html88# See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
94if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':89if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
95 for file_info in data_files:90 for file_info in data_files:
96 file_info[0] = '\\PURELIB\\%s' % file_info[0]91 file_info[0] = '\\PURELIB\\%s' % file_info[0]
97#@-node:ville.20090213231648.6:bdist_wininst hack
98#@-others92#@-others
9993
10094
@@ -102,22 +96,56 @@
102datapats = ['.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']96datapats = ['.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']
103#print data_files97#print data_files
10498
99# variable order matches order on pkg info page, but that's just a niceity
100# https://testpypi.python.org/pypi?name=leo-editor&version=4.10-final&:action=submit_form
105setup(101setup(
106 name = 'leo-editor',102 name = 'leo-editor',
107 version = "4.7.1",103 version = "4.10-final",
108 author = "Edward K. Ream",104 author = "Edward K. Ream",
109 author_email = 'edreamleo@gmail.com',105 author_email = 'edreamleo@gmail.com',
110 url = 'http://webpages.charter.net/edreamleo/front.html',106 #maintainer = '',
107 #maintainer_email = '',
108 url = 'http://leoeditor.com',
109 license = 'MIT License',
110 description = "Leonine Editor with Outlines",
111 long_description = """
112Leo is an outline-oriented IDE written in 100% pure Python.
113Leo features a multi-window outlining editor, Python colorizing,
114powerful outline commands and many other things, including
115unlimited Undo/Redo and an integrated Python shell(IDLE) window.
116Leo requires Python 2.6 or above. Leo works with Python 3.x.
117Requires PyQt and SIP preinstalled.
118 """,
119 #keywords = [],
120 platforms = ['linux','windows'],
121 download_url = 'http://sourceforge.net/projects/leo/files/Leo/4.10%20final/Leo-4.10-final.zip/download',
122 #bugtrack_url = 'https://bugs.launchpad.net/leo-editor', #only py3?
123
124 # only include dependencies which can be installed by pip
125 requires = ['docutils'],
126
127 #provides = [],
128 #obsoletes= [],
129 classifiers = [
130 'Development Status :: 5 - Production/Stable',
131 'Environment :: Win32 (MS Windows)',
132 'Environment :: X11 Applications :: Qt',
133 'Intended Audience :: End Users/Desktop',
134 'Intended Audience :: Developers',
135 'License :: OSI Approved :: MIT License',
136 'Natural Language :: English',
137 'Operating System :: Microsoft :: Windows',
138 'Operating System :: POSIX :: Linux',
139 'Programming Language :: Python :: 2.6',
140 'Programming Language :: Python :: 3',
141 'Topic :: Software Development',
142 'Topic :: Text Editors',
143 'Topic :: Text Processing',
144 ],
145
111 packages = packages,146 packages = packages,
112 data_files = data_files,147 data_files = data_files,
113 package_data = {'leo.plugins' : datapats },148 package_data = {'leo.plugins' : datapats },
114 description = "A programmer's editor/outliner, and much more",
115 long_description = """
116Leo is an outline-oriented editor written in 100% pure Python.
117Leo features a multi-window outlining editor, syntax colorizing,
118powerful outline commands and many other things, including
119unlimited Undo/Redo and scriptability.
120 """,
121 scripts = ['leo/scripts/leo'],149 scripts = ['leo/scripts/leo'],
122150
123 #entry_points = {151 #entry_points = {
@@ -130,5 +158,4 @@
130 # }158 # }
131159
132)160)
133#@-node:ville.20090213231648.1:@thin ~/leo-editor/setup.py
134#@-leo161#@-leo

Subscribers

People subscribed via source and target branches