Bug 1170159 - Review Request: python-factory-boy - A versatile test fixtures replacement based on thoughtbot's factory_girl
Summary: Review Request: python-factory-boy - A versatile test fixtures replacement ba...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mario Blättermann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1170213
TreeView+ depends on / blocked
 
Reported: 2014-12-03 12:37 UTC by Juan Orti
Modified: 2014-12-25 05:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-15 14:55:23 UTC
Type: ---
Embargoed:
mario.blaettermann: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Juan Orti 2014-12-03 12:37:24 UTC
Spec URL: https://jorti.fedorapeople.org/python-factory-boy/python-factory-boy.spec
SRPM URL: https://jorti.fedorapeople.org/python-factory-boy/python-factory-boy-2.4.1-1.fc21.src.rpm
Description: factory_boy is a fixtures replacement based on thoughtbot's factory_girl <http://github.com/thoughtbot/factory_girl>.

Its features include:

- Straightforward syntax
- Support for multiple build strategies (saved/unsaved instances, attribute
  dicts, stubbed objects)
- Powerful helpers for common cases (sequences, sub-factories, reverse
  dependencies, circular factories, ...)
- Multiple factories per class support, including inheritance
- Support for various ORMs (currently Django, Mogo, SQLAlchemy)

Fedora Account System Username: jorti

Comment 1 Mario Blättermann 2014-12-05 20:21:50 UTC
Scratch build for f21:
http://koji.fedoraproject.org/koji/taskinfo?taskID=8307001

Some comments:

Both packages for Python 2 and 3 contain the man page factory_boy.1.gz. But the packages need to be independent from each other. If someone installs the py2 version, it would be impossible to also install the py3 package due to a file conflict. Either rename the man page (preferrably in the py2 package because we get py3 as default version soon) or move the man page to a sub package -common or anything similar and let the packages depend on that.
Moreover, the man page is in a section where usually the man pages of executable binaries resides. But factory_boy.1 is rather a subroutine (section 3), isn't it? 

The package names are somewhat odd:

python3-factory_boy-2.4.1-1.fc21.noarch.rpm
python-factory-boy-2.4.1-1.fc21.noarch.rpm

What's the reason to use either an underscore or a hyphen in the package names?

The -doc subpackage requires the py2 version to be installed. This is unusual for -doc packages, unless there's no other way to launch a doc viewer than from the application itself.

PKG-INFO doesn't have to be in %doc. It is included in egg-info anyway.

The source tarball contains some tests, du you've tried to run them?

Comment 2 Mario Blättermann 2014-12-05 20:28:36 UTC
Just forgot the rpmlint output:


$ rpmlint -i -v *
python3-factory_boy.noarch: I: checking
python3-factory_boy.noarch: W: spelling-error Summary(en_US) verstile -> versatile, stiller
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: summary-ended-with-dot C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
Summary ends with a dot.

python3-factory_boy.noarch: E: summary-too-long C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
The "Summary:" must not exceed 80 characters.

python3-factory_boy.noarch: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python3-factory_boy.noarch: E: description-line-too-long C factory_boy is a fixtures replacement based on thoughtbot's `factory_girl <http://github.com/thoughtbot/factory_girl>`_.
Your description lines must not exceed 80 characters. If a line is exceeding
this number, cut it to fit in two lines.

python3-factory_boy.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.noarch: I: checking
python-factory-boy.noarch: W: spelling-error Summary(en_US) verstile -> versatile, stiller
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: summary-ended-with-dot C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
Summary ends with a dot.

python-factory-boy.noarch: E: summary-too-long C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
The "Summary:" must not exceed 80 characters.

python-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: E: description-line-too-long C factory_boy is a fixtures replacement based on thoughtbot's `factory_girl <http://github.com/thoughtbot/factory_girl>`_.
Your description lines must not exceed 80 characters. If a line is exceeding
this number, cut it to fit in two lines.

python-factory-boy.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.src: I: checking
python-factory-boy.src: W: spelling-error Summary(en_US) verstile -> versatile, stiller
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: summary-ended-with-dot C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
Summary ends with a dot.

python-factory-boy.src: E: summary-too-long C A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby.
The "Summary:" must not exceed 80 characters.

python-factory-boy.src: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: E: description-line-too-long C factory_boy is a fixtures replacement based on thoughtbot's `factory_girl <http://github.com/thoughtbot/factory_girl>`_.
Your description lines must not exceed 80 characters. If a line is exceeding
this number, cut it to fit in two lines.

python-factory-boy.src: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.src: E: invalid-spec-name
Your spec filename must end with '.spec'. If it's not the case, rename your
file and rebuild your package.

python-factory-boy.src: I: checking-url https://pypi.python.org/packages/source/f/factory_boy/factory_boy-2.4.1.tar.gz (timeout 10 seconds)
python-factory-boy-doc.noarch: I: checking
python-factory-boy-doc.noarch: W: summary-not-capitalized C python-factory-boy API docs
Summary doesn't begin with a capital letter.

