GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: improve buildspec and dockerfile generation by AbhinavPradeep · Pull Request #1279 · oracle/macaron

Conversation

@AbhinavPradeep

@AbhinavPradeep AbhinavPradeep commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Imroved buildspec and dockerfile generation for Python packages.

Description of changes

  1. Additional version constraints are added based on the inferred build dependancies and their requied Python version. The dockerfile then sets setuptools version to the latest available for the inferred Python version.
  2. The generated dockerfile downloads and builds the latest available CPython patch for an inferred Python version. OpenSSL is also downloaded and build to allow for this to happen.
  3. Inferred build commands and fallbacks used are based on results from testing on a variety of PyPI packages.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 13, 2026
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/improve-buildspec-generation branch from a132b96 to 4db2e18 Compare February 3, 2026 05:04
@AbhinavPradeep
AbhinavPradeep marked this pull request as ready for review February 3, 2026 05:07
@AbhinavPradeep
AbhinavPradeep requested a review from behnazh-w as a code owner February 3, 2026 05:07
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/improve-buildspec-generation branch from 4db2e18 to ed57c0c Compare February 9, 2026 04:05
behnazh-w
behnazh-w reviewed Feb 11, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/common_spec/pypi_spec.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 12, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/common_spec/pypi_spec.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/macaron/build_spec_generator/common_spec/pypi_spec.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 12, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 12, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 12, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 12, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/improve-buildspec-generation branch from 615ffaf to acaddd9 Compare February 16, 2026 03:06
@AbhinavPradeep
AbhinavPradeep requested a review from behnazh-w February 16, 2026 04:20
@AbhinavPradeep

AbhinavPradeep commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

In terms of removing the older Python version constraint inference, I felt it might be worth it to actually have that as a fall back. As in, if for some reason we fail to find constraints from the dependency-based approach, we can defer to earlier inference. This will most likely not happen, but it is possible.

behnazh-w reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 16, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

behnazh-w
behnazh-w reviewed Feb 16, 2026
View reviewed changes
Comment thread src/macaron/build_spec_generator/dockerfile/pypi_dockerfile_output.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@AbhinavPradeep
AbhinavPradeep requested a review from behnazh-w February 17, 2026 00:18
AbhinavPradeep added 9 commits February 18, 2026 09:55
@AbhinavPradeep
feat: using the latest patch and upgraded setuptools version.
9b4815f
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
feat: addressing pitfalls and introducing dependancy based Python ver…
b474cbe
…ion inference.

Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: updated integration tests to reflect new feature.
dda9c1d
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: updated unit tests to reflect new feature.
a40d396
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: sorted import statements
baa54cd
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: integration test
c98348a
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: addressed review comments
16c0274
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: typing issue
0ccdbf8
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
fix: review
f75873f
Signed-off-by: Abhinav Pradeep <[email protected]>
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/improve-buildspec-generation branch from a881d79 to f75873f Compare February 17, 2026 23:57
behnazh-w
behnazh-w approved these changes Feb 18, 2026
View reviewed changes
@AbhinavPradeep
AbhinavPradeep merged commit bdd3448 into main Feb 18, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@behnazh-w
behnazh-w deleted the abhinav/improve-buildspec-generation branch April 8, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@behnazh-w behnazh-w behnazh-w approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@AbhinavPradeep @behnazh-w
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.