Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Steven O's user avatar
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 ...
LeeKLikesToCode's user avatar
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("...
Joymaker's user avatar
  • 1,422
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 ...
Vince's user avatar
  • 4,481
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|...
Brie MerryWeather's user avatar
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 ...
Brie MerryWeather's user avatar
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 ...
David Banas's user avatar
  • 1,958
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 ...
Mike T's user avatar
  • 44k
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 ...
O. Lynn's user avatar
  • 63
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 ...
User981636's user avatar
  • 3,639
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 ...
BPL's user avatar
  • 9,883
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 = [...
hopeless-programmer's user avatar
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 ...
GrupieBug's user avatar
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 ...
Zap2Cynops's user avatar
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 ...
Wör Du Schnaffzig's user avatar

15 30 50 per page
1
2 3 4 5
8