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
Copy file name to clipboardExpand all lines: README.md
+29-12
Original file line number
Diff line number
Diff line change
@@ -117,29 +117,29 @@ Python 3.7+ is fully supported.
117
117
LabKey Server v15.1 and later.
118
118
119
119
## Contributing
120
-
This package is maintained by [LabKey](http://www.labkey.com/). If you have any questions or need support, please use
121
-
the [LabKey Server developer support forum](https://www.labkey.org/home/developer/forum/project-start.view).
120
+
This package is maintained by [LabKey](http://www.labkey.com/). If you have any questions or need support, please use the
121
+
[LabKey Server developer support forum](https://www.labkey.org/home/developer/forum/project-start.view).
122
122
123
+
### Setup
123
124
To install the necessary dependencies for local development you can run the following command:
124
125
125
126
```bash
126
-
pip install -e .
127
+
pip install -e '.[dev]'
127
128
```
128
129
129
-
When contributing changes please use `Black` to format your code. To run Black follow these instructions:
130
-
1. Install black: `pip install black`
131
-
2. Run black: `black .`
132
-
3. Commit the newly formatted code.
133
130
134
-
### Testing
135
-
If you are looking to contribute please run the tests before issuing a PR. To run the tests you'll need to install the
136
-
additional testing dependencies, to do this run:
131
+
### Formatting your code
132
+
When contributing changes please use `Black` to format your code. To run Black you can run the following command:
137
133
138
134
```bash
139
-
$ pip install -e '.[test]'
135
+
black .
140
136
```
141
137
142
-
Then, the tests can be run with
138
+
After black has run it may have formatted some files, commit the changed files before opening a PR.
139
+
140
+
### Testing
141
+
If you are looking to contribute please run the tests before issuing a PR. The tests can be run with:
142
+
143
143
```bash
144
144
$ pytest .
145
145
```
@@ -154,3 +154,20 @@ $ pytest . -m "integration"
154
154
### Maintainers
155
155
Package maintainer's can reference the [Python Package Maintenance](https://docs.google.com/document/d/13nVxwyctH4YZ6gDhcrOu9Iz6qGFPAxicE1VHiVYpw9A/) document (requires permission) for updating
156
156
releases.
157
+
158
+
To build the package before releasing you will need to install the build dependencies. This can be done by running:
159
+
160
+
```bash
161
+
pip install -e '.[build]'
162
+
```
163
+
164
+
To build the package you can run:
165
+
166
+
```bash
167
+
python -m build
168
+
```
169
+
170
+
You should now have a `dist/` folder with two files:
171
+
172
+
1.`labkey-<version from __init__.py>.tar.gz` - This is the source distribution
173
+
2.`labkey-<version from __init__.py>-py3-none-any.whl` - This is the wheel
0 commit comments