Skip to content

Commit 6c5d467

Browse files
committed
resync
0 parents  commit 6c5d467

File tree

157 files changed

+54649
-0
lines changed

Some content is hidden

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

157 files changed

+54649
-0
lines changed

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
## Editor temporary/working/backup files
2+
.#*
3+
*\#*\#
4+
[#]*#
5+
*~
6+
*$
7+
*.bak
8+
*.old
9+
*.log
10+
*.nfs*
11+
*.swo
12+
*.swp
13+
*.pdb
14+
.project
15+
.pydevproject
16+
.settings
17+
.idea
18+
.pytest_cache
19+
.vagrant
20+
.noseids
21+
.ipynb_checkpoints
22+
.tags
23+
*.iml
24+
25+
## Python files
26+
# setup.py working directory
27+
build
28+
# setup.py dist directory
29+
dist
30+
# Egg metadata
31+
*.egg-info
32+
.eggs
33+
.pypirc
34+
35+
## tox testing tool
36+
.tox
37+
# rope
38+
.ropeproject
39+
# wheel files
40+
*.whl
41+
**/wheelhouse/*
42+
# coverage
43+
.coverage
44+
swat.egg-info/
45+
__pycache__/
46+
_stats.txt
47+
cover/
48+
test-reports/
49+
.pytest_cache
50+
51+
## OS generated files
52+
.directory
53+
.gdb_history
54+
.DS_Store
55+
ehthumbs.db
56+
Icon?
57+
Thumbs.db
58+
59+
## Documentation generated files
60+
doc/build
61+
doc/source/generated
62+
doc/_build

.travis.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
dist: xenial
2+
language: python
3+
cache: pip
4+
python:
5+
- '2.7'
6+
- '3.4'
7+
- '3.5'
8+
- '3.7'
9+
env:
10+
- PYTHONPATH=$PYTHONPATH:./src
11+
install:
12+
- pip install -r test_requirements.txt
13+
script:
14+
- pytest
15+
jobs:
16+
include:
17+
- stage: upload codecov results
18+
python: 3.6
19+
install:
20+
- pip install pytest pytest-cov codecov
21+
- pip install -r test_requirements.txt
22+
script:
23+
- pytest --cov=./
24+
- codecov
25+
- stage: create release
26+
if: tag is present
27+
python: 3.6
28+
install: pip install sphinx
29+
script:
30+
- sphinx-build -Ean -b html -j auto -D todo_include_todos=0 ./doc ./doc/_build/html
31+
- pushd ./doc/_build/html ; zip -r ../../../${TRAVIS_TAG}-doc.zip . ; popd
32+
deploy:
33+
provider: releases
34+
skip_cleanup: true
35+
api_key: "$GITHUB_TOKEN"
36+
file: "${TRAVIS_TAG}-doc.zip"
37+
draft: true
38+
on:
39+
tags: true
40+
- stage: upload documentation
41+
if: tag is present
42+
python: 3.6
43+
install: pip install sphinx
44+
script:
45+
- sphinx-build -Ean -b html -j auto -D todo_include_todos=0 ./doc ./doc/_build/html
46+
- touch ./doc/_build/html/.nojekyll
47+
deploy:
48+
provider: pages
49+
skip_cleanup: true
50+
github_token: "$GITHUB_TOKEN"
51+
keep_history: false
52+
local_dir: "./doc/_build/html"
53+
on:
54+
tags: true
55+
- stage: deploy to pypi (test)
56+
if: tag is present
57+
script:
58+
-
59+
deploy:
60+
provider: pypi
61+
user:
62+
secure: BkSk3YOVq/wb10zg6ceI7NdymLWhuexH8WH2KHHVIBaZDeoo1Hfzm6bSwxIPlngN5737ubBgVXnCM7oSElPh9oQYhX6PyNPR2X9DshQCoM1iShIhdo3Wb9XYT0V/MZ6/yf9pqbirx1mQ7rM+xTs9lrw7OCgi1/fJXPmXc7Qv8DGfhT0y9SbsktIJoAPg4qjWuGbo/2Jm5l8UNmTp6N5brJO+C1cRp65fZ1LcJ6PeWK+0iIi+oLyMz74TYrVAh+eqIlbnB6ss7WBHw7Bh3Cr7QjyaH5dDBGkouPPUbkSy9tNDcLUERSKPPPAOtY53tADI6ap+2hLFMKFz1wuOBwrabbsxkbdTPNbd9sS6bMrdHajRwuE7WyFkKe4yd9JzmafrBzUsR+hjyjCDIBT9lwn9EIeWaKtbm2zOmh7EbQBhK2q71hc+8ZiDx42uWIpEZnCSkWJYyGHdHiy1kgPsqWnUOMxReIRSfqdrdkVBfA6F68nh5k9w06chSj81Tb/mAnf3xGI8r3EwqMlXfyo+bBCYK3NibaBYMy4xhUiH566cQ+1Rt6JdAaVZIgK6Euu7zas0szZKddXUelaLlc2VHUyoJR8gazVdK6V8hDJykZb85KYp0lWhd78v4ANsDzSjjxoO8YT43iwiFgHarjXN1Vnd9fixWinT3r3BCdUryetOQ1g=
63+
password:
64+
secure: UOnKL5rBTgv8ubh/0l+4BKEO1C89h/PF3y+Y6cq40881yQLkLItTDxYkWCf36m6L/IyOnACwn5kJziQuTUSgyzfN58TRBvjVagjdkDQtwObLZVoU5PX+aMLRF+D7djdIekiOvhvQ476UDUR8jL3FwcQU4QJ72KQJqNn/UohdQquDP91qlcr+XLN/rvLeJAdQ8brOjpansX5qbHuJey+9oGgl9cwAVapvGVzvxk46oDb8hSrWJXZZU5PeEkoOdtGnOUdmWTtjuPjjYA6Fk/jyk+3fSgolHqa4vjFLu2PfDK+hDSZY1JIAxqUGKRzj+O4J2cm5ChMOwB4FwkA+7ZUBptHKnAD+qD4Z2iDRvkVTGgOUsmwS25DAcoEM6t9j5bjozW1vgCiIjf51v6GplQC0rY/QpxVkDnNlLC9Ov+paj+3KgG+BI2S+gjb9XD9tgnsHXpgc0i3dZSmjaO4eA9jetm9bG32irDdQGSifF27vv0m3X1GlgeIYtK2kZnUmxFBYadiGCGBk3+V78VKCLiTsB/G5b/9L70AaQmodPjYiOqmi2K5k6rMJ0lpP52ho3njN2oIvH7Ot4vNdc75qXlsHFX1VQfQlenxuzWszmlQQQAfQ+uj26rhftaKiYfPETPTztRHoRIeyYxqCnpNU5oGw3EcWQklxyNDVH0FqQ7H5iZw=
65+
distributions: sdist bdist_wheel
66+
on:
67+
tags: true

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Unreleased
3+
----------
4+
**Changed**
5+
- services are now classes instead of modules.
6+
Imports of services in the format `import sasctl.services.model_management as mm` must be
7+
changed to `from sasctl.services import model_management as mm`.
8+
- `host` and `user` parameters of `Session` renamed to `hostname` and `username` to align with SWAT.
9+
10+
**Improvements**
11+
- Added `copy_analytic_store` method to `model_repository` service
12+
13+
14+
v0.9.7 (2019-07-18)
15+
-------------------
16+
**Improvements**
17+
- public_model task also defines methods mapped to MAS module steps when publishing to MAS.
18+
- SSL verification can be disable with `SSLREQCERT` environment variable.
19+
- CAs to use for validating SSL certificates can also be specified through the `SSLCALISTLOC` environment variable.
20+
- Added `execute_performance_task`
21+
22+
**Changes**
23+
- Updated method signature for `create_performance_definition` in Model Manager.
24+
25+
**Bugfixes**
26+
- register_model task no longer adds `rc` and `msg` variables from MAS to the project variables.
27+
28+
29+
v0.9.6 (2019-07-15)
30+
-------------------
31+
Initial public release.

CONTRIBUTING.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
7+
### Issues
8+
If you encounter a defect while using this software, please open up an
9+
issue to track the problem. See [SUPPORT.md](SUPPORT.md) for more information.
10+
11+
12+
### Submiting a Contribution
13+
All contributions are managed through the standard GitHub pull request process.
14+
Consult [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
15+
information on using pull requests.
16+
17+
All pull requests must include appropriate test cases to verify the changes.
18+
See the [Testing](#Testing) section below for more information on how test cases are configured.
19+
20+
Contributions to this project must be accompanied by a signed
21+
[Contributor Agreement](ContributorAgreement.txt).
22+
You (or your employer) retain the copyright to your contribution,
23+
this simply gives us permission to use and redistribute your contributions as
24+
part of the project.
25+
26+
27+
### Testing
28+
Tests are written using the [py.test](https://docs.pytest.org)
29+
framework, which also supports the standard unittest package. To enable
30+
integration testing without requiring a running SAS Viya environment, the
31+
[Betamax](https://pypi.org/project/betamax/) package is used to record and
32+
replay network interactions.
33+
34+
In addition, [Tox](https://tox.readthedocs.io) is used to test
35+
compatibility with different Python version.
36+
37+
All packages required for development and testing are listed in
38+
[test_requirements.txt](test_requirements.txt) and can be easily installed with
39+
```
40+
pip install -r test_requirements.txt
41+
```
42+
43+
44+
Before a pull request will be accepted:
45+
- contributions must pass existing regression tests located in tests/
46+
- contributions must add unit tests to tests/unit to validate any code changes
47+
- if there's already a test file where your tests would make sense, put them in there
48+
- if it's something new or you feel it needs its own file, create a new file
49+
- contributions should add integration tests to tests/integration when appropriate
50+
- all integration tests that involve network calls should also include the appropriate Betamax cassettes in tests/cassettes
51+
52+
- SASCTL_SERVER_NAME - hostname of the SAS Viya server to be used for testing
53+
- SASCTL_AUTHINFO - path to .authinfo or a .netrc file containing authentication credentials
54+
- SASCTL_USER_NAME - the user name to use when authenticating to SAS Viya services
55+
- SASCTL_PASSWORD - the password to use when authenticating to the SAS Viya services
56+
- REQUESTS_CA_BUNDLE - path to CA certificate for the SAS Viya server's SSL certificate. This is required certificates served by SAS Viya environments
57+
are almost always signed by an internal CA and the Python requests module does not pull CA certificates from the host.
58+
59+
60+
A collection of py.test fixtures has been defined in [conftest.py](tests/conftest.py) and can be
61+
used to access common resources from test cases.

ContributorAgreement.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Contributor Agreement
2+
3+
Version 1.1
4+
5+
Contributions to this software are accepted only when they are
6+
properly accompanied by a Contributor Agreement. The Contributor
7+
Agreement for this software is the Developer's Certificate of Origin
8+
1.1 (DCO) as provided with and required for accepting contributions
9+
to the Linux kernel.
10+
11+
In each contribution proposed to be included in this software, the
12+
developer must include a "sign-off" that denotes consent to the
13+
terms of the Developer's Certificate of Origin. The sign-off is
14+
a line of text in the description that accompanies the change,
15+
certifying that you have the right to provide the contribution
16+
to be included. For changes provided in source code control (for
17+
example, via a Git pull request) the sign-off must be included in
18+
the commit message in source code control. For changes provided
19+
in email or issue tracking, the sign-off must be included in the
20+
email or the issue, and the sign-off will be incorporated into the
21+
permanent commit message if the contribution is accepted into the
22+
official source code.
23+
24+
If you can certify the below:
25+
26+
Developer's Certificate of Origin 1.1
27+
28+
By making a contribution to this project, I certify that:
29+
30+
(a) The contribution was created in whole or in part by me and I
31+
have the right to submit it under the open source license
32+
indicated in the file; or
33+
34+
(b) The contribution is based upon previous work that, to the best
35+
of my knowledge, is covered under an appropriate open source
36+
license and I have the right under that license to submit that
37+
work with modifications, whether created in whole or in part
38+
by me, under the same open source license (unless I am
39+
permitted to submit under a different license), as indicated
40+
in the file; or
41+
42+
(c) The contribution was provided directly to me by some other
43+
person who certified (a), (b) or (c) and I have not modified
44+
it.
45+
46+
(d) I understand and agree that this project and the contribution
47+
are public and that a record of the contribution (including all
48+
personal information I submit with it, including my sign-off) is
49+
maintained indefinitely and may be redistributed consistent with
50+
this project or the open source license(s) involved.
51+
52+
then you just add a line saying
53+
54+
Signed-off-by: Random J Developer <[email protected]>
55+
56+
using your real name (sorry, no pseudonyms or anonymous contributions.)

0 commit comments

Comments
 (0)