simulatino / trimtrailingwhitespaces

Python script that detects textfiles and then removes trailing white spaces and more.
The Unlicense
11 stars 2 forks source link

packaging #3

Closed FND closed 11 years ago

FND commented 11 years ago

not complete yet, as setup.py lacks some boilerplate - see https://github.com/tiddlyweb/httpexceptor/blob/master/setup.py for example

this should now be possible:

$ python setup.py develop # simulates package installation
$ ttws /path/to/file
dietmarw commented 11 years ago

Hi,

any other things that should be changed?

/Dietmar/

On Wed, Oct 30, 2013 at 5:04 PM, FND notifications@github.com wrote:

not complete yet, as setup.py lacks some boilerplate - see https://github.com/tiddlyweb/httpexceptor/blob/master/setup.py for example

this should now be possible:

$ python setup.py develop # simulates package installation $ ttws my-file


You can merge this Pull Request by running

git pull https://github.com/FND/trimtrailingwhitespaces packaging

Or view, comment on, or merge it at:

https://github.com/dietmarw/trimtrailingwhitespaces/pull/3

Commit Summary

moved functionality into package moved command-line interface into separate module replaced/removed cx_Freeze defined console script entry point

File Changes

M setup.py (8) R ttws/init.py (103) A ttws/main.py (97) R ttws/magic.py (0)

Patch Links:

https://github.com/dietmarw/trimtrailingwhitespaces/pull/3.patch https://github.com/dietmarw/trimtrailingwhitespaces/pull/3.diff

Dietmar Winkler

Assistant professor at Telemark University College Department of Electrical Engineering, Information Technology, and Cybernetics

email: Dietmar.Winkler@hit.no web: http://www.hit.no/eng/ansatte/vis/dietmar.winkler mail: Høgskolen i Telemark, v/ Dietmar Winkler, Postboks 203, N-3901 Porsgrunn, Norway room: B-252 phone: +47 3557 5165 fax: +47 3557 5401

Public OpenPGP key: 0x235E6689 (http://home.hit.no/~dietmarw/dietmarw.asc)

FND commented 11 years ago

I don't know - does it work like this?

dietmarw commented 11 years ago

No, unfortunately not: ttws Traceback (most recent call last): File "/usr/local/bin/ttws", line 9, in load_entry_point('ttws==0.3', 'console_scripts', 'ttws')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2307, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2013, in load entry = import(self.module_name, globals(),globals(), ['name']) ImportError: No module named ttws.main

On Fri, Nov 1, 2013 at 12:19 PM, FND notifications@github.com wrote:

I don't know - does it work like this?

— Reply to this email directly or view it on GitHubhttps://github.com/dietmarw/trimtrailingwhitespaces/pull/3#issuecomment-27559512 .

/Dietmar/

Public OpenPGP key: 0x235E6689 (http://home.hit.no/~dietmarw/dietmarw.asc)