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

Nose is no longer maintained. Consider switch to pytest? #40

Open
Cabalist opened this issue Aug 23, 2020 · 1 comment
Open

Nose is no longer maintained. Consider switch to pytest? #40

Cabalist opened this issue Aug 23, 2020 · 1 comment

Comments

@Cabalist
Copy link

As the title says. Nose hasn't seen an update since Jun 2, 2015.

The official nose homepage says:

Note to Users
Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.

Pytest is a drop in replacement that requires no changes to the tests and has widespread adoption and ongoing support.

Output from running this on my machine:

❯ pytest tests
================================== test session starts ==================================
platform darwin -- Python 3.8.2, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /Users/work/PycharmProjects/rectpack
collected 167 items                                                                                                                                                                                                                                                                        

tests/test_collisions.py ................                                                                                                                                                                                                                                            [  9%]
tests/test_decimal.py .......                                                                                                                                                                                                                                                        [ 13%]
tests/test_enclose.py ....                                                                                                                                                                                                                                                           [ 16%]
tests/test_factory.py ........                                                                                                                                                                                                                                                       [ 20%]
tests/test_geometry.py .......................                                                                                                                                                                                                                                       [ 34%]
tests/test_guillotine.py ..........                                                                                                                                                                                                                                                  [ 40%]
tests/test_maxrects.py .............                                                                                                                                                                                                                                                 [ 48%]
tests/test_packer.py ..............................................                                                                                                                                                                                                                  [ 76%]
tests/test_skyline.py .................................                                                                                                                                                                                                                              [ 95%]
tests/test_stats.py ..                                                                                                                                                                                                                                                               [ 97%]
tests/test_waste.py .....                                                                                                                                                                                                                                                            [100%]

===================================167 passed in 19.50s ===================================

I believe it would just be a matter of replacing install_requires = ['nose', 'unittest2'], with install_requires = ['pytest'], in the setup.py

Thoughts?

@secnot
Copy link
Owner

secnot commented Aug 24, 2020

Will look into it, thank you.

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

No branches or pull requests

2 participants