You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update version in `setup.cfg` and `src/pybritive/__init__.py` (TODO: create some pre-build script that will update one of these automatically)
13
+
* Update version in `src/pybritive/__init__.py`
10
14
* Push code to GitHub
11
15
* Cut a new PR and merge when appropriate
12
16
* Run below commands
13
17
14
-
15
-
~~~
18
+
```sh
16
19
python -m pip install --upgrade build
17
20
python -m build
18
-
~~~
21
+
```
19
22
20
23
* Cut a new release in GitHub with the version tag
21
24
* Add the assets from `dist` directory to the release
22
25
23
26
## Github Actions
27
+
24
28
There are 2 Github Actions in play that publish to PyPI.
25
29
26
30
1. Trigger off of a push to the `develop` branch. Will deploy to test PyPI.
27
31
2. Trigger off of a new release being published. Will deploy to real PyPI.
28
32
29
33
## Testing
34
+
30
35
It is generally advisable to set environment variable `PYBRITIVE_HOME_DIR` to some temp location if you
31
36
will be performing the full suite of tests. This will ensure that no changes are made to your existing
32
37
configuration or credentials.
@@ -35,55 +40,65 @@ Environment variables that should be set for testing include the following.
35
40
36
41
*`PYBRITIVE_HOME_DIR` - a path to a home directory where `.britive` directory will be created
37
42
*`PYBRITIVE_TEST_TENANT` - the tenant name to be used for testing purposes
38
-
*`PYBRITIVE_NPM_IMPORT_PROFILE_ALIAS_VALUE` - the IDs of a profile that can be used to test the import process. This should be in format `"appid/envid/profileid/appname"`.
43
+
*`PYBRITIVE_NPM_IMPORT_PROFILE_ALIAS_VALUE` - the IDs of a profile that can be used to test the import process. This
44
+
should be in format `"appid/envid/profileid/appname"`
39
45
*`PYBRITIVE_ENCRYPTED_CREDENTIAL_PASSPHRASE` - the password for encrypted file credential storage
40
-
*`PYBRITIVE_PREPARE_DOT_BRITIVE` - set to true if you want to have the `.britive` directory cleared before starting the tests
41
-
*`BRITIVE_API_TOKEN` - set if you want to avoid an interactive login process - the interactive login process will need to be tested separately
46
+
*`PYBRITIVE_PREPARE_DOT_BRITIVE` - set to true if you want to have the `.britive` directory cleared before starting the
47
+
tests
48
+
*`BRITIVE_API_TOKEN` - set if you want to avoid an interactive login process - the interactive login process will need
49
+
to be tested separately
42
50
43
-
Create `./testing-variables.txt` and load what you need so you can easily re-create the needed variables. This file is in `.gitignore`.
51
+
Create `./testing-variables.txt` and load what you need so you can easily re-create the needed variables. This file is
52
+
in `.gitignore`.
44
53
45
54
Package the code locally with `pip install -e .` so pytest can run against the python package.
46
-
Then `pytest tests/ -vvv` to perform the testing.
55
+
Then `pytest tests/ -vvv` to perform the testing.
56
+
57
+
The identity used for testing will require access to at least one profile to test `checkout` and `checkin`.
58
+
Additionally, the identity will need access to 2 secrets:
47
59
48
-
The identity used for testing will require access to at least one profile to test `checkout` and `checkin`.
49
-
Additionally, the identity will need access to 2 secrets
50
-
* one standard secret with path `/pybritive-test-standard` to test `view` - the value of the secret should be generic note with note of `test`
51
-
* one file secret with path `/pybritive-test-file` to test `download` - the filename should be `pybritive-test-secret-file.txt` and contain contents of `test`
60
+
* one standard secret with path `/pybritive-test-standard`to test `view` - the value of the secret should be generic
61
+
note with note of `test`
62
+
* one file secret with path `/pybritive-test-file` to test `download` - the filename should be
63
+
`pybritive-test-secret-file.txt` and contain contents of `test`
Note: Britive, Inc. does not provide support for community projects. Community projects are also not considered when ensuring backwards compatibility for releases. The list below is provided as-is and use of these projects is subject to the licensing/restrictions of each individual project.
0 commit comments