Skip to content

Commit 0ae055e

Browse files
authored
maint: change user facing language from RStudio to Posit (#322)
1 parent 59eb08c commit 0ae055e

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

.env.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ AZURE_STORAGE_ACCOUNT_KEY=
2121
# default auth setting, which requires authenticating
2222
# via the gcloud cli.
2323

24-
# Rstudio Connect license ----
24+
# Posit Connect license ----
2525
RSC_LICENSE=
2626

2727
# Uncomment and change the variables below to specify the bucket (directory) the buckets

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Tests can be run using pytest:
4444
```shell
4545
pytest pins
4646

47-
# run all tests except those for Rstudio Connect
47+
# run all tests except those for Posit Connect
4848
pytest pins -m 'not fs_rsc'
4949

5050
# run only local filesystem backend tests
@@ -60,7 +60,7 @@ pytest pins -m 'not skip_on_github' -k 'not pins.boards.BoardManual'
6060

6161
There are two important details to note for testing:
6262

63-
* **Backends**. pins can write to backends like s3, azure, and RStudio Connect, so you
63+
* **Backends**. pins can write to backends like s3, azure, and Posit Connect, so you
6464
will need to set credentials to test against them.
6565
* **Pytest Marks**. You can disable tests over a specific backend through pytest's
6666
`-m` flag. For example...
@@ -74,7 +74,7 @@ There are two important details to note for testing:
7474
* Modify `.env` to file in environment variables (e.g. AWS_ACCESS_KEY_ID)
7575
* Be careful not to put any sensitive information in `.env.dev`!
7676

77-
### Setting up RStudio Connect tests
77+
### Setting up Posit Connect tests
7878

7979
```
8080
# Be sure to set RSC_LICENSE in .env

pins/boards.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ class BoardRsConnect(BaseBoard):
10031003

10041004
@ExtendMethodDoc
10051005
def pin_list(self):
1006-
# lists all pin content on RStudio Connect server
1006+
# lists all pin content on Posit Connect server
10071007
# we can't use fs.ls, because it will list *all content*
10081008
paged_res = self.fs.api.misc_get_applications("content_type:pin")
10091009
results = paged_res.results
@@ -1128,14 +1128,14 @@ def pin_version_delete(self, *args, **kwargs):
11281128
if e.args[0]["code"] != 75:
11291129
raise e
11301130

1131-
raise PinsError("RStudio Connect cannot delete the latest pin version.")
1131+
raise PinsError("Posit Connect cannot delete the latest pin version.")
11321132

11331133
@ExtendMethodDoc
11341134
def pin_versions_prune(self, *args, **kwargs):
11351135
sig = inspect.signature(super().pin_versions_prune)
11361136
if sig.bind(*args, **kwargs).arguments.get("days") is not None:
11371137
raise NotImplementedError(
1138-
"RStudio Connect board cannot prune versions using days."
1138+
"Posit Connect board cannot prune versions using days."
11391139
)
11401140
super().pin_versions_prune(*args, **kwargs)
11411141

@@ -1162,7 +1162,7 @@ def validate_pin_name(self, name) -> None:
11621162
if not get_allow_rsc_short_name() and name.count("/") != 1:
11631163
raise ValueError(
11641164
f"Invalid pin name: {name}"
1165-
"\nRStudio Connect pin names must include user name. E.g. "
1165+
"\nPosit Connect pin names must include user name. E.g. "
11661166
"\nsome_user/mtcars, for the user some_user."
11671167
)
11681168

pins/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Meta:
6262
A dictionary of additional metadata that may be specified by the user.
6363
local:
6464
A dictionary of additional metadata that may be added by the board, depending
65-
on the backend used. E.g. RStudio Connect content id, url, etc..
65+
on the backend used. E.g. Posit Connect content id, url, etc..
6666
6767
"""
6868

pins/rsconnect/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class _HackyConnect(RsConnectApi):
440440
"""Handles logging in to connect, rather than using an API key.
441441
442442
This class allows you to create users and generate API keys on a fresh
443-
RStudio Connect service.
443+
Posit Connect service.
444444
"""
445445

446446
def login(self, user, password):

pins/rsconnect/fs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self, server_url, **kwargs):
120120
self._content_name_cache = {}
121121

122122
def ls(self, path, details=False, **kwargs) -> Sequence[BaseEntity] | Sequence[str]:
123-
"""List contents of Rstudio Connect Server.
123+
"""List contents of Posit Connect Server.
124124
125125
Parameters
126126
----------
@@ -166,7 +166,7 @@ def put(
166166
cls_manifest=PinBundleManifest,
167167
**kwargs,
168168
) -> None:
169-
"""Put a bundle onto Rstudio Connect.
169+
"""Put a bundle onto Posit Connect.
170170
171171
Parameters
172172
----------
@@ -227,7 +227,7 @@ def put(
227227
return f"{rpath}/{bundle['id']}"
228228

229229
def open(self, path: str, mode: str = "rb", *args, **kwargs):
230-
"""Open a file inside an RStudio Connect bundle."""
230+
"""Open a file inside an Posit Connect bundle."""
231231

232232
if mode != "rb":
233233
raise NotImplementedError()
@@ -256,7 +256,7 @@ def open(self, path: str, mode: str = "rb", *args, **kwargs):
256256
return f
257257

258258
def get(self, rpath, lpath, recursive=False, *args, **kwargs) -> None:
259-
"""Fetch a bundle or file from RStudio Connect."""
259+
"""Fetch a bundle or file from Posit Connect."""
260260
parsed = self.parse_path(rpath)
261261

262262
if recursive:

pins/tests/test_boards.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def test_board_pin_versions_prune_n(board, pin_prune, pin_name, n):
522522

523523
@pytest.mark.parametrize("days", [1, 2])
524524
def test_board_pin_versions_prune_days(board, pin_prune, pin_name, days):
525-
# RStudio cannot handle days, since it involves pulling metadata
525+
# Posit cannot handle days, since it involves pulling metadata
526526
if board.fs.protocol == "rsc":
527527
with pytest.raises(NotImplementedError):
528528
board.pin_versions_prune(pin_name, days=days)
@@ -538,7 +538,7 @@ def test_board_pin_versions_prune_days(board, pin_prune, pin_name, days):
538538

539539
def test_board_pin_versions_prune_days_protect_most_recent(board, pin_name):
540540
"""To address https://github.com/rstudio/pins-python/issues/297"""
541-
# RStudio cannot handle days, since it involves pulling metadata
541+
# Posit cannot handle days, since it involves pulling metadata
542542
if board.fs.protocol == "rsc":
543543
with pytest.raises(NotImplementedError):
544544
board.pin_versions_prune(pin_name, days=5)
@@ -628,7 +628,7 @@ def test_board_base_pin_meta_cache_touch(tmp_path: Path, df):
628628
assert orig_access < new_access
629629

630630

631-
# RStudio Connect specific ====================================================
631+
# Posit Connect specific ====================================================
632632

633633
# import fixture that builds / tearsdown user "susan"
634634
from pins.tests.test_rsconnect_api import ( # noqa

0 commit comments

Comments
 (0)