Skip to content

Conversation

@christophbuermann
Copy link
Collaborator

  • Migrate to pytest.
  • Migrate to pyproject.toml.

@christophbuermann
Copy link
Collaborator Author

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I need some guidance for the publishing workflow. This is mostly copy-pasted from: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ["version"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure if this works in conjunction with the setup.py as-is.

Comment on lines +52 to +54
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The new build installs the django_future_tasks as editable package. Therefore, we can now run the tests inside the tests instead of the root folder, and we don't need any symlinks or python path customizations.

If one uses uv, the tests can be run via uv run --all-extras pytest tests which also sets up a venv, installls all necessary packages including the django_future_tasks as editable package and/or updates anything if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants