Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 83ac931

Browse files
committed
rename of dls-python3-skeleton
1 parent e061628 commit 83ac931

File tree

8 files changed

+14
-662
lines changed

8 files changed

+14
-662
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Changelog
22
=========
33

44
The changelog for the skeleton module is the list of `closed pull requests
5-
<https://github.com/epics-containers/dls-python3-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_
5+
<https://github.com/epics-containers/python3-pip-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_
66

77
All developments for the ``skeleton`` branch take place via pull requests, and
88
changes to the commandline tools and docs are not tracked in a changelog.

Pipfile.lock

Lines changed: 0 additions & 645 deletions
This file was deleted.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It integrates the following tools:
1919

2020
- pip and setuptools_scm for version management
2121
- Pre-commit with black, flake8 and isort for static analysis
22-
- Pytest for tests and code [email protected]:dls-controls/dls-python3-skeleton.gitcoverage
22+
- Pytest for tests and code [email protected]:dls-controls/python3-pip-skeleton.gitcoverage
2323
- Sphinx for tutorials, how-to guides, explanations and reference documentation
2424
- GitHub Actions for code and docs CI and deployment to PyPI and GitHub Pages
2525
- tox -p: runs pre-commit, pytest, mypy and make docs

docs/how-to/existing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ How to adopt the skeleton in an existing repo
44
If you have an existing repo and would like to adopt the skeleton structure
55
then you can use the commandline tool to merge the skeleton into your repo::
66

7-
dls-python3-skeleton existing /path/to/existing/repo
7+
python3-pip-skeleton existing /path/to/existing/repo
88

99
This will:
1010

@@ -27,7 +27,7 @@ adoption looks like. The commandline tool was run on the existing repo::
2727
$ cd /path/to/scanspec
2828
$ git checkout -b adopt-skeleton
2929
Switched to a new branch 'adopt-skeleton'
30-
$ dls-python3-skeleton existing .
30+
$ python3-pip-skeleton existing .
3131
Auto-merging src/scanspec/__main__.py
3232
CONFLICT (add/add): Merge conflict in src/scanspec/__main__.py
3333
Auto-merging src/scanspec/__init__.py

docs/how-to/update.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ structure in an existing repo) some time ago, there may be some changes to the
66
structure that you could pick up. You can optionally check what differences
77
these changes make to the files by doing::
88

9-
$ git fetch https://github.com/epics-containers/dls-python3-skeleton skeleton
9+
$ git fetch https://github.com/epics-containers/python3-pip-skeleton skeleton
1010
$ git diff ...FETCH_HEAD
1111

1212
To merge the changes in do::
1313

14-
$ git pull https://github.com/epics-containers/dls-python3-skeleton skeleton
14+
$ git pull https://github.com/epics-containers/python3-pip-skeleton skeleton

docs/tutorials/new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Creating a new repo from the skeleton
44
Once you have followed the `installation` tutorial, you can use the
55
commandline tool to make a new repo that inherits the skeleton::
66

7-
dls-python3-skeleton new /path/to/be/created
7+
python3-pip-skeleton new /path/to/be/created
88

99
This will:
1010

src/python3_pip_skeleton/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__all__ = ["main"]
1313

1414
# The source of the skeleton module to pull from
15-
SKELETON = "https://github.com/epics-containers/dls-python3-skeleton"
15+
SKELETON = "https://github.com/epics-containers/python3-pip-skeleton"
1616
# The name of the merge branch that will be created
1717
MERGE_BRANCH = "skeleton-merge-branch"
1818
# Extensions to change
@@ -66,7 +66,7 @@ def merge_skeleton(
6666

6767
def replace_text(text: str) -> str:
6868
text = text.replace("epics-containers", org)
69-
text = text.replace("dls-python3-skeleton", repo)
69+
text = text.replace("python3-pip-skeleton", repo)
7070
text = text.replace("python3_pip_skeleton", package)
7171
text = text.replace("Firstname Lastname", full_name)
7272
text = text.replace("[email protected]", email)
@@ -77,7 +77,7 @@ def replace_text(text: str) -> str:
7777
if MERGE_BRANCH in branches:
7878
raise Exception(
7979
f"{MERGE_BRANCH} already exists. \
80-
Please run 'dls-python3-skeleton clean' to remove it."
80+
Please run 'python3-pip-skeleton clean' to remove it."
8181
)
8282
with GitTemporaryDirectory() as git_tmp:
8383
# Clone existing repo into tmp so we don't mess up if we fail
@@ -120,7 +120,7 @@ def replace_text(text: str) -> str:
120120
+ replace_text(text[end_ignore:])
121121
)
122122
# Commit what we have and push to the original repo
123-
git_tmp("commit", "-a", "-m", f"Rename dls-python3-skeleton -> {repo}")
123+
git_tmp("commit", "-a", "-m", f"Rename python3-pip-skeleton -> {repo}")
124124
git_tmp("push", "origin", MERGE_BRANCH)
125125
try:
126126
git("merge", MERGE_BRANCH, "--allow-unrelated-histories", cwd=path)
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ def test_new_module(tmp_path: Path):
4949
for line in (module / "docs" / "reference" / "api.rst").read_text().splitlines()
5050
if "versiongit" in line
5151
]
52-
assert (
53-
" Version number as calculated by https://github.com/epics-containers/versiongit"
54-
in versiongit_lines
55-
)
52+
assert " Version number as calculated by setuptools_scm" in versiongit_lines
5653
assert (module / "src" / "my_module").is_dir()
5754
assert check_output("git", "branch", cwd=module).strip() == "* main"
5855
check_output("virtualenv", ".venv", cwd=module)
@@ -129,7 +126,7 @@ def test_existing_module(tmp_path: Path):
129126
)
130127
assert (
131128
f"{MERGE_BRANCH} already exists. \
132-
Please run 'dls-python3-skeleton clean' to remove it."
129+
Please run 'python3-pip-skeleton clean' to remove it."
133130
in str(excinfo.value)
134131
)
135132

@@ -154,7 +151,7 @@ def test_existing_module_already_adopted(tmp_path: Path):
154151
"clone",
155152
"--branch",
156153
"0.5.4", # dls-python3-skeleton was adopted in this release
157-
"https://github.com/epics-containers/scanspec",
154+
"https://github.com/dls-controls/scanspec",
158155
str(module),
159156
)
160157
with pytest.raises(Exception) as excinfo:

0 commit comments

Comments
 (0)