All Questions
Tagged with versioning python
107 questions
1
vote
2
answers
61
views
Managing function versioning across multiple projects using a shared library
I'm facing a challenge with maintaining consistency across multiple projects that share a common library. Here's the scenario:
I have a helpers library with a function anonymize_ip(ip).
This function ...
2
votes
1
answer
240
views
How to get my application to update when a new version is detected within my repository on github?
Background
For my job, I have made a windows .exe which is a python pyqt5 application that my analysts can use for their work. What I am trying to do is set up a workflow with the help of git that ...
1
vote
2
answers
148
views
Strange version string / number error when using pillow
This simple python program:
import pyautogui
# Get the screen size
screen_size = pyautogui.size()
# Capture the screen and save it to a file
screenshot = pyautogui.screenshot()
screenshot.save("...
2
votes
1
answer
688
views
pushing to pypi via github actions: how to manage changes with no version number update?
One can use github actions to publish to PyPI everytime there is an updated on the master branch.
For example, one can use: https://github.com/marketplace/actions/publish-python-poetry-package
For ...
0
votes
1
answer
100
views
Calculation of difference between versions leads to value error
I have a regex as follows to catch semantic versions(in python language):
^(?:v)?(?P<major>\d+)(?:\.(?P<minor>\d+))?(?:\.(?P<patch>\d+))?(?:[\.-]?(?:(?P<release>alpha|beta|rc|...
1
vote
1
answer
1k
views
Semantic Version comparison and labelling without packages
I have a dataframe that looks like this:
api_spec_id label info_version commitDate
803 2.3.0 2019-09-12
803 2.4.1 2019-10-04
803 ...
1
vote
1
answer
191
views
How to properly implement single source project versioning in Python?
I love the way CMake allows me to single source version my C/C++ projects, by letting me say:
project(Tutorial VERSION 1.0)
in my CMakeLists.txt file and, then, use placeholders of the form:
#define ...
1
vote
1
answer
242
views
A build-system independent way to get the version from a package source directory
There are many different ways that Python packages manage their version data. Is there a build-system independent way to extract the version from a package source directory?
I'm aware of the PEP 517 ...
6
votes
1
answer
487
views
Single "=" after dependency version specifier in setup.py
I'm looking at a setup.py with this syntax:
from setuptools import setup
setup(
...
tests_require=["h5py>=2.9=mpi*",
"mpi4py"]
)
I understand the idea ...
0
votes
1
answer
51
views
Why there is a python version besides the package version?
When I check the version of a package, I get a python version in parentheses. What does it mean?
This python 3.7.3 does not match with the PyCharm interpreter I am using (python 3.8). Is that the ...
2
votes
1
answer
1k
views
How to automatically generate versions for python packages in a monorepo?
When it comes to generate versions using conventional commits from a repo that contains only one python package things are easy, you just need to use one tool that loops through all the repo commits ...
9
votes
1
answer
6k
views
Specify dependency version >= for git repository in pyproject.toml
I have a python project with all dependencies and versions managed by pyproject.toml file.
One of these dependencies is a git reference:
[project]
name = 'my_package'
version = '1.0.0'
dependencies = [...
1
vote
1
answer
3k
views
Is there a Pip command to check which python version a package needs?
I need to compile a list of packages I've installed that will no longer work with the upgrade from python 3.9 to 3.10. I'm guessing I'll need a pip command to check which python version the package ...
1
vote
1
answer
67
views
Issue with file versioning with python
I did a Python application which needs to open an excel file to find data inside.
Every time this excel file has a new version its name is also changed like test_V1.2.xlsx to test_V1.3.xlsx so my path ...
1
vote
1
answer
437
views
Circular dependency issue with setup script
I'm writing a python setup.py script for an own package which needs a version constant from the package. However, the package needs to have some dependencies installed.
Therefore I specified ...