Git Product home page Git Product logo

Comments (4)

vancromy avatar vancromy commented on June 11, 2024 1

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.

mtkennerly avatar mtkennerly commented on June 11, 2024 1

Good catch! I've added a note to the README.

from poetry-dynamic-versioning.

mtkennerly avatar mtkennerly commented on June 11, 2024

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.

vancromy avatar vancromy commented on June 11, 2024

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:
image

from poetry-dynamic-versioning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.