python-factory-boy-doc.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy-doc.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/python-factory-boy-doc/html/_static/jquery.js
This file has wrong end-of-line encoding, usually caused by creation or
modification on a non-Unix system. It could prevent it from being displayed
correctly in some circumstances.

python-factory-boy-doc.noarch: W: hidden-file-or-dir /usr/share/doc/python-factory-boy-doc/html/.buildinfo
The file or directory is hidden. You should see if this is normal, and delete
it from the package if not.

python-factory_boy.spec: I: checking
python-factory_boy.spec: I: checking-url https://pypi.python.org/packages/source/f/factory_boy/factory_boy-2.4.1.tar.gz (timeout 10 seconds)
4 packages and 1 specfiles checked; 7 errors, 27 warnings.

Comment 3 Juan Orti 2014-12-10 14:20:15 UTC
Thanks for your comments, I've uploaded an overhauled version with many changes:

Spec URL: https://jorti.fedorapeople.org/python-factory-boy/python-factory-boy.spec
SRPM URL: https://jorti.fedorapeople.org/python-factory-boy/python-factory-boy-2.4.1-2.fc21.src.rpm
Description: factory_boy is a fixtures replacement based on thoughtbot's factory_girl
<http://github.com/thoughtbot/factory_girl>.

Its features include:

- Straightforward syntax
- Support for multiple build strategies (saved/unsaved instances, attribute
  dicts, stubbed objects)
- Powerful helpers for common cases (sequences, sub-factories, reverse
  dependencies, circular factories, ...)
- Multiple factories per class support, including inheritance
- Support for various ORMs (currently Django, Mogo, SQLAlchemy)

Fedora Account System Username: jorti

Comment 4 Mario Blättermann 2014-12-12 19:50:05 UTC
Scratch build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=8363748

$ rpmlint -i -v *
python3-factory-boy.noarch: I: checking
python3-factory-boy.noarch: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python3-factory-boy.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.noarch: I: checking
python-factory-boy.noarch: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.src: I: checking
python-factory-boy.src: W: spelling-error Summary(en_US) thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US thoughtbot's -> thought's
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US http -> HTTP
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US github -> git hub, git-hub, thuggish
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US thoughtbot -> thought bot, thought-bot, thought
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: W: spelling-error %description -l en_US dicts -> ducts, dicta, dict
The value of this tag appears to be misspelled. Please double-check.

python-factory-boy.src: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.src: I: checking-url https://github.com/rbarrois/factory_boy/archive/87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26/factory_boy-87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26.tar.gz (timeout 10 seconds)
python-factory-boy-doc.noarch: I: checking
python-factory-boy-doc.noarch: I: checking-url https://github.com/rbarrois/factory_boy (timeout 10 seconds)
python-factory-boy.spec: I: checking
python-factory-boy.spec: I: checking-url https://github.com/rbarrois/factory_boy/archive/87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26/factory_boy-87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26.tar.gz (timeout 10 seconds)
4 packages and 1 specfiles checked; 0 errors, 18 warnings.


Besides some ignorable spelling errors, nothing of interest so far.

---------------------------------
key:

[+] OK
[.] OK, not applicable
[X] needs work
---------------------------------

[+] MUST: rpmlint must be run on the source rpm and all binary rpms the build produces. The output should be posted in the review.
[+] MUST: The package must be named according to the Package Naming Guidelines.
[+] MUST: The spec file name must match the base package %{name}, in the format %{name}.spec unless your package has an exemption.
[+] MUST: The package must meet the Packaging Guidelines.
[+] MUST: The package must be licensed with a Fedora approved license and meet the Licensing Guidelines.
[+] MUST: The License field in the package spec file must match the actual license.
    MIT
[+] MUST: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package must be included in %doc.
[+] MUST: The spec file must be written in American English.
[+] MUST: The spec file for the package MUST be legible.
[+] MUST: The sources used to build the package must match the upstream source, as provided in the spec URL. Reviewers should use sha256sum for this task as it is used by the sources file once imported into git. If no upstream URL can be specified for this package, please see the Source URL Guidelines for how to deal with this.
    $ sha256sum *
fc5dfa484794de38ecde719805e8fb76e7de13f0b673199665759c5857515b50  factory_boy-87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26.tar.gz
fc5dfa484794de38ecde719805e8fb76e7de13f0b673199665759c5857515b50  factory_boy-87f8cc0cc0d2f48f489c81b8c93e8ab6de6cff26.tar.gz.orig

