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
Link to Contributor's Guide from README + expand Maintainer's Guide (#1071)
* Link to Contributor Guide from README. Expand Maintainer Guide with more details on virtual env setup. Mirror Maintainer Guide steps as closely to CI execution as possible. (#1070)
* Remove env var prefixing from test run command
Copy file name to clipboardExpand all lines: .github/maintainers_guide.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,30 +15,48 @@ $ brew update
15
15
$ brew install pyenv
16
16
```
17
17
18
-
Install necessary Python runtimes for development/testing. You can rely on Travis CI builds for testing with various major versions. https://github.com/slackapi/python-slack-sdk/blob/main/.travis.yml
18
+
You can hook `pyenv` into your shell automatically by running `pyenv init` and following the instructions.
19
+
20
+
Install necessary Python runtimes for development/testing. It is not necessary
21
+
to install all the various Python versions we test in [continuous integration on
$ pyenv install 3.8.5# select the latest patch version
24
-
$ pyenv local 3.8.5
29
+
$ pyenv install 3.9.6# select the latest patch version
30
+
$ pyenv local 3.9.6
25
31
26
32
$ pyenv versions
27
33
system
28
34
3.6.10
29
35
3.7.7
30
-
* 3.8.5 (set by /path-to-python-slack-sdk/.python-version)
36
+
* 3.9.6 (set by /path-to-python-slack-sdk/.python-version)
31
37
32
38
$ pyenv rehash
33
39
```
34
40
35
-
Then, you can create a new Virtual Environment this way:
41
+
Then, you can create a new [Virtual Environment](https://docs.python.org/3/tutorial/venv.html) specific to the Python version you just installed by running:
36
42
37
43
```
38
-
$ python -m venv env_3.8.5
39
-
$ source env_3.8.5/bin/activate
44
+
$ python -m venv env_3.9.6
45
+
$ source env_3.9.6/bin/activate
40
46
```
41
47
48
+
At this point you have a clean, Python-version-specific environment "activated" for
49
+
use just for this project. All `python` and `pip` commands run in your shell
50
+
from this point on run in the context of this virtual environment. You can
51
+
deactivate the virtual environment by running `deactivate`; it is recommended to
52
+
do so after you are done working in this project. To come back to development
53
+
work for this project again in the future, `cd` into this project directory and
54
+
run `source env_3.9.6/bin/activate` again.
55
+
56
+
The last step is to install this project's dependencies; to do so, check out [how
57
+
we configure GitHub Actions to install dependencies for this project for use in
58
+
our continuous integration](https://github.com/slackapi/python-slack-sdk/blob/main/.github/workflows/ci-build.yml#L26-L30). You can also run `./scripts/run_validation.sh` to install the dependencies and run the unit tests in one command!
59
+
42
60
## Tasks
43
61
44
62
### Testing (Unit Tests)
@@ -53,7 +71,7 @@ python setup.py validate \
53
71
--test-target tests/web/test_web_client.py
54
72
```
55
73
56
-
You can rely on Travis CI builds for running the tests on a variety of Python runtimes.
74
+
You can rely on GitHub Actions builds for running the tests on a variety of Python runtimes.
57
75
58
76
### Testing (Integration Tests with Real Slack APIs)
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Are you looking for [slackclient](https://pypi.org/project/slackclient/)? The we
48
48
*[Example](#example)
49
49
*[Migrating from v1](#migrating-from-v1)
50
50
*[Support](#support)
51
+
*[Development](#development)
51
52
52
53
### Requirements
53
54
@@ -138,7 +139,7 @@ except SlackApiError as e:
138
139
139
140
#### AsyncWebClient in a script
140
141
141
-
```python
142
+
```python
142
143
import asyncio
143
144
import os
144
145
from slack_sdk.web.async_client import AsyncWebClient
@@ -266,6 +267,12 @@ If you get stuck, we’re here to help. The following are the best ways to get a
266
267
Use our [Github Issue Tracker][gh-issues] for reporting bugs or requesting features.
267
268
Visit the [Slack Community][slack-community] for getting help using Slack Developer Kit for Python or just generally bond with your fellow Slack developers.
268
269
270
+
### Contributing
271
+
272
+
We welcome contributions from everyone! Please check out our
273
+
[Contributor's Guide](.github/contributing.md) for how to contribute in a
0 commit comments