Skip to content

Move tests folder to top dir level #100

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

Merged
merged 10 commits into from
Sep 16, 2024
Merged

Conversation

bobleesj
Copy link
Contributor

@bobleesj bobleesj commented Sep 9, 2024

Before:

==== 138 passed in 11.16s =====

After:

===138 passed in 1.51s ======

Using conftest, local pytest runs are much faster.

Billingegroup/scikit-package#114

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

I think we just need to remove the init

@bobleesj
Copy link
Contributor Author

@sbillinge __init__.py removed.

@sbillinge
Copy link
Contributor

@bobleesj I am afraid that removing the init broke this. We could add it back, but in general, if there is another approach (some small edits to the tests needed to make them pass without that init) it would be preferred so we don't have some packages differently structured from others....

@bobleesj
Copy link
Contributor Author

bobleesj commented Sep 13, 2024

@sbillinge Please review the latest change.

CI isn't running here but checked it using my remote branch.

Screenshot 2024-09-13 at 8 35 54 AM

@bobleesj
Copy link
Contributor Author

it would be preferred so we don't have some packages differently structured from others....

I am committed to this.

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

Looks great! One small inline comment

@@ -45,7 +45,6 @@ dirty_template = "{tag}"
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = ["*"] # package names should match these glob patterns (["*"] by default)
exclude = ["diffpy.structure.tests*"] # exclude packages matching these glob patterns (empty by default)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please leave this in but with an empty list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it - done.

@bobleesj
Copy link
Contributor Author

@sbillinge

exclude = []  # exclude packages matching these glob patterns (empty by default)

is used now. Please review.

@sbillinge sbillinge merged commit bfc9b47 into diffpy:main Sep 16, 2024
2 checks passed
@bobleesj bobleesj deleted the tests-folder branch September 16, 2024 13:44
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.

2 participants