Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unittest instead of setuptools (where possible) #161

Open
wants to merge 1 commit into
base: movermeyer/python_313_support
Choose a base branch
from

Conversation

movermeyer
Copy link
Collaborator

@movermeyer movermeyer commented Nov 10, 2024

What are you trying to accomplish?

setuptools has dropped its test-running capabilities in v72.
Python 3.12 dropped setuptools from the builtins.

My hope is that we'll be able to use PEP 517-compatible methods for testing on modern Pythons (#147), while still keeping the old setup.py method for old versions. We'll see.

What approach did you choose and why?

If you are testing a pure-Python module, you can simply call python -m unittest to have your tests run.

However, since we're a compiled C-extension, we have to create the source distribution and install it first.

What should reviewers focus on?

🤷

The impact of these changes

We are testing using the preferred method, at least for modern Pythons.

@movermeyer movermeyer force-pushed the movermeyer/use_unittest branch 4 times, most recently from db414ed to a8013a3 Compare November 10, 2024 20:41
@movermeyer movermeyer changed the title Use unittest instead of setuptools Use tox and unittest instead of setuptools (where possible) Nov 10, 2024
@movermeyer movermeyer changed the title Use tox and unittest instead of setuptools (where possible) Use unittest instead of setuptools (where possible) Nov 10, 2024
@movermeyer movermeyer force-pushed the movermeyer/use_unittest branch 8 times, most recently from bdabcd2 to 19b8b93 Compare November 10, 2024 21:24
- run:
name: Test
command: pypy setup.py test
<<: *tests
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reducing duplication using YAML anchors.

@movermeyer movermeyer force-pushed the movermeyer/use_unittest branch 2 times, most recently from a9ff45e to d693753 Compare November 10, 2024 21:35
@movermeyer movermeyer marked this pull request as ready for review November 10, 2024 21:40
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.

1 participant