Go to file
Tomas Orsava d48f3500d8 scripts/pythondistdeps: Do anything only when called as a main script
Note that the code is completely unchanged except for the indentation
under the new if __name__ == "__main__":

Note that this change is necessary, but not sufficient to use the
RpmVersion class.
The init of the RpmVersion class will fail when called from an outside
script, because the `parse_version()` function is lazily imported from
the code outside the class.  However, adding the import of
parse_version() to RpmVersion class is not done right now, because while
we would import it from `pkg_resources`, other scripts might want to
rely instead of the lightweight `packaging` module for the import. Thus
I'm leaving this conondrum to be addressed in the future.
2020-04-30 22:24:44 +02:00
tests scripts/pythondistdeps: Implement --normalized-name-* options 2020-04-30 22:24:44 +02:00
.gitignore scripts/pythondistdeps: Add tests 2020-04-30 22:24:44 +02:00
COPYING Fork upstream generators 2018-02-11 00:50:54 +01:00
python-rpm-generators.spec Don't define global Lua variables from Python generator 2020-04-28 14:48:06 +02:00
python.attr Don't define global Lua variables from Python generator 2020-04-28 14:48:06 +02:00
pythondist.attr Enable requires generator 2018-12-20 14:21:14 +01:00
pythondistdeps.py scripts/pythondistdeps: Do anything only when called as a main script 2020-04-30 22:24:44 +02:00
pythonname.attr Automatically call %python_provide 2020-04-03 16:06:46 +02:00