Bug 1265828 - mkdocs: please build for EPEL7
Summary: mkdocs: please build for EPEL7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mkdocs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: William Moreno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-23 21:15 UTC by Carl George
Modified: 2016-02-04 21:56 UTC (History)
1 user (show)

Fixed In Version: mkdocs-0.14.0-10.el7
Clone Of:
Environment:
Last Closed: 2016-02-04 21:56:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carl George 2015-09-23 21:15:39 UTC
Description of problem:

Please build mkdocs for EPEL7.

Comment 1 William Moreno 2015-09-24 19:31:37 UTC
The current mkdocs package in Fedora repos it is compiling with python3, but I can request the epel7 branch and build with python2 for epel7. Thanks for the interes.

Comment 2 William Moreno 2015-09-24 19:44:17 UTC
Sorry. I can not build mkdocs in epel7 even with python 2 there is a missing dependency with python-tornado:

http://koji.fedoraproject.org/koji/packageinfo?packageID=9448

mkdocs requires python-tornado 4 and in epel7 there is python-tornado 3, here is a repo corp with packages builded with python 2 and the missgin python-tornado4:

http://copr.fedoraproject.org/coprs/lkiesow/mkdocs/

You can use it with

yum install yum-plugin-copr
yum yum copr enable lkiesow/mkdocs
yum install python-mkdocs

Comment 3 William Moreno 2015-09-24 19:46:04 UTC
Please note than the fedora repo ship mkdocs 14 and the corp versión is mkdocs 12, maybe i can try to build the mkdocs 12 versión in epel7

Comment 4 Carl George 2015-09-29 19:39:58 UTC
Would it be possible to move the tornado dependency to a subpackage?  IIRC, that module is only needed for the development webserver, not for generating the html.  You could then have that subpackage only enabled for Fedora, but disabled on EPEL7.  I'm not sure if the mkdocs code is modular enough to work with this idea, it's just an idea.

Comment 5 William Moreno 2015-09-30 14:29:11 UTC
I will try to disable the test in the EPEL7 build so python tornado will not be needed for build, but I will need to test if mkdocs do  not fail with a traceback, if so I will need to patch and disable the build in server.

Comment 6 Fedora Update System 2015-11-03 21:00:52 UTC
mkdocs-0.14.0-7.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-651ba66629

Comment 7 Fedora Update System 2015-11-05 17:18:52 UTC
mkdocs-0.14.0-7.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update mkdocs'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-651ba66629

Comment 8 Carl George 2015-11-16 13:50:58 UTC
Unfortunately it appears that pkg_resources is preventing the execution of even basic mkdocs commands when tornado 4 isn't present.

> # mkdocs new project
> Traceback (most recent call last):
>   File "/bin/mkdocs", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3080, in <module>
>     @_call_aside
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3066, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
>     return cls._build_from_requirements(__requires__)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'tornado>=4.1' distribution was not found and is required by mkdocs

> # mkdir project
> # cd project
> # mkdir docs
> # echo '# Hello World' > docs/index.md
> # echo 'site_name: Demo Project' > mkdocs.yml
> # mkdocs build
> Traceback (most recent call last):
>   File "/bin/mkdocs", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3080, in <module>
>     @_call_aside
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3066, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
>     return cls._build_from_requirements(__requires__)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'tornado>=4.1' distribution was not found and is required by mkdocs

Comment 9 Fedora Update System 2015-11-21 18:57:12 UTC
mkdocs-0.14.0-9.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48f1c2f3ff

Comment 10 Fedora Update System 2015-11-23 01:19:40 UTC
mkdocs-0.14.0-9.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update mkdocs'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48f1c2f3ff

Comment 11 Carl George 2015-11-23 16:02:42 UTC
This version complains about click now.

> $ mkdocs new project
> Traceback (most recent call last):
>   File "/usr/bin/mkdocs", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3080, in <module>
>     @_call_aside
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3066, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
>     return cls._build_from_requirements(__requires__)
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'click>=4.0' distribution was not found and is required by mkdocs

I manually edited "click>=4.0" to just "click" in /usr/lib/python2.7/site-packages/mkdocs-0.14.0-py2.7.egg-info/requires.txt, and now it works.  I can run "mkdocs new" and "mkdocs build" without issue.

Comment 12 William Moreno 2015-11-23 16:30:49 UTC
Thanks for the feedback, I will drop the click requires and update the package.

Comment 13 Carl George 2015-11-23 16:33:41 UTC
Of course.  I also sent some feedback upstream that may make packaging easier for future releases.

https://github.com/mkdocs/mkdocs/issues/763

Comment 14 Fedora Update System 2015-11-23 21:53:50 UTC
mkdocs-0.14.0-10.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48f1c2f3ff

Comment 15 Fedora Update System 2015-11-26 00:54:46 UTC
mkdocs-0.14.0-10.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update mkdocs'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48f1c2f3ff

Comment 16 Fedora Update System 2016-02-04 21:56:57 UTC
mkdocs-0.14.0-10.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


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