hydrobot 0.2.3__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hydrobot-0.2.3 → hydrobot-0.3.0}/AUTHORS.rst +14 -14
- {hydrobot-0.2.3 → hydrobot-0.3.0}/CONTRIBUTING.rst +210 -210
- {hydrobot-0.2.3 → hydrobot-0.3.0}/HISTORY.rst +28 -28
- {hydrobot-0.2.3 → hydrobot-0.3.0}/LICENSE +32 -32
- {hydrobot-0.2.3 → hydrobot-0.3.0}/MANIFEST.in +12 -12
- {hydrobot-0.2.3 → hydrobot-0.3.0}/PKG-INFO +87 -87
- {hydrobot-0.2.3 → hydrobot-0.3.0}/README.rst +39 -39
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/Makefile +20 -20
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/authors.rst +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/conf.py +168 -168
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/contributing.rst +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/history.rst +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/hydrobot.rst +53 -53
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/index.rst +20 -20
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/installation.rst +71 -51
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/make.bat +0 -0
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/modules.rst +7 -7
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/readme.rst +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/docs/usage.rst +7 -7
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/__init__.py +5 -5
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/config/TwoLevelMeasurement_QC_config.csv +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/config/measurement_QC_config.csv +2 -2
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/data_acquisition.py +107 -107
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/data_sources.py +260 -260
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/evaluator.py +381 -381
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/filters.py +172 -145
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/plotter.py +172 -171
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot/processor.py +494 -470
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/PKG-INFO +87 -87
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/SOURCES.txt +3 -3
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/not-zip-safe +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/setup.cfg +29 -29
- {hydrobot-0.2.3 → hydrobot-0.3.0}/setup.py +53 -53
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/__init__.py +1 -1
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/site_list_response.xml +7 -7
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/test_data_sources.py +27 -27
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/test_evaluator.py +283 -283
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/test_filters.py +141 -129
- {hydrobot-0.2.3 → hydrobot-0.3.0}/tests/test_processor.py +104 -103
- {hydrobot-0.2.3/docs/_build/html → hydrobot-0.3.0/docs/_build}/_static/file.png +0 -0
- {hydrobot-0.2.3/docs/_build/html → hydrobot-0.3.0/docs/_build}/_static/minus.png +0 -0
- {hydrobot-0.2.3/docs/_build/html → hydrobot-0.3.0/docs/_build}/_static/plus.png +0 -0
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/dependency_links.txt +0 -0
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/requires.txt +0 -0
- {hydrobot-0.2.3 → hydrobot-0.3.0}/hydrobot.egg-info/top_level.txt +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
=======
|
|
2
|
-
Credits
|
|
3
|
-
=======
|
|
4
|
-
|
|
5
|
-
Development Lead
|
|
6
|
-
----------------
|
|
7
|
-
|
|
8
|
-
* Nic Mostert <nicolas.mostert@horizons.govt.nz>
|
|
9
|
-
* Sam Irvine <sam.irvine@horizons.govt.nz>
|
|
10
|
-
|
|
11
|
-
Contributors
|
|
12
|
-
------------
|
|
13
|
-
|
|
14
|
-
None yet. Why not be the first?
|
|
1
|
+
=======
|
|
2
|
+
Credits
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
Development Lead
|
|
6
|
+
----------------
|
|
7
|
+
|
|
8
|
+
* Nic Mostert <nicolas.mostert@horizons.govt.nz>
|
|
9
|
+
* Sam Irvine <sam.irvine@horizons.govt.nz>
|
|
10
|
+
|
|
11
|
+
Contributors
|
|
12
|
+
------------
|
|
13
|
+
|
|
14
|
+
None yet. Why not be the first?
|
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
.. highlight:: shell
|
|
2
|
-
|
|
3
|
-
============
|
|
4
|
-
Contributing
|
|
5
|
-
============
|
|
6
|
-
|
|
7
|
-
Contributions are welcome, and they are greatly appreciated! Every little bit
|
|
8
|
-
helps, and credit will always be given.
|
|
9
|
-
|
|
10
|
-
You can contribute in many ways:
|
|
11
|
-
|
|
12
|
-
Types of Contributions
|
|
13
|
-
----------------------
|
|
14
|
-
|
|
15
|
-
Report Bugs
|
|
16
|
-
~~~~~~~~~~~
|
|
17
|
-
|
|
18
|
-
Report bugs at https://github.com/nicmostert/hydrobot/issues.
|
|
19
|
-
|
|
20
|
-
If you are reporting a bug, please include:
|
|
21
|
-
|
|
22
|
-
* Your operating system name and version.
|
|
23
|
-
* Any details about your local setup that might be helpful in troubleshooting.
|
|
24
|
-
* Detailed steps to reproduce the bug.
|
|
25
|
-
|
|
26
|
-
Fix Bugs
|
|
27
|
-
~~~~~~~~
|
|
28
|
-
|
|
29
|
-
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
|
|
30
|
-
wanted" is open to whoever wants to implement it.
|
|
31
|
-
|
|
32
|
-
Implement Features
|
|
33
|
-
~~~~~~~~~~~~~~~~~~
|
|
34
|
-
|
|
35
|
-
Look through the GitHub issues for features. Anything tagged with "enhancement"
|
|
36
|
-
and "help wanted" is open to whoever wants to implement it.
|
|
37
|
-
|
|
38
|
-
Write Documentation
|
|
39
|
-
~~~~~~~~~~~~~~~~~~~
|
|
40
|
-
|
|
41
|
-
Hydro Processing Tools could always use more documentation, whether as part of the
|
|
42
|
-
official Hydro Processing Tools docs, in docstrings, or even on the web in blog posts,
|
|
43
|
-
articles, and such.
|
|
44
|
-
|
|
45
|
-
Submit Feedback
|
|
46
|
-
~~~~~~~~~~~~~~~
|
|
47
|
-
|
|
48
|
-
The best way to send feedback is to file an issue at https://github.com/nicmostert/hydrobot/issues.
|
|
49
|
-
|
|
50
|
-
If you are proposing a feature:
|
|
51
|
-
|
|
52
|
-
* Explain in detail how it would work.
|
|
53
|
-
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
54
|
-
* Remember that this is a volunteer-driven project, and that contributions
|
|
55
|
-
are welcome :)
|
|
56
|
-
|
|
57
|
-
Get Started!
|
|
58
|
-
------------
|
|
59
|
-
|
|
60
|
-
Ready to contribute? Here's how to set up `hydrobot` for local development.
|
|
61
|
-
|
|
62
|
-
1. Fork the `hydrobot` repo on GitHub.
|
|
63
|
-
2. Clone your fork locally::
|
|
64
|
-
|
|
65
|
-
$ git clone git@github.com:your_name_here/hydrobot.git
|
|
66
|
-
|
|
67
|
-
3. Install your local copy into a venv. This is how you set up your fork for local development::
|
|
68
|
-
|
|
69
|
-
Switch to the newly created root directory of the project::
|
|
70
|
-
|
|
71
|
-
$ cd hydrobot/
|
|
72
|
-
|
|
73
|
-
Create a virtual environment for this project::
|
|
74
|
-
|
|
75
|
-
$ python -m venv path/to/venv/location/
|
|
76
|
-
|
|
77
|
-
Activate the virtual environment:
|
|
78
|
-
|
|
79
|
-
Unix::
|
|
80
|
-
|
|
81
|
-
$ source path/to/venv/location/bin/activate
|
|
82
|
-
|
|
83
|
-
Windows (Powershell)::
|
|
84
|
-
|
|
85
|
-
$ ./path/to/venv/location/Scripts/Activate.ps1
|
|
86
|
-
|
|
87
|
-
Windows (cmd)::
|
|
88
|
-
|
|
89
|
-
$ ./path/to/venv/location/Scripts/activate.bat
|
|
90
|
-
|
|
91
|
-
Once within the venv, install the required packages for development::
|
|
92
|
-
|
|
93
|
-
$ python -m pip install -r requirements_dev.txt
|
|
94
|
-
|
|
95
|
-
Finally, install the hydrobot in "editable" (or "develop") mode.
|
|
96
|
-
This allows you to import the package into test scripts and prototypes, while allowing you to edit the package in-place without reinstallation.::
|
|
97
|
-
|
|
98
|
-
$ python -m pip install -e .
|
|
99
|
-
|
|
100
|
-
4. Create a branch for local development::
|
|
101
|
-
|
|
102
|
-
In order to track local changes, you must create a branch for local development.
|
|
103
|
-
This command creates a local brach, then switches to that branch.::
|
|
104
|
-
|
|
105
|
-
$ git checkout -b name-of-your-bugfix-or-feature
|
|
106
|
-
|
|
107
|
-
Now you can make your changes locally.
|
|
108
|
-
|
|
109
|
-
*NOTE: It is good practice to give your branch a name based on the changes you are planning to make. E.g. "adding-signal-processing-feature" or "fixing-bug-in-spike-filter".*
|
|
110
|
-
|
|
111
|
-
5. When you're done making changes, verify that all tests still pass on your branch::
|
|
112
|
-
|
|
113
|
-
$ pytest
|
|
114
|
-
|
|
115
|
-
Your branch will not be allowed to merge if all tests do not pass. [*NOTE: This is not technically true yet, but it will be once I figure it out.*]
|
|
116
|
-
|
|
117
|
-
6. When you're done making changes, commit your changes and push your branch to GitHub::
|
|
118
|
-
|
|
119
|
-
$ git add .
|
|
120
|
-
$ git commit -m "Your detailed description of your changes."
|
|
121
|
-
|
|
122
|
-
This project makes use of various pre-commit hooks. Importantly, this code-base conforms to `black` formatting.
|
|
123
|
-
If your test fails, follow the instructions on how to fix any problems, and then repeat the commit command. In some cases, the pre-commit hooks will automatically fix all problems. In such cases, the changes need to be staged with `git add .` again then commit again. Since the failed commit didn't go through, feel free to use the same commit message as before.
|
|
124
|
-
|
|
125
|
-
To run all the pre-commit hooks without making a commit (e.g. to check if the auto-fixes solved all the problems), you can run::
|
|
126
|
-
|
|
127
|
-
$ pre-commit run --all-files
|
|
128
|
-
|
|
129
|
-
When all checks pass and your changes are committed sucessfully, you may push your changes to the remote version of your branch::
|
|
130
|
-
|
|
131
|
-
$ git push origin name-of-your-bugfix-or-feature
|
|
132
|
-
|
|
133
|
-
7. Submit a pull request through the GitHub website. Provide a detailed description of the changes you have made to ensure that they can be merged efficiently.
|
|
134
|
-
|
|
135
|
-
Pull Request Guidelines
|
|
136
|
-
-----------------------
|
|
137
|
-
|
|
138
|
-
Before you submit a pull request, check that it meets these guidelines:
|
|
139
|
-
|
|
140
|
-
1. The pull request should include tests.
|
|
141
|
-
2. If the pull request adds functionality, the docs should be updated. Put
|
|
142
|
-
your new functionality into a function with a docstring, and add the
|
|
143
|
-
feature to the appropriate location in the documentation.
|
|
144
|
-
|
|
145
|
-
Tips
|
|
146
|
-
----
|
|
147
|
-
|
|
148
|
-
To run a subset of tests::
|
|
149
|
-
|
|
150
|
-
$ pytest tests.test_hydrobot
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Releasing to PyPI
|
|
154
|
-
------------------
|
|
155
|
-
|
|
156
|
-
A reminder for the maintainers on how to deploy.
|
|
157
|
-
|
|
158
|
-
1. Make sure all your changes are committed (including an entry in HISTORY.rst, documentation, etc.).
|
|
159
|
-
|
|
160
|
-
2. Then run `bump2version` to increment the release tags in the appropriate places. Consider running `bump2version --dry-run` to make sure there are no errors first::
|
|
161
|
-
|
|
162
|
-
$ bump2version --dry-run --verbose patch # Optional, just to test if it runs without errors
|
|
163
|
-
$ bump2version patch # For real this time. Possible values: major / minor / patch
|
|
164
|
-
|
|
165
|
-
3. Install the local development version of the package (make sure you're in the package root directory where setup.py is). You should see the package install with the correct version number.::
|
|
166
|
-
|
|
167
|
-
$ pip install -e .
|
|
168
|
-
|
|
169
|
-
4. Run the tests to see that they still work with this local install::
|
|
170
|
-
|
|
171
|
-
$ pytest
|
|
172
|
-
|
|
173
|
-
5. Push the commit::
|
|
174
|
-
|
|
175
|
-
$ git push
|
|
176
|
-
|
|
177
|
-
6. Push the tags to GitHub. (Note that we don't actually release on GitHub though. We want to keep the releases to PyPI so there's less ambiguity about how to install it.)::
|
|
178
|
-
|
|
179
|
-
$ git push --tags
|
|
180
|
-
|
|
181
|
-
7. Do the release.
|
|
182
|
-
|
|
183
|
-
* If using the Makefile (i.e. you have `make` installed and can run `make help` without errors) you can simply run::
|
|
184
|
-
|
|
185
|
-
$ make release
|
|
186
|
-
|
|
187
|
-
* Otherwise, you would have to do the release manually.
|
|
188
|
-
|
|
189
|
-
a. Clean up all the artifact files::
|
|
190
|
-
|
|
191
|
-
$ rm -fr build/
|
|
192
|
-
$ rm -fr dist/
|
|
193
|
-
$ rm -fr .eggs/
|
|
194
|
-
$ find . -name '*.egg-info' -exec rm -fr {} +
|
|
195
|
-
$ find . -name '*.egg' -exec rm -f {} +
|
|
196
|
-
$ find . -name '*.pyc' -exec rm -f {} +
|
|
197
|
-
$ find . -name '*.pyo' -exec rm -f {} +
|
|
198
|
-
$ find . -name '*~' -exec rm -f {} +
|
|
199
|
-
$ find . -name '__pycache__' -exec rm -fr {} +
|
|
200
|
-
$ rm -fr .pytest_cache
|
|
201
|
-
|
|
202
|
-
b. Build the source and wheel packages::
|
|
203
|
-
|
|
204
|
-
$ python setup.py sdist
|
|
205
|
-
$ python setup.py bdist_wheel
|
|
206
|
-
$ ls -l dist
|
|
207
|
-
|
|
208
|
-
c. Use twine to release to PyPI. You'll be asked for authentication. Use the username `__token__`, along with the API key I gave you.::
|
|
209
|
-
|
|
210
|
-
$ twine upload dist/*
|
|
1
|
+
.. highlight:: shell
|
|
2
|
+
|
|
3
|
+
============
|
|
4
|
+
Contributing
|
|
5
|
+
============
|
|
6
|
+
|
|
7
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit
|
|
8
|
+
helps, and credit will always be given.
|
|
9
|
+
|
|
10
|
+
You can contribute in many ways:
|
|
11
|
+
|
|
12
|
+
Types of Contributions
|
|
13
|
+
----------------------
|
|
14
|
+
|
|
15
|
+
Report Bugs
|
|
16
|
+
~~~~~~~~~~~
|
|
17
|
+
|
|
18
|
+
Report bugs at https://github.com/nicmostert/hydrobot/issues.
|
|
19
|
+
|
|
20
|
+
If you are reporting a bug, please include:
|
|
21
|
+
|
|
22
|
+
* Your operating system name and version.
|
|
23
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
24
|
+
* Detailed steps to reproduce the bug.
|
|
25
|
+
|
|
26
|
+
Fix Bugs
|
|
27
|
+
~~~~~~~~
|
|
28
|
+
|
|
29
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
|
|
30
|
+
wanted" is open to whoever wants to implement it.
|
|
31
|
+
|
|
32
|
+
Implement Features
|
|
33
|
+
~~~~~~~~~~~~~~~~~~
|
|
34
|
+
|
|
35
|
+
Look through the GitHub issues for features. Anything tagged with "enhancement"
|
|
36
|
+
and "help wanted" is open to whoever wants to implement it.
|
|
37
|
+
|
|
38
|
+
Write Documentation
|
|
39
|
+
~~~~~~~~~~~~~~~~~~~
|
|
40
|
+
|
|
41
|
+
Hydro Processing Tools could always use more documentation, whether as part of the
|
|
42
|
+
official Hydro Processing Tools docs, in docstrings, or even on the web in blog posts,
|
|
43
|
+
articles, and such.
|
|
44
|
+
|
|
45
|
+
Submit Feedback
|
|
46
|
+
~~~~~~~~~~~~~~~
|
|
47
|
+
|
|
48
|
+
The best way to send feedback is to file an issue at https://github.com/nicmostert/hydrobot/issues.
|
|
49
|
+
|
|
50
|
+
If you are proposing a feature:
|
|
51
|
+
|
|
52
|
+
* Explain in detail how it would work.
|
|
53
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
54
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
55
|
+
are welcome :)
|
|
56
|
+
|
|
57
|
+
Get Started!
|
|
58
|
+
------------
|
|
59
|
+
|
|
60
|
+
Ready to contribute? Here's how to set up `hydrobot` for local development.
|
|
61
|
+
|
|
62
|
+
1. Fork the `hydrobot` repo on GitHub.
|
|
63
|
+
2. Clone your fork locally::
|
|
64
|
+
|
|
65
|
+
$ git clone git@github.com:your_name_here/hydrobot.git
|
|
66
|
+
|
|
67
|
+
3. Install your local copy into a venv. This is how you set up your fork for local development::
|
|
68
|
+
|
|
69
|
+
Switch to the newly created root directory of the project::
|
|
70
|
+
|
|
71
|
+
$ cd hydrobot/
|
|
72
|
+
|
|
73
|
+
Create a virtual environment for this project::
|
|
74
|
+
|
|
75
|
+
$ python -m venv path/to/venv/location/
|
|
76
|
+
|
|
77
|
+
Activate the virtual environment:
|
|
78
|
+
|
|
79
|
+
Unix::
|
|
80
|
+
|
|
81
|
+
$ source path/to/venv/location/bin/activate
|
|
82
|
+
|
|
83
|
+
Windows (Powershell)::
|
|
84
|
+
|
|
85
|
+
$ ./path/to/venv/location/Scripts/Activate.ps1
|
|
86
|
+
|
|
87
|
+
Windows (cmd)::
|
|
88
|
+
|
|
89
|
+
$ ./path/to/venv/location/Scripts/activate.bat
|
|
90
|
+
|
|
91
|
+
Once within the venv, install the required packages for development::
|
|
92
|
+
|
|
93
|
+
$ python -m pip install -r requirements_dev.txt
|
|
94
|
+
|
|
95
|
+
Finally, install the hydrobot in "editable" (or "develop") mode.
|
|
96
|
+
This allows you to import the package into test scripts and prototypes, while allowing you to edit the package in-place without reinstallation.::
|
|
97
|
+
|
|
98
|
+
$ python -m pip install -e .
|
|
99
|
+
|
|
100
|
+
4. Create a branch for local development::
|
|
101
|
+
|
|
102
|
+
In order to track local changes, you must create a branch for local development.
|
|
103
|
+
This command creates a local brach, then switches to that branch.::
|
|
104
|
+
|
|
105
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
106
|
+
|
|
107
|
+
Now you can make your changes locally.
|
|
108
|
+
|
|
109
|
+
*NOTE: It is good practice to give your branch a name based on the changes you are planning to make. E.g. "adding-signal-processing-feature" or "fixing-bug-in-spike-filter".*
|
|
110
|
+
|
|
111
|
+
5. When you're done making changes, verify that all tests still pass on your branch::
|
|
112
|
+
|
|
113
|
+
$ pytest
|
|
114
|
+
|
|
115
|
+
Your branch will not be allowed to merge if all tests do not pass. [*NOTE: This is not technically true yet, but it will be once I figure it out.*]
|
|
116
|
+
|
|
117
|
+
6. When you're done making changes, commit your changes and push your branch to GitHub::
|
|
118
|
+
|
|
119
|
+
$ git add .
|
|
120
|
+
$ git commit -m "Your detailed description of your changes."
|
|
121
|
+
|
|
122
|
+
This project makes use of various pre-commit hooks. Importantly, this code-base conforms to `black` formatting.
|
|
123
|
+
If your test fails, follow the instructions on how to fix any problems, and then repeat the commit command. In some cases, the pre-commit hooks will automatically fix all problems. In such cases, the changes need to be staged with `git add .` again then commit again. Since the failed commit didn't go through, feel free to use the same commit message as before.
|
|
124
|
+
|
|
125
|
+
To run all the pre-commit hooks without making a commit (e.g. to check if the auto-fixes solved all the problems), you can run::
|
|
126
|
+
|
|
127
|
+
$ pre-commit run --all-files
|
|
128
|
+
|
|
129
|
+
When all checks pass and your changes are committed sucessfully, you may push your changes to the remote version of your branch::
|
|
130
|
+
|
|
131
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
132
|
+
|
|
133
|
+
7. Submit a pull request through the GitHub website. Provide a detailed description of the changes you have made to ensure that they can be merged efficiently.
|
|
134
|
+
|
|
135
|
+
Pull Request Guidelines
|
|
136
|
+
-----------------------
|
|
137
|
+
|
|
138
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
139
|
+
|
|
140
|
+
1. The pull request should include tests.
|
|
141
|
+
2. If the pull request adds functionality, the docs should be updated. Put
|
|
142
|
+
your new functionality into a function with a docstring, and add the
|
|
143
|
+
feature to the appropriate location in the documentation.
|
|
144
|
+
|
|
145
|
+
Tips
|
|
146
|
+
----
|
|
147
|
+
|
|
148
|
+
To run a subset of tests::
|
|
149
|
+
|
|
150
|
+
$ pytest tests.test_hydrobot
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
Releasing to PyPI
|
|
154
|
+
------------------
|
|
155
|
+
|
|
156
|
+
A reminder for the maintainers on how to deploy.
|
|
157
|
+
|
|
158
|
+
1. Make sure all your changes are committed (including an entry in HISTORY.rst, documentation, etc.).
|
|
159
|
+
|
|
160
|
+
2. Then run `bump2version` to increment the release tags in the appropriate places. Consider running `bump2version --dry-run` to make sure there are no errors first::
|
|
161
|
+
|
|
162
|
+
$ bump2version --dry-run --verbose patch # Optional, just to test if it runs without errors
|
|
163
|
+
$ bump2version patch # For real this time. Possible values: major / minor / patch
|
|
164
|
+
|
|
165
|
+
3. Install the local development version of the package (make sure you're in the package root directory where setup.py is). You should see the package install with the correct version number.::
|
|
166
|
+
|
|
167
|
+
$ pip install -e .
|
|
168
|
+
|
|
169
|
+
4. Run the tests to see that they still work with this local install::
|
|
170
|
+
|
|
171
|
+
$ pytest
|
|
172
|
+
|
|
173
|
+
5. Push the commit::
|
|
174
|
+
|
|
175
|
+
$ git push
|
|
176
|
+
|
|
177
|
+
6. Push the tags to GitHub. (Note that we don't actually release on GitHub though. We want to keep the releases to PyPI so there's less ambiguity about how to install it.)::
|
|
178
|
+
|
|
179
|
+
$ git push --tags
|
|
180
|
+
|
|
181
|
+
7. Do the release.
|
|
182
|
+
|
|
183
|
+
* If using the Makefile (i.e. you have `make` installed and can run `make help` without errors) you can simply run::
|
|
184
|
+
|
|
185
|
+
$ make release
|
|
186
|
+
|
|
187
|
+
* Otherwise, you would have to do the release manually.
|
|
188
|
+
|
|
189
|
+
a. Clean up all the artifact files::
|
|
190
|
+
|
|
191
|
+
$ rm -fr build/
|
|
192
|
+
$ rm -fr dist/
|
|
193
|
+
$ rm -fr .eggs/
|
|
194
|
+
$ find . -name '*.egg-info' -exec rm -fr {} +
|
|
195
|
+
$ find . -name '*.egg' -exec rm -f {} +
|
|
196
|
+
$ find . -name '*.pyc' -exec rm -f {} +
|
|
197
|
+
$ find . -name '*.pyo' -exec rm -f {} +
|
|
198
|
+
$ find . -name '*~' -exec rm -f {} +
|
|
199
|
+
$ find . -name '__pycache__' -exec rm -fr {} +
|
|
200
|
+
$ rm -fr .pytest_cache
|
|
201
|
+
|
|
202
|
+
b. Build the source and wheel packages::
|
|
203
|
+
|
|
204
|
+
$ python setup.py sdist
|
|
205
|
+
$ python setup.py bdist_wheel
|
|
206
|
+
$ ls -l dist
|
|
207
|
+
|
|
208
|
+
c. Use twine to release to PyPI. You'll be asked for authentication. Use the username `__token__`, along with the API key I gave you.::
|
|
209
|
+
|
|
210
|
+
$ twine upload dist/*
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
=======
|
|
2
|
-
History
|
|
3
|
-
=======
|
|
4
|
-
|
|
5
|
-
0.1.0 (2023-09-27)
|
|
6
|
-
------------------
|
|
7
|
-
|
|
8
|
-
* First release on PyPI.
|
|
9
|
-
|
|
10
|
-
0.2.0 (2023-09-27)
|
|
11
|
-
------------------
|
|
12
|
-
|
|
13
|
-
* Hydrobot now annals the "Processor" class, which has capabilities to process data within the single object. Class_script gives an example of this method of processing.
|
|
14
|
-
|
|
15
|
-
0.2.1 (2023-09-27)
|
|
16
|
-
------------------
|
|
17
|
-
|
|
18
|
-
* Including the config files, + getting wheeled boi
|
|
19
|
-
|
|
20
|
-
0.2.2 (2023-09-27)
|
|
21
|
-
------------------
|
|
22
|
-
|
|
23
|
-
* Ok, actually including the config files (promise, but my fingers are crossed behind my back)
|
|
24
|
-
|
|
25
|
-
0.2.3 (2023-11-30)
|
|
26
|
-
------------------
|
|
27
|
-
|
|
28
|
-
* Fixed some tests and hopefully fixed the config file issue this time.
|
|
1
|
+
=======
|
|
2
|
+
History
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
0.1.0 (2023-09-27)
|
|
6
|
+
------------------
|
|
7
|
+
|
|
8
|
+
* First release on PyPI.
|
|
9
|
+
|
|
10
|
+
0.2.0 (2023-09-27)
|
|
11
|
+
------------------
|
|
12
|
+
|
|
13
|
+
* Hydrobot now annals the "Processor" class, which has capabilities to process data within the single object. Class_script gives an example of this method of processing.
|
|
14
|
+
|
|
15
|
+
0.2.1 (2023-09-27)
|
|
16
|
+
------------------
|
|
17
|
+
|
|
18
|
+
* Including the config files, + getting wheeled boi
|
|
19
|
+
|
|
20
|
+
0.2.2 (2023-09-27)
|
|
21
|
+
------------------
|
|
22
|
+
|
|
23
|
+
* Ok, actually including the config files (promise, but my fingers are crossed behind my back)
|
|
24
|
+
|
|
25
|
+
0.2.3 (2023-11-30)
|
|
26
|
+
------------------
|
|
27
|
+
|
|
28
|
+
* Fixed some tests and hopefully fixed the config file issue this time.
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
GNU GENERAL PUBLIC LICENSE
|
|
2
|
-
Version 3, 29 June 2007
|
|
3
|
-
|
|
4
|
-
Python Package providing a suite of processing tools and utilities for Hilltop hydrological data.
|
|
5
|
-
Copyright (C) 2023 Nic Mostert
|
|
6
|
-
|
|
7
|
-
This program is free software: you can redistribute it and/or modify
|
|
8
|
-
it under the terms of the GNU General Public License as published by
|
|
9
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
(at your option) any later version.
|
|
11
|
-
|
|
12
|
-
This program is distributed in the hope that it will be useful,
|
|
13
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
GNU General Public License for more details.
|
|
16
|
-
|
|
17
|
-
You should have received a copy of the GNU General Public License
|
|
18
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
-
|
|
20
|
-
Also add information on how to contact you by electronic and paper mail.
|
|
21
|
-
|
|
22
|
-
You should also get your employer (if you work as a programmer) or school,
|
|
23
|
-
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
24
|
-
For more information on this, and how to apply and follow the GNU GPL, see
|
|
25
|
-
<http://www.gnu.org/licenses/>.
|
|
26
|
-
|
|
27
|
-
The GNU General Public License does not permit incorporating your program
|
|
28
|
-
into proprietary programs. If your program is a subroutine library, you
|
|
29
|
-
may consider it more useful to permit linking proprietary applications with
|
|
30
|
-
the library. If this is what you want to do, use the GNU Lesser General
|
|
31
|
-
Public License instead of this License. But first, please read
|
|
32
|
-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Python Package providing a suite of processing tools and utilities for Hilltop hydrological data.
|
|
5
|
+
Copyright (C) 2023 Nic Mostert
|
|
6
|
+
|
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
|
8
|
+
it under the terms of the GNU General Public License as published by
|
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
(at your option) any later version.
|
|
11
|
+
|
|
12
|
+
This program is distributed in the hope that it will be useful,
|
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
GNU General Public License for more details.
|
|
16
|
+
|
|
17
|
+
You should have received a copy of the GNU General Public License
|
|
18
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
+
|
|
20
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
21
|
+
|
|
22
|
+
You should also get your employer (if you work as a programmer) or school,
|
|
23
|
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
24
|
+
For more information on this, and how to apply and follow the GNU GPL, see
|
|
25
|
+
<http://www.gnu.org/licenses/>.
|
|
26
|
+
|
|
27
|
+
The GNU General Public License does not permit incorporating your program
|
|
28
|
+
into proprietary programs. If your program is a subroutine library, you
|
|
29
|
+
may consider it more useful to permit linking proprietary applications with
|
|
30
|
+
the library. If this is what you want to do, use the GNU Lesser General
|
|
31
|
+
Public License instead of this License. But first, please read
|
|
32
|
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
include AUTHORS.rst
|
|
2
|
-
include CONTRIBUTING.rst
|
|
3
|
-
include HISTORY.rst
|
|
4
|
-
include LICENSE
|
|
5
|
-
include README.rst
|
|
6
|
-
|
|
7
|
-
recursive-include tests *
|
|
8
|
-
recursive-include config *
|
|
9
|
-
recursive-exclude * __pycache__
|
|
10
|
-
recursive-exclude * *.py[co]
|
|
11
|
-
|
|
12
|
-
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
|
|
1
|
+
include AUTHORS.rst
|
|
2
|
+
include CONTRIBUTING.rst
|
|
3
|
+
include HISTORY.rst
|
|
4
|
+
include LICENSE
|
|
5
|
+
include README.rst
|
|
6
|
+
|
|
7
|
+
recursive-include tests *
|
|
8
|
+
recursive-include config *
|
|
9
|
+
recursive-exclude * __pycache__
|
|
10
|
+
recursive-exclude * *.py[co]
|
|
11
|
+
|
|
12
|
+
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
|