[+] MUST: The package MUST successfully compile and build into binary rpms on at least one primary architecture.
[.] MUST: If the package does not successfully compile, build or work on an architecture, then those architectures should be listed in the spec in ExcludeArch. Each architecture listed in ExcludeArch MUST have a bug filed in bugzilla, describing the reason that the package does not compile/build/work on that architecture. The bug number MUST be placed in a comment, next to the corresponding ExcludeArch line.
[+] MUST: All build dependencies must be listed in BuildRequires, except for any that are listed in the exceptions section of the Packaging Guidelines ; inclusion of those as BuildRequires is optional. Apply common sense.
[.] MUST: The spec file MUST handle locales properly. This is done by using the %find_lang macro. Using %{_datadir}/locale/* is strictly forbidden.
[.] MUST: Every binary RPM package (or subpackage) which stores shared library files (not just symlinks) in any of the dynamic linker's default paths, must call ldconfig in %post and %postun.
[.] MUST: Packages must NOT bundle copies of system libraries.
[.] MUST: If the package is designed to be relocatable, the packager must state this fact in the request for review, along with the rationalization for relocation of that specific package. Without this, use of Prefix: /usr is considered a blocker.
[+] MUST: A package must own all directories that it creates. If it does not create a directory that it uses, then it should require a package which does create that directory.
[+] MUST: A Fedora package must not list a file more than once in the spec file's %files listings. (Notable exception: license texts in specific situations) 
[+] MUST: Permissions on files must be set properly. Executables should be set with executable permissions, for example.
[+] MUST: Each package must consistently use macros.
[+] MUST: The package must contain code, or permissable content.
[+] MUST: Large documentation files must go in a -doc subpackage. (The definition of large is left up to the packager's best judgement, but is not restricted to size. Large can refer to either size or quantity).
[+] MUST: If a package includes something as %doc, it must not affect the runtime of the application. To summarize: If it is in %doc, the program must run properly if it is not present.
[.] MUST: Static libraries must be in a -static package.
[.] MUST: Development files must be in a -devel package.
[.] MUST: In the vast majority of cases, devel packages must require the base package using a fully versioned dependency: Requires: %{name}%{?_isa} = %{version}-%{release}
[.] MUST: Packages must NOT contain any .la libtool archives, these must be removed in the spec if they are built.
[.] MUST: Packages containing GUI applications must include a %{name}.desktop file, and that file must be properly installed with desktop-file-install in the %install section. If you feel that your packaged GUI application does not need a .desktop file, you must put a comment in the spec file with your explanation.
[+] MUST: Packages must not own files or directories already owned by other packages. The rule of thumb here is that the first package to be installed should own the files or directories that other packages may rely upon. This means, for example, that no package in Fedora should ever share ownership with any of the files or directories owned by the filesystem or man package. If you feel that you have a good reason to own a file or directory that another package owns, then please present that at package review time. 
[+] MUST: All filenames in rpm packages must be valid UTF-8.


[.] SHOULD: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it.
[.] SHOULD: The description and summary sections in the package spec file should contain translations for supported Non-English languages, if available.
[+] SHOULD: The reviewer should test that the package builds in mock.
    See Koji build above (which uses Mock anyway).
[+] SHOULD: The package should compile and build into binary rpms on all supported architectures.
[.] SHOULD: The reviewer should test that the package functions as described. A package should not segfault instead of running, for example.
[+] SHOULD: If scriptlets are used, those scriptlets must be sane. This is vague, and left up to the reviewers judgement to determine sanity.
[.] SHOULD: Usually, subpackages other than devel should require the base package using a fully versioned dependency.
[.] SHOULD: The placement of pkgconfig(.pc) files depends on their usecase, and this is usually for development purposes, so should be placed in a -devel pkg. A reasonable exception is that the main pkg itself is a devel tool not installed in a user runtime, e.g. gcc or gdb.
[.] SHOULD: If the package has file dependencies outside of /etc, /bin, /sbin, /usr/bin, or /usr/sbin consider requiring the package which provides the file instead of the file itself.
[+] SHOULD: your package should contain man pages for binaries/scripts. If it doesn't, work with upstream to add them where they make sense.


----------------

PACKAGE APPROVED

----------------

Comment 5 Juan Orti 2014-12-12 22:48:46 UTC
New Package SCM Request
=======================
Package Name: python-factory-boy
Short Description: A versatile test fixtures replacement based on thoughtbot's factory_girl
Upstream URL: https://github.com/rbarrois/factory_boy
Owners: jorti
Branches: f19 f20 f21
InitialCC:

Comment 6 Gwyn Ciesla 2014-12-15 13:24:40 UTC
Git done (by process-git-requests).

Comment 7 Fedora Update System 2014-12-15 14:52:26 UTC
python-factory-boy-2.4.1-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-factory-boy-2.4.1-2.fc21

Comment 8 Fedora Update System 2014-12-15 14:53:27 UTC
python-factory-boy-2.4.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-factory-boy-2.4.1-2.fc20

Comment 9 Fedora Update System 2014-12-15 14:54:41 UTC
python-factory-boy-2.4.1-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-factory-boy-2.4.1-2.fc19

Comment 10 Fedora Update System 2014-12-25 05:30:53 UTC
python-factory-boy-2.4.1-2.fc19 has been pushed to the Fedora 19 stable repository.

Comment 11 Fedora Update System 2014-12-25 05:32:46 UTC
python-factory-boy-2.4.1-2.fc21 has been pushed to the Fedora 21 stable repository.

Comment 12 Fedora Update System 2014-12-25 05:34:14 UTC
python-factory-boy-2.4.1-2.fc20 has been pushed to the Fedora 20 stable repository.


Note You need to log in before you can comment on or make changes to this bug.