Bug 1691384 - please update to the current release
Summary: please update to the current release
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ansible-lint
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-21 14:08 UTC by James Hogarth
Modified: 2022-03-10 13:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 13:45:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description James Hogarth 2019-03-21 14:08:30 UTC
Description of problem:
Recently the ansible core team took over ownership of ansible-lint

There was a 4.0 release with a number of bugfixes and more recently a 4.1 release with some important new features (such as skipping a specific rule rather than all rules on a task).

Please can you build a new EPEL7 with the current released version.

See the changelog for more important changes: https://github.com/ansible/ansible-lint/blob/master/CHANGELOG.rst

Comment 1 Parag Nemade 2019-03-22 07:34:02 UTC
I think this required some work and also not sure if I can get all the required python2 dependencies in epel7.

Comment 2 Parag Nemade 2019-03-22 07:42:29 UTC
I am not sure how to get things working. I see ansible package is python2, python-setuptools_scm is python3, there is no python-setuptools_scm_git_archive package in epel7.

Comment 3 James Hogarth 2019-03-25 17:06:06 UTC
I started toying with this the other day... 

The scm_archive code is only used for developer snapshots to create the version etc so it looks feasible to patch out that dependency. 

I hit the issue with setuptools getting an Unicode issue when using the 

package_dir = [
  = lib
]

syntax in setup.cfg so started removing that (there is supposedly a workaround in setup.py but it obviously doesn't work. 

I'm pretty sure that once we fix that issue we'll get the rest working. 

Urgh... can't wait till RHEL8 and EL7 stops holding things back again...

Comment 4 James Hogarth 2019-03-25 17:18:47 UTC
The actual error:

Traceback (most recent call last):
  File "setup.py", line 146, in <module>
    __name__ == '__main__' and setuptools.setup(**setup_params)
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/build_py.py", line 89, in run
    self.build_packages()
  File "/usr/lib64/python2.7/distutils/command/build_py.py", line 372, in build_packages
    self.build_module(module, module_file, package)
  File "/usr/lib/python2.7/site-packages/setuptools/command/build_py.py", line 106, in build_module
    outfile, copied = _build_py.build_module(self, module, module_file, package)
  File "/usr/lib64/python2.7/distutils/command/build_py.py", line 333, in build_module
    "'package' must be a string (dot-separated), list, or tuple")
TypeError: 'package' must be a string (dot-separated), list, or tuple
error: Bad exit status from /var/tmp/rpm-tmp.PnwrG7 (%build)
    Bad exit status from /var/tmp/rpm-tmp.PnwrG7 (%build)

Comment 5 Parag Nemade 2022-03-10 13:45:38 UTC
we can't build ansible-lint in rhel8 itself due to missing functionality of using pyproject-rpm-macros
Let's close this as wontfix


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