Skip to content

drop tox and implement new development flow#8667

Merged
sanderr merged 22 commits intomasterfrom
dev-requires-proposal
Apr 25, 2025
Merged

drop tox and implement new development flow#8667
sanderr merged 22 commits intomasterfrom
dev-requires-proposal

Conversation

@sanderr
Copy link
Copy Markdown
Contributor

@sanderr sanderr commented Jan 22, 2025

Description

  • drop tox
  • restructure dependencies: dev extra with all dev dependencies plus move all constraints to a single lock file
  • update Makefile to offer sane targets for both local usage and ci usage

If approved, I'll apply this to all extension repos, and to all dev branches.

Requires inmanta/irt#2429

Related Slack thread: https://inmanta.slack.com/archives/CKRF0C8R3/p1745483532991769

Self Check:

Strike through any lines that are not applicable (~~line~~) then check the box

  • Attached issue to pull request
  • Changelog entry
  • Type annotations are present
  • Code is clear and sufficiently documented
  • No (preventable) type errors (check using make mypy or make mypy-diff)
  • Sufficient test cases (reproduces the bug/tests the requested feature)
  • Correct, in line with design
  • End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
  • If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

@sanderr
Copy link
Copy Markdown
Contributor Author

sanderr commented Feb 4, 2025

Note to self: general reception was positive, make this actionable.

@sanderr
Copy link
Copy Markdown
Contributor Author

sanderr commented Apr 3, 2025

@sanderr
Copy link
Copy Markdown
Contributor Author

sanderr commented Apr 3, 2025

Closing for now, taking this up as part of a larger dependency epic sometime this year

@sanderr sanderr closed this Apr 3, 2025
@sanderr sanderr deleted the dev-requires-proposal branch April 22, 2025 12:59
@sanderr sanderr restored the dev-requires-proposal branch April 22, 2025 12:59
@sanderr sanderr reopened this Apr 22, 2025
Comment thread Makefile
Comment on lines +100 to +102
%/bin/python: %
$(PYTHON) -m venv $?
$(eval PYTHON=$@)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be somewhat unconventional, I'm honestly not sure.

Comment thread tests/conftest.py
# Download bare necessities
CommandRunner(logging.getLogger(__name__)).run_command_and_log_output(
["pip", "download", "setuptools", "wheel"], cwd=build_dir
[sys.executable, "-m", "pip", "download", "setuptools", "wheel"], cwd=build_dir
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a bugfix for something that happened to surface.

@sanderr sanderr marked this pull request as ready for review April 24, 2025 12:01
@sanderr sanderr changed the title added dev extra with all dev requires drop tox and new development flow Apr 24, 2025
@sanderr sanderr requested review from arnaudsjs and jptrindade April 24, 2025 12:10
@sanderr sanderr changed the title drop tox and new development flow drop tox and implement new development flow Apr 24, 2025
Comment thread Makefile
@sanderr
Copy link
Copy Markdown
Contributor Author

sanderr commented Apr 25, 2025

@arnaudsjs re-requesting review for the latest commit. It fixes a bug in the parsetab generation for non-editable installs. The wildcard function I use is apparently a common approach for checking if a file exists.

@sanderr sanderr requested a review from arnaudsjs April 25, 2025 10:00
@sanderr sanderr merged commit 7790569 into master Apr 25, 2025
1 check passed
@sanderr sanderr deleted the dev-requires-proposal branch April 25, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants