Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-10 Thread John M. Harris Jr
On Saturday, May 9, 2020 11:58:43 PM MST Miro Hrončok wrote: > On 10. 05. 20 0:09, John M. Harris Jr wrote: > > > On Saturday, May 9, 2020 2:40:02 PM MST Miro Hrončok wrote: > > > >> On 09. 05. 20 22:56, John M. Harris Jr wrote: > >> > >> > >> > >>> On Wednesday, April 29, 2020 3:38:36 PM MST Mir

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-10 Thread Miro Hrončok
On 10. 05. 20 0:09, John M. Harris Jr wrote: On Saturday, May 9, 2020 2:40:02 PM MST Miro Hrončok wrote: On 09. 05. 20 22:56, John M. Harris Jr wrote: On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: The command that the user executes is "python3.9", not "python39". Let's b

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-09 Thread Neal Gompa
On Sat, May 9, 2020 at 6:09 PM John M. Harris Jr wrote: > > On Saturday, May 9, 2020 2:40:02 PM MST Miro Hrončok wrote: > > On 09. 05. 20 22:56, John M. Harris Jr wrote: > > > > > On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: > > > > > >> The command that the user executes is "py

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-09 Thread John M. Harris Jr
On Saturday, May 9, 2020 2:40:02 PM MST Miro Hrončok wrote: > On 09. 05. 20 22:56, John M. Harris Jr wrote: > > > On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: > > > >> The command that the user executes is "python3.9", not "python39". > > > > > > Let's be realistic. The comma

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-09 Thread Miro Hrončok
On 09. 05. 20 22:56, John M. Harris Jr wrote: On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: The command that the user executes is "python3.9", not "python39". Let's be realistic. The command they run is 'python', 'python2' or 'python3'. Sure, it's a symlink, but that's what u

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-09 Thread Neal Gompa
On Sat, May 9, 2020 at 4:57 PM John M. Harris Jr wrote: > > On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: > > The command that the user executes is "python3.9", not "python39". > > Let's be realistic. The command they run is 'python', 'python2' or 'python3'. > Sure, it's a symlin

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-09 Thread John M. Harris Jr
On Wednesday, April 29, 2020 3:38:36 PM MST Miro Hrončok wrote: > The command that the user executes is "python3.9", not "python39". Let's be realistic. The command they run is 'python', 'python2' or 'python3'. Sure, it's a symlink, but that's what users actually type to be executed. -- John M.

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-05-07 Thread Miro Hrončok
On 29. 04. 20 16:27, Tomas Orsava wrote: Hello everyone. I’m working on a change to rename pythonXY packages to pythonX.Y, e.g. python39 to python3.9. *Motivation:* When you install an additional Python interpreter, the command that runs it contains a dot (e.g. /usr/bin/python3.9) but the pac

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-30 Thread Nicolas Mailhot via devel
Le jeudi 30 avril 2020 à 10:03 +0200, Nicolas Mailhot a écrit : > > Old human languages did not use word separators like space in > writing, because "everyone knew" where one word started and the next > finished. Even scholars that spent their life studying one of those > past civilizations find t

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-30 Thread Nicolas Mailhot via devel
Le jeudi 30 avril 2020 à 10:03 +0200, Nicolas Mailhot a écrit : > > Clever “it’s obvious in the few cases we imagine today, we do not > need a clean version separator” syntaxes fail hard once exposed to > the real world. Also, to get back to the original subject, the whole python package renaming

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-30 Thread Nicolas Mailhot via devel
Le jeudi 30 avril 2020 à 00:38 +0200, Miro Hrončok a écrit : > > My sentence was about "python3.9" not being more annoying than > "python-3.9". > > I wonder, why do you consider periods in names confusing? … > jboss-jsf-2.1-api Another example where the hyphen helps reading. The version is mid

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 29, 2020 at 07:57:13PM +0200, Miro Hrončok wrote: > On 29. 04. 20 19:50, Nicolas Mailhot wrote: > >>I don't agree that "python3.9" as a package name annoys humans or > >>break automation scripts. How does it? > >As soon as you have a different naming convention for numeric and non > >n

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 30. 04. 20 8:50, Miro Hrončok wrote: On 30. 04. 20 1:21, Adam Williamson wrote: I have this in my PATH (called pkgname): #!/usr/bin/python3 import fileinput for line in fileinput.input():   print('-'.join(line.split('-')[:-2])) how about: print(line.rsplit("-", 2)[0]) That's i

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 30. 04. 20 1:21, Adam Williamson wrote: I have this in my PATH (called pkgname): #!/usr/bin/python3 import fileinput for line in fileinput.input(): print('-'.join(line.split('-')[:-2])) how about: print(line.rsplit("-", 2)[0]) That's indeed probably nicer. -- Miro Hrončok --

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Adam Williamson
On Thu, 2020-04-30 at 01:10 +0200, Miro Hrončok wrote: > On 30. 04. 20 1:07, Neal Gompa wrote: > > > my usual mistake is where I do a stupid programming and do something like > > > > > > ls -1 | awk '{split($0,a,"."); print a[1]}' | whatever I needed for just > > > the names of rpms > > > > > >

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 30. 04. 20 1:07, Neal Gompa wrote: my usual mistake is where I do a stupid programming and do something like ls -1 | awk '{split($0,a,"."); print a[1]}' | whatever I needed for just the names of rpms which for most packages will give me the Name-Ver[.sion removed]. it is lazy script progra

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Neal Gompa
On Wed, Apr 29, 2020 at 7:04 PM Stephen John Smoogen wrote: > > > > On Wed, 29 Apr 2020 at 18:44, Miro Hrončok wrote: >> >> On 29. 04. 20 21:42, Lloyd Kvam wrote: >> >> What you say is true. I still don't agree that "python3.9" as a package >> >> name >> >> annoys humans. >> > I am not a package

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Stephen John Smoogen
On Wed, 29 Apr 2020 at 18:44, Miro Hrončok wrote: > On 29. 04. 20 21:42, Lloyd Kvam wrote: > >> What you say is true. I still don't agree that "python3.9" as a package > name > >> annoys humans. > > I am not a package pro, but simply reading along as an interested human > user. To me, adding > >

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 29. 04. 20 21:42, Lloyd Kvam wrote: What you say is true. I still don't agree that "python3.9" as a package name annoys humans. I am not a package pro, but simply reading along as an interested human user. To me, adding periods in package names can be confusing. My sentence was about "pyth

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Nicolas Mailhot via devel
Le mercredi 29 avril 2020 à 19:57 +0200, Miro Hrončok a écrit : > And I don't understand what kind of automation are we > talking about that needs to parse the "3.9" part and figure out it is > a "qualifier". It mostly hits you in the package creation code. The Go macro code will just dump -qualif

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Nicolas Mailhot via devel
Le mercredi 29 avril 2020 à 19:43 +0200, Miro Hrončok a écrit : > On 29. 04. 20 19:37, Nicolas Mailhot wrote: > > Le mercredi 29 avril 2020 à 19:18 +0200, Miro Hrončok a écrit : > > > > > All [compat packages] MUST include the base name suffixed by > > > either: > > Well we are not creating a comp

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Nicolas Mailhot via devel
Le mercredi 29 avril 2020 à 19:57 +0200, Miro Hrončok a écrit : > Such automation is broken anyway, because it cannot tell if python- > requests is a > Python library or a Python "qualifier". It is no more broken than automation that "knows" test means is a version. Of course before you apply

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 29. 04. 20 19:50, Nicolas Mailhot wrote: I don't agree that "python3.9" as a package name annoys humans or break automation scripts. How does it? As soon as you have a different naming convention for numeric and non numeric qualifiers all the code that manipulates your package names must tes

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 29. 04. 20 19:37, Nicolas Mailhot wrote: Le mercredi 29 avril 2020 à 19:18 +0200, Miro Hrončok a écrit : All [compat packages] MUST include the base name suffixed by either: Well we are not creating a compat package here and not adding an hyphen creates an artificial numeric/non numeric spe

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Nicolas Mailhot via devel
Le mercredi 29 avril 2020 à 19:18 +0200, Miro Hrončok a écrit : > All [compat packages] MUST include the base name suffixed by either: Well we are not creating a compat package here and not adding an hyphen creates an artificial numeric/non numeric special case. But, I see someone formalised the

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Kalev Lember
On Wed, Apr 29, 2020 at 4:28 PM Tomas Orsava wrote: > Hello everyone. > I’m working on a change to rename pythonXY packages to pythonX.Y, e.g. > python39 to python3.9. > Changing it to pythonX.Y makes sense I think. It's likely going to be a lot of work for little gain, but I appreciate that you

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 29. 04. 20 18:51, Neal Gompa wrote: What do you think? Do you foresee any problems? I'm good with this plan, except for one thing I thought of we need to address: How do we do comparisons for python versions? In spec %ifs? I've been doing it with %python3_version_nodots. That'll work until

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Miro Hrončok
On 29. 04. 20 18:41, Nicolas Mailhot via devel wrote: Le mercredi 29 avril 2020 à 16:27 +0200, Tomas Orsava a écrit : Hi, I’m working on a change to rename pythonXY packages to pythonX.Y, e.g. python39 to python3.9. Motivation: When you install an additional Python interpreter, the command tha

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Neal Gompa
On Wed, Apr 29, 2020 at 10:28 AM Tomas Orsava wrote: > > Hello everyone. > I’m working on a change to rename pythonXY packages to pythonX.Y, e.g. > python39 to python3.9. > > Motivation: > When you install an additional Python interpreter, the command that runs it > contains a dot (e.g. /usr/bin

Re: Renaming pythonXY packages to pythonX.Y (e.g. python39 to python3.9)

2020-04-29 Thread Nicolas Mailhot via devel
Le mercredi 29 avril 2020 à 16:27 +0200, Tomas Orsava a écrit : Hi, > I’m working on a change to rename pythonXY packages to pythonX.Y, > e.g. python39 to python3.9. > > Motivation: > When you install an additional Python interpreter, the command that > runs it contains a dot (e.g. /usr/bin/pytho