Comments (4)
Ah! After a bit of debugging I realised this was due to the fact that I am gitignoring the file and since I did not add it via the include
keyword in the tool.poetry
section, it wasn't making it into the build. Could be this is a novice mistake from me but it may be worth having a short note about this in the README?
from poetry-dynamic-versioning.
Good catch! I've added a note to the README.
from poetry-dynamic-versioning.
I have also unzipped the poetry generated wheel file and cannot find the _version.py file in the wheel.
I'm not able to reproduce that behavior. I see the generated file in the wheel, and the wheel's RECORD file also has an entry for it.
I'm using Poetry 1.5.1 and Python 3.10.7 on Windows 11. What's your environment?
I installed the plugin with
poetry self add ...
Just to confirm, did you specify the [plugin]
feature? (poetry self add "poetry-dynamic-versioning[plugin]"
)
from poetry-dynamic-versioning.
Hi @mtkennerly, thanks for the quick reply.
I am running macOS 14.2.1 (BuildVersion 23C71) and using pyenv installed python version 3.11.5, poetry version 1.7.1.
Yes I installed with the [plugin]
extra. Here's the output of poetry self show poetry-dynamic-versioning
:
Poetry show output
name : poetry-dynamic-versioning
version : 1.2.0
description : Plugin for Poetry to enable dynamic versioning based on VCS tags
dependencies
- dunamai >=1.18.0,<2.0.0
- jinja2 >=2.11.1,<4
- poetry >=1.2.0,<2.0.0
- tomlkit >=0.4
I just reproed it with the same config as above. The _version.py
file is created after a poetry install
but does not exist in the built wheels. I used poetry build --format wheel
to generate the wheel file. See attached screenshot:
from poetry-dynamic-versioning.
Related Issues (20)
- Create a file with the version in it without any "replacement magic" HOT 3
- Keep the apostrophe/quotation marks in pyproject version replacement HOT 2
- Version not substituted for chained package dependencies HOT 2
- SETUPTOOLS_SCM_PRETEND_VERSION vs POETRY_DYNAMIC_VERSIONING_BYPASS HOT 2
- Got an error with 'poetry update' HOT 3
- Check file existance for `[tool.poetry-dynamic-versioning.substitution]` HOT 3
- `poetry install` with editable deps using dynamic versions always reports a downgrade. HOT 1
- Getting PermissionError when using poetry-dynamic-versioning in GitHub CI HOT 3
- poetry publish can't find files built with with dynamic versioning HOT 1
- `AssertionError: would build wheel with unsupported tag ('cp312', 'cp311', 'macosx_11_0_arm64')` HOT 2
- Plugin breaks poetry 1.8.0 HOT 2
- Push to PyPI, even in dirty mode HOT 2
- __version__.py file not included in build HOT 3
- poetry-dynamic-versioning fails to retrieve version with poetry 1.8.1 and 1.8.2 HOT 2
- What would you need to stop monkeypatching `poetry.core`? HOT 2
- Plugin installation crashes HOT 2
- Feature request: optional tag prefix for monorepo support HOT 3
- A duplication of the name field is required in pyproject.toml when using poetry-dynamic-versioning with poetry_pep621 HOT 1
- tool.poetry.version field is not updated HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry-dynamic-versioning.