Python Forum
Python wheel packages - how to add timestamp to the wheel name?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python wheel packages - how to add timestamp to the wheel name?
#1
I am using Jenkins to create a new build packages for Python. My setup.py file is the following:

setup(
name = "my-package",
version = "1.0.0",
author = "Bob Bob",
description = "test",
packages=['my-package'],
install_requires=['sample1001']
)

We run: python setup.py bdist_wheel The resulting file is the following: my_package-1.0.0-py3-none-any.whl

I know that by simple version change I can impact my wheel package name. But most of the time if some small change is being set we do not want to change the version field, but we would like to add timestamp to the existing name of the wheel package, so that we can have different build file (not to overwrite the previous one),

Can you please tell me - how I can add timestamp to wheel name? I cannot find that info anywhere... what is the usual practice? is the only option to change version field?
I am devops - but developers when they push new python code should not worry about changing the version field in the same time... At least that is how I see it... but please tell me what is the best practice if we do not want to simply just overwrite the existing wheel file?

Thanks a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing python packages in a virtual environment Led_Zeppelin 1 776 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 855 Jul-15-2023, 11:32 AM
Last Post: snippsat
  error in timestamp Led_Zeppelin 3 3,245 Jun-15-2022, 08:28 PM
Last Post: deanhystad
  python wheel file Led_Zeppelin 1 1,210 Jun-15-2022, 04:08 PM
Last Post: Led_Zeppelin
  error in timestamp Led_Zeppelin 0 1,016 Jun-10-2022, 07:59 PM
Last Post: Led_Zeppelin
  Building Wheel files (why would it ask for the wrong version?) coreyhanson 1 2,315 Jan-25-2021, 09:50 PM
Last Post: coreyhanson
  Unpacking wheel files DavidTheGrockle 3 11,456 Dec-15-2020, 05:11 PM
Last Post: DavidTheGrockle
  How to create local copies of Python packages so they do not have to be downloaded okhajut 3 2,040 Sep-29-2020, 02:22 PM
Last Post: buran
  python interpreter won't import packages greenpy 1 1,987 Sep-11-2020, 07:47 PM
Last Post: buran
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 6,528 Jul-09-2020, 04:46 PM
Last Post: srikanth7482

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020