Skip to content

Commit 4e8ef02

Browse files
authored
Merge branch 'main' into server-refactor
2 parents e134efa + 157544a commit 4e8ef02

51 files changed

Lines changed: 784 additions & 589 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,31 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
python -m pip install -e .[dev]
23+
python -m pip install -e .[docs]
24+
- name: Set up Quarto
25+
uses: quarto-dev/quarto-actions/setup@v2
2426
- name: build docs
2527
run: |
2628
make docs
2729
- name: save docs
2830
uses: actions/upload-artifact@v3
2931
with:
3032
name: docs-html
31-
path: docs/_build/html/
33+
path: docs/_site
3234
- name: publish dev docs
3335
if: github.ref_name == 'main' && github.ref_type == 'branch'
3436
uses: peaceiris/actions-gh-pages@v3
3537
with:
3638
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: docs/_build/*
39+
publish_dir: docs/_site
3840
publish_branch: gh-pages
3941
destination_dir: main
4042
- name: publish stable docs
4143
if: github.ref_type == 'tag' && startswith(github.ref, 'refs/tags/v')
4244
uses: peaceiris/actions-gh-pages@v3
4345
with:
4446
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: docs/_build/*
47+
publish_dir: docs/_site
4648
publish_branch: gh-pages
4749
destination_dir: ${{ github.ref_name }}
4850
- name: create symlink stable to new version

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
python -m pip install ".[dev]"
5555
python -m pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
5656
echo {{ github.sha }}
57-
- name: run RStudio Connect
57+
- name: run Connect
5858
run: |
5959
docker-compose up --build -d
6060
pip freeze > requirements.txt

.github/workflows/weekly.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ name: Weekly Tests
99
on:
1010
schedule:
1111
- cron: "03 14 * * MON"
12+
push:
13+
branches: ['update-weekly']
1214

1315
jobs:
1416
vetiver_main_pins_main:
@@ -35,7 +37,7 @@ jobs:
3537
python -m pip install '.[all]'
3638
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
3739
38-
- name: run RStudio Connect
40+
- name: run Connect
3941
run: |
4042
docker-compose up --build -d
4143
make dev
@@ -82,7 +84,7 @@ jobs:
8284
python -m pip install .[dev]
8385
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
8486
85-
- name: run RStudio Connect
87+
- name: run Connect
8688
run: |
8789
docker-compose up --build -d
8890
make dev
@@ -101,7 +103,7 @@ jobs:
101103
strategy:
102104
matrix:
103105
# Minimum and Maximum supported versions
104-
python-version: ['3.10']
106+
python-version: ['3.9']
105107

106108
steps:
107109
- name: Get latest release with tag from GitHub API
@@ -129,7 +131,7 @@ jobs:
129131
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python
130132
pip freeze > requirements.txt
131133
132-
- name: run RStudio Connect
134+
- name: run Connect
133135
run: |
134136
docker-compose up --build -d
135137
make dev
@@ -148,7 +150,7 @@ jobs:
148150
strategy:
149151
matrix:
150152
# Minimum and Maximum supported versions
151-
python-version: ['3.10']
153+
python-version: ['3.9']
152154

153155
steps:
154156
- uses: actions/checkout@v2
@@ -164,7 +166,7 @@ jobs:
164166
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python
165167
pip freeze > requirements.txt
166168
167-
- name: run RStudio Connect
169+
- name: run Connect
168170
run: |
169171
docker-compose up --build -d
170172
make dev

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,5 @@ NOTES.md
142142
## RStudio
143143
*.Rproj
144144
.Rproj.user
145+
146+
/.quarto/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
exclude: "(.*\\.csv)|(^examples/)|(^vetiver/tests/snapshots/)"
3+
exclude: "(.*\\.csv)|(^examples/)|(^vetiver/tests/snapshots/)|(^docs/_extensions/)"
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
66
rev: v2.4.0

CODE_OF_CONDUCT.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
77
size, visible or invisible disability, ethnicity, sex characteristics, gender
88
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity and
10-
orientation.
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
1111

1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
@@ -21,25 +21,25 @@ community include:
2121
* Being respectful of differing opinions, viewpoints, and experiences
2222
* Giving and gracefully accepting constructive feedback
2323
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
24+
and learning from the experience
2525
* Focusing on what is best not just for us as individuals, but for the overall
26-
community
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
3232
* Trolling, insulting or derogatory comments, and personal or political attacks
3333
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
3636
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

41-
Community leaders are responsible for clarifying and enforcing our standards
42-
of acceptable behavior and will take appropriate and fair corrective action in
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
4343
response to any behavior that they deem inappropriate, threatening, offensive,
4444
or harmful.
4545

@@ -50,17 +50,17 @@ decisions when appropriate.
5050

5151
## Scope
5252

53-
This Code of Conduct applies within all community spaces, and also applies
54-
when an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail
56-
address, posting via an official social media account, or acting as an appointed
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
5757
representative at an online or offline event.
5858

5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at [INSERT CONTACT
63-
METHOD]. All complaints will be reviewed and investigated promptly and fairly.
62+
reported to the community leaders responsible for enforcement at codeofconduct@posit.co.
63+
All complaints will be reviewed and investigated promptly and fairly.
6464

6565
All community leaders are obligated to respect the privacy and security of the
6666
reporter of any incident.
@@ -114,15 +114,13 @@ community.
114114
## Attribution
115115

116116
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117-
version 2.0,
118-
available at https://www.contributor-covenant.org/version/2/0/
119-
code_of_conduct.html.
117+
version 2.1, available at
118+
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
120119

121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
123-
124-
[homepage]: https://www.contributor-covenant.org
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][https://github.com/mozilla/inclusion].
125122

126123
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at https://
128-
www.contributor-covenant.org/translations.
124+
<https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.
125+
126+
[homepage]: https://www.contributor-covenant.org

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Isabel Zimmerman
3+
Copyright (c) 2021 vetiver authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MAINTAINERS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Who maintains Vetiver
2+
3+
Vetiver was created by and is currently maintained by Isabel Zimmerman <isabel.zimmerman@posit.co>.
4+
5+
Several individuals in the community have taken an active role in helping to maintain vetiver and submit fixes. Those individuals are shown in the git changelog.

Makefile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
.PHONY: clean-pyc clean-build clean docs
22
UNAME := $(shell uname)
33

4-
SPHINX_BUILDARGS=
5-
# Note that these are keys generated by the docker rsconnect service, so are
6-
# not really secrets. They are saved to json to make it easy to use rsconnect
7-
# as multiple users from the tests
84
RSC_API_KEYS=vetiver/tests/rsconnect_api_keys.json
95

106
ifeq ($(UNAME), Darwin)
@@ -22,16 +18,15 @@ help:
2218
@echo "test - run tests quickly with the default Python"
2319
@echo "test-rsc - run tests for rsconnect"
2420
@echo "coverage - check code coverage quickly with the default Python"
25-
@echo "docs - generate Sphinx HTML documentation, including API docs"
26-
@echo "cdocs - cleanout previous build & generate Sphinx HTML documentation, including API docs"
21+
@echo "docs - generate HTML documentation, including API docs"
2722
@echo "release - package and upload a release"
2823
@echo "dist - package"
2924
@echo "install - install the package to the active Python's site-packages"
30-
@echo "dev - generate RStudio Connect API keys"
31-
@echo "dev-start - start up development RStudio Connect in Docker"
32-
@echo "dev-stop - stop RStudio Connect dev container"
25+
@echo "dev - generate Connect API keys"
26+
@echo "dev-start - start up development Connect in Docker"
27+
@echo "dev-stop - stop Connect dev container"
3328

34-
clean: clean-build clean-pyc clean-test docs-clean
29+
clean: clean-build clean-pyc clean-test
3530

3631
clean-build:
3732
rm -fr build/
@@ -68,14 +63,8 @@ coverage:
6863
coverage html
6964
$(BROWSER) htmlcov/index.html
7065

71-
cdocs cdoc cdocumentation: docs-clean docs
72-
73-
docs-clean:
74-
$(MAKE) -C docs clean
75-
7666
docs doc documentation:
77-
$(MAKE) -C docs html
78-
$(BROWSER) docs/_build/html/index.html
67+
$(MAKE) -C docs docs
7968

8069
release: dist
8170
twine upload dist/*

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vetiver <a href='https://rstudio.github.io/vetiver-python/'><img src='docs/figures/logo.png' align="right" height="139" /></a>
1+
# vetiver <a href='https://rstudio.github.io/vetiver-python/'><img src='docs/figures/logo.png' align="right" height="138" /></a>
22

33
<!-- badges: start -->
44

@@ -49,7 +49,7 @@ model = mock.get_mock_model().fit(X, y)
4949
v = VetiverModel(model, model_name='mock_model', prototype_data=X)
5050
```
5151

52-
You can **version** and **share** your `VetiverModel()` by choosing a [pins](https://rstudio.github.io/pins-python/) "board" for it, including a local folder, RStudio Connect, Amazon S3, and more.
52+
You can **version** and **share** your `VetiverModel()` by choosing a [pins](https://rstudio.github.io/pins-python/) "board" for it, including a local folder, [Connect](https://posit.co/products/enterprise/connect/), Amazon S3, and more.
5353

5454
```python
5555
from pins import board_temp
@@ -72,6 +72,6 @@ To start a server using this object, use `app.run(port = 8080)` or your port of
7272

7373
This project is released with a [Contributor Code of Conduct](https://www.contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
7474

75-
- For questions and discussions about deploying models, statistical modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15&tags=vetiver,question).
75+
- For questions and discussions about deploying models, statistical modeling, and machine learning, please [post on Posit Community](https://community.rstudio.com/new-topic?category_id=15&tags=vetiver,question).
7676

7777
- If you think you have encountered a bug, please [submit an issue](https://github.com/rstudio/vetiver-python/issues).

0 commit comments

Comments
 (0)