Bug 219908 - [NEW PORT] devel/py-pyxb: Python XML schema bindings
Summary: [NEW PORT] devel/py-pyxb: Python XML schema bindings
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords: easy, feature
Depends on:
Blocks:
 
Reported: 2017-06-10 15:06 UTC by Jov
Modified: 2017-07-25 04:42 UTC (History)
3 users (show)

See Also:


Attachments
pyxb.shar (1.60 KB, text/plain)
2017-06-10 15:06 UTC, Jov
no flags Details
pyxb.shar (1.91 KB, text/plain)
2017-07-23 15:04 UTC, Jov
no flags Details
pyxb.shar (1.72 KB, text/plain)
2017-07-24 11:54 UTC, Jov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jov 2017-06-10 15:06:22 UTC
Created attachment 183386 [details]
pyxb.shar

PyXB is a pure Python package that generates Python code for classes that
correspond to data structures defined by XMLSchema. In concept it is similar
to JAXB for Java and CodeSynthesis XSD for C++.

WWW: http://pyxb.sourceforge.net

QA:
portlint clean.
poudriere 11.0R-amd64-py27/py36 testport pass
make test pass
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-23 11:50:32 UTC
Review items:

- Package provides user scripts [1], port should be made concurrent safe so all potentially conflicting files are uniquely named when concurrent python versions are installed
- Add LICENSE_FILE (if one exists in DISTFILES/WRKSRC)

[1] scripts=[ 'scripts/pyxbgen', 'scripts/pyxbwsdl', 'scripts/pyxbdump' ],
Comment 2 Jov 2017-07-23 14:33:31 UTC
(In reply to Kubilay Kocak from comment #1)
Thanks for your review, I will fix them.
Comment 3 Jov 2017-07-23 15:04:04 UTC
Created attachment 184634 [details]
pyxb.shar

1.add shebangfix for script
2.fix script name conflict for multi version python install
3.add LICENSE_FILE

QA:
portlint -AC
WARN: /usr/local/poudriere/ports/default/devel/pyxb/distinfo: [1]: TIMESTAMP is over 30 days old
0 fatal errors and 1 warning found.

poudriere testport: 11.0R-amd64
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-24 01:19:27 UTC
Assist at Li-wen's request
Comment 5 Jov 2017-07-24 11:54:02 UTC
Created attachment 184662 [details]
pyxb.shar

use USE_PYTHON=concurrent instead of manual change the script name
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-25 04:36:47 UTC
portlint: OK (looks fine.)
testport: OK (poudriere: 11amd64, 103i386{py27,py36})
maketest: OK (Ran 735 tests in 1.642s - OK)
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-07-25 04:41:07 UTC
A commit references this bug:

Author: koobs
Date: Tue Jul 25 04:40:02 UTC 2017
New revision: 446555
URL: https://svnweb.freebsd.org/changeset/ports/446555

Log:
  [NEW PORT] devel/pyxb: Python XML schema bindings

  PyXB is a pure Python package that generates Python code for classes that
  correspond to data structures defined by XMLSchema. In concept it is similar
  to JAXB for Java and CodeSynthesis XSD for C++.

  WWW: http://pyxb.sourceforge.net

  PR:		219908
  Submitted by:	Jov <amutu amutu com>

Changes:
  head/devel/Makefile
  head/devel/py-pyxb/
  head/devel/py-pyxb/Makefile
  head/devel/py-pyxb/distinfo
  head/devel/py-pyxb/pkg-descr
Comment 8 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-25 04:42:00 UTC
Committed with changes:

- Rename port to py-pyxb
- Use USE_PYTHON=concurrent over custom target
- Use CHEESESHOP (preferred) over GitHub sources
- USES=shebangfix not required for setup.py:scripts/console_scripts, setuptools
  rewrites shebangs
- Add TEST_DEPENDS on py-libxml2 (some tests are skipped otherwise)

Thank you Jov!