poetry-core icon indicating copy to clipboard operation
poetry-core copied to clipboard

build: do not generate setup.py by default

Open abn opened this issue 3 years ago • 4 comments

This is the first step in removing setup file generation from Poetry projects. With this change, projects that require a setup.py to be generated when a build script is used needs to explicitly set tool.poetry.build.generate-setup-file, introduced in #26, to true in pyproject.toml.

References:

  • #26
  • https://github.com/python-poetry/poetry/issues/1338#issuecomment-657860111

Warning :warning: This is a breaking change for users relying on setuptools to run their build script without explicitly configuring the generation.

abn avatar Apr 01 '22 21:04 abn

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.6% 1.6% Duplication

sonarqubecloud[bot] avatar Apr 01 '22 21:04 sonarqubecloud[bot]

@python-poetry/core @python-poetry/triage Would apprecaite feedback on this. We need to disable auto setup generation, this was originally planned for Poetry 1.2 as it was deprecated in Poetry 1.1.

I am fairly certain releasing this will break for a few folks building extensions using setuptools, just not sure how large the number is going to be.

abn avatar Apr 01 '22 21:04 abn

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Aug 22 '22 08:08 sonarqubecloud[bot]

@abn I updated the PR, but this required deleting some code in test_complete.py. Could you check if that's fine?

Secrus avatar Aug 22 '22 08:08 Secrus

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 09 '22 19:11 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jan 21 '23 14:01 sonarqubecloud[bot]