Description of problem: Please build mkdocs for EPEL7.
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.
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
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
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.
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.
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
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
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
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
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
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.
Thanks for the feedback, I will drop the click requires and update the package.
Of course. I also sent some feedback upstream that may make packaging easier for future releases. https://github.com/mkdocs/mkdocs/issues/763
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
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
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.