Merge lp:~hawkowl/twistedchecker/add-setup-1084552 into lp:~twisted-dev/twistedchecker/trunk
Proposed by
HawkOwl
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 30 | ||||||||
Proposed branch: | lp:~hawkowl/twistedchecker/add-setup-1084552 | ||||||||
Merge into: | lp:~twisted-dev/twistedchecker/trunk | ||||||||
Diff against target: |
93 lines (+62/-17) 3 files modified
README (+0/-17) README.rst (+19/-0) setup.py (+43/-0) |
||||||||
To merge this branch: | bzr merge lp:~hawkowl/twistedchecker/add-setup-1084552 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Wall (community) | Approve | ||
Twisted-dev | Pending | ||
Review via email: mp+183223@code.launchpad.net |
Description of the change
Including a setup.py, allowing TwistedChecker to be installed system-wide.
To post a comment you must log in.
Thanks hawkowl,
This looks good. I'm looking forward to being able to install from
Pypi.
Here are a few notes:
1. Add a newline at end of file. "\ No newline at end of file"
2. description
1. I think the term "code standard" in the descriptions sounds
unfamiliar. I think it's commonly called "coding standard".
2. Add a link to the coding standard document.
3. python setup.py --requires gives no output although I can see
that you've specified install_requires. Not sure why or if
it's important. The Twisted one doesn't either.
4. I'd guess that install_ requirements might mean packages that
are needed to compile the package while requirements are
run-time requirements.
1. I've seen most other python packages have a requirements.txt
file - should we do that here.
5. I like the way klein and treq have organised their setup.py - they /github. com/dreid/ treq/blob/ master/ setup.py
haven't bothered with a main function and they read the content of
the README as the long description. I'd be inclined to follow
their style.
1. https:/
6. The classifiers don't mention any python versions. They should
probably be the same as Twisted itself.
7. No keywords - might be nice to add a few.
8. I get config parsing error unless I'm running it from the cker)[richard@ zorin ~]$ twistedchecker --help richard/ .virtualenvs/ twistedchecker/ bin/twistedchec ker", line 10, in <module>
Runner( ).run(sys. argv[1: ]) richard/ .virtualenvs/ twistedchecker/ lib/python2. 7/site- packages/ twistedchecker/ core/runner. py", line 57, in __init__
.cfgfile_ parser. get("TWISTEDCHE CKER", "disable") python2. 7/ConfigParser. py", line 607, in get section) r.NoSectionErro r: No section: 'TWISTEDCHECKER'
twistedchecker working directory
{{{
(twistedche
No config file found, using default configuration
Traceback (most recent call last):
File "/home/
File "/home/
File "/usr/lib64/
raise NoSectionError(
ConfigParse
}}}
1. Is that because setup.py should generate the default configuration?
2. Also sounds like this bug which you though would be fixed by /bugs.launchpad .net/twistedche cker/+bug/ 1096562
setup.py https:/
I think the goal of this branch should be to allow us to publish the
to Pypi and be able to install from Pypi using pip.
Please address or answer the numbered points above and resubmit for
review.
Thanks again. -RichardW.
PS Here are my suggested changes to the description
=== modified file 'setup.py'
" pylint= =0.26.0" ,
" pep8==1. 3.3"
long_ description= """\
--- setup.py 2013-08-30 15:42:55 +0000
+++ setup.py 2013-09-01 20:15:19 +0000
@@ -52,12 +52,11 @@
],
- description='A code standards checker for Twisted.',
+ description='A Twisted coding standard compliance checker.',
-TwistedChecker is a code standards checker, originally designed for the use of
-the Twisted project. It tests Python code for problems such as PEP8 compliance,
-docstrings, trailing spaces and strange variable naming.
-""",
+TwistedChecker checks Python code for compliance with the Twisted coding standa...