pyb00st icon indicating copy to clipboard operation
pyb00st copied to clipboard

initial version for packaging (setup.py, openSUSE rpm spec)

Open M0ses opened this issue 7 years ago • 5 comments

might fit for fedora also

M0ses avatar Dec 26 '17 12:12 M0ses

Nice, thanks. This even makes it possible to do a python3 ./setup.py install into a virtualenv.

LenzGr avatar Dec 26 '17 19:12 LenzGr

Unfortunately, the RPM building on Fedora 27 fails with an error:

error: line 35: Unknown tag: %python_subpackages

Likely because the macro (and some others used in the spec file) is missing from the python-rpm-macros package shipped with Fedora.

LenzGr avatar Dec 26 '17 19:12 LenzGr

@LenzGr Yeah, I see. Unfortunatly I don't have time to fix this. Having a spec for all rpm based distributions would be great, because it could be built in OBS like here:

https://build.opensuse.org/package/show/home:M0ses/python-pyb00st

contributions or hints how to fix this issue are welcome :-)

M0ses avatar Dec 27 '17 16:12 M0ses

@JorgePe I think for pylint we need a general design decision

  • Would you like the scripts/libs be pylint conform in general
  • How to treat the "invalid-name" problem for "constants" if pylint is a goal
    • use uppercase variable names like here: https://github.com/JorgePe/pyb00st/pull/6/commits/f93114214d093bcb0a13a16aa32ade8f361ce5df#diff-8b04711f9bfdc3af2a935dcbb1e73876R9
    • ban "main" into function like in https://github.com/JorgePe/pyb00st/pull/6/commits/1c8c71a6fad300b677441b6f6e3888ea382fec6a
    • disable check globally in pylintrc
    • disable check per line like describe here https://docs.pylint.org/en/latest/faq.html#do-i-have-to-remember-all-these-numbers

M0ses avatar Dec 27 '17 16:12 M0ses

Looks like it works in Fedora 27 now too

https://build.opensuse.org/package/show/home:M0ses/python3-pyb00st

M0ses avatar Dec 27 '17 21:12 M0ses