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

Remove usage of tmpdir #48

Closed
kasium opened this issue Oct 17, 2022 · 3 comments · Fixed by #49
Closed

Remove usage of tmpdir #48

kasium opened this issue Oct 17, 2022 · 3 comments · Fixed by #49

Comments

@kasium
Copy link
Contributor

kasium commented Oct 17, 2022

According to pytest tmpdir is deprecated and should be replaced with tmp_path. Would you be open for a PR to change this?

@nicoddemus
Copy link
Collaborator

Definitely would be appreciated, thanks!

@kasium
Copy link
Contributor Author

kasium commented Oct 24, 2022

@nicoddemus would you please consider to push a release?

@nicoddemus
Copy link
Collaborator

Done: #51

github-actions bot added a commit to MaRDI4NFDI/open-interfaces that referenced this issue Oct 31, 2022
Bumps [pytest-datadir](https://github.com/gabrielcnr/pytest-datadir)
from 1.3.1 to 1.4.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gabrielcnr/pytest-datadir/blob/master/CHANGELOG.rst">pytest-datadir's
changelog</a>.</em></p>
<blockquote>
<h2>1.4.1 (2022-10-24)</h2>
<ul>
<li>Replace usage of <code>tmpdir</code> by <code>tmp_path</code>
(<code>[#48](gabrielcnr/pytest-datadir#48)
&lt;https://github.com/gabrielcnr/pytest-datadir/pull/48&gt;</code>__).</li>
</ul>
<h2>1.4.0 (2022-01-18)</h2>
<ul>
<li>Fix package so the <code>LICENSE</code> file is no longer in the
root of the package.</li>
<li>Python 3.9 and 3.10 are now officially supported.</li>
<li>Python 2.7, 3.4 and 3.5 are no longer supported.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/0a6675d252330bc7325c0a6f99a4b5498933b728"><code>0a6675d</code></a>
Release 1.4.1</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/93ae825719ad2784cd1b18b8011ae7a87f36a6b7"><code>93ae825</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/gabrielcnr/pytest-datadir/issues/50">#50</a>
from gabrielcnr/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/796059ab9b10bc0650a343568c94202c679e5cda"><code>796059a</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/2fc3977c115e02965ca0698bc496017b80d7ab85"><code>2fc3977</code></a>
Replace tmpdir with tmp_path (<a
href="https://github-redirect.dependabot.com/gabrielcnr/pytest-datadir/issues/49">#49</a>)</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/7f75bb9d42be8f997fa9bc9972c3167d3d439ffb"><code>7f75bb9</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/gabrielcnr/pytest-datadir/issues/47">#47</a>
from gabrielcnr/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/cc270b1c1e39bd8445afb4c6239a5bd929db1894"><code>cc270b1</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/45ed048c9608cb3e6d53d77860b877e43e943218"><code>45ed048</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/gabrielcnr/pytest-datadir/issues/46">#46</a>
from gabrielcnr/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/63b510ab22efdffec996b802b065a2017c33698d"><code>63b510a</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/4c3a8c91f0856baacd01192a8773a253b815a154"><code>4c3a8c9</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/gabrielcnr/pytest-datadir/issues/45">#45</a>
from gabrielcnr/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/gabrielcnr/pytest-datadir/commit/869c508792ac9ae64198c02db296cfe85f997316"><code>869c508</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li>Additional commits viewable in <a
href="https://github.com/gabrielcnr/pytest-datadir/compare/1.3.1...1.4.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest-datadir&package-manager=pip&previous-version=1.3.1&new-version=1.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this issue May 5, 2023
1.4.1 (2022-10-24)
------------------
- Replace usage of ``tmpdir`` by ``tmp_path`` (`#48 <https://github.com/gabrielcnr/pytest-datadir/pull/48>`__).

1.4.0 (2022-01-18)
------------------

- Fix package so the ``LICENSE`` file is no longer in the root of the package.
- Python 3.9 and 3.10 are now officially supported.
- Python 2.7, 3.4 and 3.5 are no longer supported.
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 a pull request may close this issue.

2 participants