Skip to content

Commit 2efac76

Browse files
committed
Merge remote-tracking branch 'origin/master' into add-git
2 parents 648b2f5 + a1134fd commit 2efac76

File tree

27 files changed

+324
-512
lines changed

27 files changed

+324
-512
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest]
20-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
20+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
2121
include:
2222
- os: macos-latest
2323
python-version: '3.9'

.github/workflows/snyk.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,34 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- name: Run Snyk (setup.py)
20-
uses: snyk/actions/python@master
19+
# - name: Run Snyk (setup.py)
20+
# uses: snyk/actions/python@master
21+
# with:
22+
# command: monitor
23+
# args: --file=setup.py --package-manager=pip --project-name=setup.py --org=${{ env.SNYK_ORG }}
24+
25+
# - name: Run Snyk (requirements.txt)
26+
# uses: snyk/actions/python@master
27+
# with:
28+
# command: monitor
29+
# args: --file=requirements.txt --package-manager=pip --project-name=requirements.txt --org=${{ env.SNYK_ORG }}
30+
31+
# On Oct 2 2023, the steps using snyk/actions/python@master started failing with "undefined".
32+
# Nothing obvious changed in our code or in the Snyk action or Docker image.
33+
# Setting up and running snyk generically seems to work, so we'll go with that.
34+
- name: Set up Python
35+
uses: actions/setup-python@v4
2136
with:
22-
command: monitor
23-
args: --file=setup.py --package-manager=pip --project-name=setup.py --org=${{ env.SNYK_ORG }}
37+
python-version: '3.11'
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -r requirements.txt
42+
43+
- uses: snyk/actions/setup@master
44+
45+
- name: Run Snyk (setup.py)
46+
run: snyk monitor --file="setup.py" --package-manager=pip --project-name="setup.py" --org=${{ env.SNYK_ORG }}
2447

2548
- name: Run Snyk (requirements.txt)
26-
uses: snyk/actions/python@master
27-
with:
28-
command: monitor
29-
args: --file=requirements.txt --package-manager=pip --project-name=requirements.txt --org=${{ env.SNYK_ORG }}
49+
run: snyk monitor --file="requirements.txt" --package-manager=pip --project-name="requirements.txt" --org=${{ env.SNYK_ORG }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ coverage.xml
2929

3030
# Temporary dev files
3131
vetiver-testing/rsconnect_api_keys.json
32+
/pip-wheel-metadata/

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Fixed
99
- The `https_proxy` environment variable is recognized as a synonym for
1010
`HTTPS_PROXY`.
11+
- When adding a new server, the initial request now includes an
12+
Authorization header containing the API key. This is needed
13+
for Connect installations behind a proxy that only passes
14+
authenticated requests.
1115
- Common environment directories (`env, venv, .env, .venv`) are no longer
1216
excluded by name. Environments are detected by the presence of a python
1317
executable in `bin` or `Scripts` and excluded.
@@ -29,6 +33,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2933
[Connect administrator guide](https://docs.posit.co/connect/admin/content-management/git-backed/)
3034
and
3135
[Connect user guide](https://docs.posit.co/connect/user/git-backed/) for details.
36+
- Added a new verbose logging level. Specifying `-v` on the command line uses this
37+
new level. Currently this will cause filenames to be logged as they are added to
38+
a bundle. To enable maximum verbosity (debug level), use `-vv`.
39+
40+
### Changed
41+
- Removing experimental support for Conda. Connect does not support restoring Conda environments.
3242

3343
## [1.20.0] - 2023-09-11
3444

conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010

1111
def pytest_addoption(parser):
12-
parser.addoption(
13-
"--vetiver", action="store_true", default=False, help="run vetiver tests"
14-
)
12+
parser.addoption("--vetiver", action="store_true", default=False, help="run vetiver tests")
13+
1514

1615
def pytest_configure(config):
1716
config.addinivalue_line("markers", "vetiver: test for vetiver interaction")
1817

18+
1919
def pytest_collection_modifyitems(config, items):
2020
if config.getoption("--vetiver"):
2121
return

docs/patch_admonitions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import sys
2828

29+
2930
def rewrite(gh_admonition, mkdocs_admonition, lines):
3031
for i in range(len(lines)):
3132
line = lines[i]
@@ -35,7 +36,7 @@ def rewrite(gh_admonition, mkdocs_admonition, lines):
3536
# The start of the GitHub admonition MUST be on its own line.
3637
if gh_admonition == line.rstrip():
3738
lines[i] = f"!!! { mkdocs_admonition }\n"
38-
for j in range(i+1, len(lines)):
39+
for j in range(i + 1, len(lines)):
3940
if lines[j].startswith("> "):
4041
text = lines[j][2:]
4142
lines[j] = f" { text }"
@@ -44,6 +45,7 @@ def rewrite(gh_admonition, mkdocs_admonition, lines):
4445
break
4546
return lines
4647

48+
4749
lines = sys.stdin.readlines()
4850

4951
lines = rewrite("> **Note**", "note", lines)

mock_connect/mock_connect/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def python_settings():
155155
return {
156156
"installations": [{"version": v}],
157157
"api_enabled": True,
158-
"conda_enabled": False,
159158
}
160159

161160

my-shiny-app/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
ui.output_text_verbatim("txt", placeholder=True),
66
)
77

8+
89
def server(input, output, session):
910
@output()
1011
@render_text()
1112
def txt():
1213
return f"n*2 is {input.n() * 2}"
1314

14-
app = App(app_ui, server)
15+
16+
app = App(app_ui, server)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
2+
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=3.4"]
33

44
[tool.black]
55
line-length = 120

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pytest
1515
pytest-cov
1616
pytest-mypy
1717
semver>=2.0.0,<3.0.0
18+
setuptools>=61
1819
setuptools_scm
1920
six>=1.14.0
2021
toml

0 commit comments

Comments
 (0)