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 909 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 998 Jul-15-2023, 11:32 AM
Last Post: snippsat
  python wheel file Led_Zeppelin 1 1,297 Jun-15-2022, 04:08 PM
Last Post: Led_Zeppelin
  Building Wheel files (why would it ask for the wrong version?) coreyhanson 1 2,375 Jan-25-2021, 09:50 PM
Last Post: coreyhanson
  Unpacking wheel files DavidTheGrockle 3 12,343 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,116 Sep-29-2020, 02:22 PM
Last Post: buran
  python interpreter won't import packages greenpy 1 2,058 Sep-11-2020, 07:47 PM
Last Post: buran
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 6,688 Jul-09-2020, 04:46 PM
Last Post: srikanth7482
  pip install -e ., ERROR: Failed building wheel for pyfarmhash mostafaPython 1 6,456 Jun-09-2020, 08:24 PM
Last Post: mcmxl22
  site packages, python 3.8 Dixon 12 6,767 Feb-01-2020, 05:32 PM
Last Post: Dixon

Forum Jump:

User Panel Messages

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