Skip to content

Commit

Permalink
Rename project: pytest_pt → pytest-pt (i.e., _-)
Browse files Browse the repository at this point in the history
This gives us consistency with other pytest plugins, such as
pytest-xdist, pytest-cache, and so on.

In fact, we were already called `pytest-pt` on pypi[1] because it
automatically converts underscores to hyphens in package names, and
installing with either name worked (and will continue to work) because
either is accepted in place of the other by Pip et al.

So this change is really just making the rest of the names (official
module name, our GitHub repo, the package files we upload, etc.)
consistent with this. (The GitHub repo has been renamed, but fetches
from the old name will continue to work, and old URLs will redirect to
the new one.)

[1]: https://pypi.org/project/pytest-pt/
  • Loading branch information
0cjs committed Sep 22, 2024
1 parent 06d7691 commit 9f81f4b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ will be tagged, but specific releases can also be fetched via the Git
commit ID.

#### dev
- Changed: Official package name, URLs, etc. is `pytest-pt` (`_``-`)

#### 0.0.2 (2024-05-15)
- Changed: Package metadata now includes URLs, license, etc.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest_pt: pytest plugin to use `*.pt` files as tests
pytest-pt: pytest plugin to use `*.pt` files as tests
=====================================================

This [pytest] plugin will collect `*.pt` files as test modules. It
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[project]
version = '0.0.2'
name = 'pytest_pt'
version = '0.0.3.dev0'
name = 'pytest-pt'
description = 'pytest plugin to use *.pt files as tests'
authors = [
{ name = 'Curt J. Sampson', email = '[email protected]' },
]
license = { file = 'LICENSE' }
readme = 'README.md'
urls.homepage = 'https://github.com/cynic-net/pytest_pt'
urls.source = 'https://github.com/cynic-net/pytest_pt'
urls.tracker = 'https://github.com/cynic-net/pytest_pt/issues'
urls.homepage = 'https://github.com/cynic-net/pytest-pt'
urls.source = 'https://github.com/cynic-net/pytest-pt'
urls.tracker = 'https://github.com/cynic-net/pytest-pt/issues'
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ def import_pt_module(file_path:Path, config:Config):
pytest_collect_file = pt7_pytest_collect_file
else:
raise NotImplementedError(
'pytest_pt does not support pytest version {}'.format(ptver))
'pytest-pt does not support pytest version {}'.format(ptver))
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = tox>4

skip_missing_interpreters = false
env_list =
# pytest_pt doesn't work with pytest 5.x on Python ≥3.10
# pytest-pt doesn't work with pytest 5.x on Python ≥3.10
py{3.7,3.8,3.9}-pytest5
py{3.7,3.8,3.9,3.10,3.11,3.12}-pytest7
py{3.8,3.9,3.10,3.11,3.12}-pytest8
Expand All @@ -23,7 +23,7 @@ ignore_base_python_conflict = false
[testenv]
use_develop = True # install as editable, where possible
deps =
./ # pytest_pt
./ # pytest-pt
pytest4: pytest==4.*
pytest5: pytest==5.*
pytest6: pytest==6.*
Expand Down
2 changes: 1 addition & 1 deletion tsrc/pt_test.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
' This test module should be discovered and run by the pytest_pt plugin. '
' This test module should be discovered and run by the pytest-pt plugin. '

def test_pt():
assert 1

0 comments on commit 9f81f4b

Please sign in to comment.