-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1041 from OpenEnergyPlatform/release/v0.10.2
Release v0.10.2
- Loading branch information
Showing
150 changed files
with
2,455 additions
and
34,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
"extends": ["google"], | ||
"plugins": ["jsdoc"], | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"camelcase": 0, | ||
"prefer-const": 0, | ||
"valid-jsdoc": [2, { "prefer": { "return": "returns" } }], | ||
"quotes": [0, "single", "double"], | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
"anonymous": "never", | ||
"named": "never", | ||
"asyncArrow": "never" | ||
} | ||
], | ||
"linebreak-style": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
exclude: ^$ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
args: ["--max-line-length=88", "--ignore=E20,W503"] # black compatible | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.14.0 | ||
hooks: | ||
- id: eslint | ||
additional_dependencies: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
args: ["--fix"] | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.6.2 | ||
hooks: | ||
- id: prettier | ||
files: \.(css|less|md|json|sql)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,18 +28,27 @@ The project can be linked in an issue or pull request via the menu "Projects" | |
## Basic-Steps for deploy and release (publishing a new release) | ||
Before see How to [Contribute](https://github.com/OpenEnergyPlatform/oeplatform/blob/develop/CONTRIBUTING.md) | ||
|
||
 | ||
|
||
1. Merge all feature and hotfix branches into `develop` | ||
1. Starting out in the `develop` branch, make a release candidate branch (e.g., `release/vx.x.x`) | ||
and pull request it into `master` with the following updates: | ||
1. Update the oeplatform/versions/changelogs/ [`current.md`](https://github.com/OpenEnergyPlatform/oeplatform/blob/develop/versions/changelogs/current.md) (see the examples of previous releases) | ||
- Change filename to release version (x_x_x.md) | ||
1. Confirm that the PR passes all tests and checks | ||
1. Once successful, delete the tag, and merge the candidate PR into `master` on Github | ||
1. Switch to the now-updated master branch: `git checkout master` and `git pull upstream master` | ||
1. Update the oeplatform/versions/changelogs/ [`current.md`](https://github.com/OpenEnergyPlatform/oeplatform/blob/develop/versions/changelogs/current.md) (see the examples of previous releases) | ||
- Change filename to release version (x_x_x.md) | ||
- Copy template to `current.md` | ||
- Update `VERSION` with lastest version number | ||
1. Deploy release branch on TEOP. | ||
- Test the changes | ||
- Create a hotfix and merge changes into the release branch | ||
1. merge release branch into `master` and `develop` | ||
- make sure to pull before merge | ||
1. Deploy the master branch on production OEP | ||
1. Tag the release number: `git tag v<release version>`, e.g., `git tag v1.2.0` | ||
- `versioneer` automatically updates the version number based on the tag | ||
- this is now the official tagged commit | ||
1. Push the tag upstream: `git push upstream --tags` | ||
- Push the tag upstream: `git push upstream --tags` | ||
- Alternatievely: tag on github platform while creating release | ||
1. Make a new release on Github | ||
- https://github.com/OpenEnergyPlatform/oeplatform/releases/new | ||
- make sure that you choose the tag name defined above | ||
- copy the release summary from changelog into the description box | ||
1. Announce it on our mailing list: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.10.1 | ||
0.10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,18 +36,19 @@ def setUpClass(cls): | |
|
||
super(APITestCase, cls).setUpClass() | ||
cls.user, _ = myuser.objects.get_or_create( | ||
name="MrTest", email="[email protected]" | ||
name="MrTest", email="[email protected]", did_agree=True, is_mail_verified=True | ||
) | ||
cls.user.save() | ||
cls.token = Token.objects.get(user=cls.user) | ||
|
||
cls.other_user, _ = myuser.objects.get_or_create( | ||
name="NotMrTest", email="[email protected]" | ||
name="NotMrTest", email="[email protected]", did_agree=True, is_mail_verified=True | ||
) | ||
cls.other_user.save() | ||
cls.other_token = Token.objects.get(user=cls.other_user) | ||
|
||
cls.client = Client() | ||
|
||
|
||
def assertDictEqualKeywise(self, d1, d2, excluded=None): | ||
if not excluded: | ||
|
@@ -168,3 +169,4 @@ def drop_table(self, schema=None, table=None): | |
self.assertEqual( | ||
resp.status_code, 200, resp.json().get("reason", "No reason returned") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.