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
#### Build & Activate Virtual Environment and install dependencies
13
13
14
-
From this connector directory, create a virtual environment:
15
14
16
-
```shell
17
-
python -m venv .venv
18
-
```
19
-
20
-
This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your
21
-
development environment of choice. To activate it from the terminal, run:
15
+
### Installing the connector
22
16
23
-
```shell
24
-
source .venv/bin/activate
25
-
pip install -r requirements.txt
17
+
From this connector directory, run:
18
+
```bash
19
+
poetry install --with dev
26
20
```
27
21
28
-
If you are in an IDE, follow your IDE's instructions to activate the virtualenv.
29
-
30
-
Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is
31
-
used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`.
32
-
If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything
33
-
should work as you expect.
34
22
35
-
####Create credentials
23
+
### Create credentials
36
24
37
-
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/okta)
38
-
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_okta/spec.json` file.
25
+
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/okta)
26
+
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `src/source_okta/spec.yaml` file.
39
27
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
40
-
See `integration_tests/sample_config.json` for a sample config file.
28
+
See `sample_files/config.json` for a sample config file.
41
29
42
-
**If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source okta test creds`
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
86
72
@@ -90,25 +76,30 @@ airbyte-ci connectors --name=source-okta test
90
76
91
77
### Customizing acceptance Tests
92
78
93
-
Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
79
+
Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
94
80
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
95
81
96
-
## Dependency Management
82
+
###Dependency Management
97
83
98
-
All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
99
-
We split dependencies between two groups, dependencies that are:
84
+
All of your dependencies should be managed via Poetry.
85
+
To add a new dependency, run:
86
+
```bash
87
+
poetry add <package-name>
88
+
```
100
89
101
-
- required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
102
-
- required for the testing need to go to `TEST_REQUIREMENTS` list
90
+
Please commit the changes to `pyproject.toml` and `poetry.lock` files.
103
91
104
-
###Publishing a new version of the connector
92
+
## Publishing a new version of the connector
105
93
106
94
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
107
95
108
96
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-okta test`
109
-
2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
97
+
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)):
98
+
- bump the `dockerImageTag` value in in `metadata.yaml`
99
+
- bump the `version` value in `pyproject.toml`
110
100
3. Make sure the `metadata.yaml` content is up to date.
111
-
4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/okta.md`).
101
+
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/okta.md`).
112
102
5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
113
103
6. Pat yourself on the back for being an awesome contributor.
114
104
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
105
+
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
0 commit comments