generated from rl-institut/super-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from rl-institut/windows-install
Windows install
- Loading branch information
Showing
89 changed files
with
3,083 additions
and
224 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
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it using these metadata." | ||
authors: | ||
- family-names: "Hülk" | ||
given-names: "Ludwig" | ||
alias: "@Ludee" | ||
- family-names: "Dunks" | ||
given-names: "Ciara" | ||
alias: "@ciaradunks" | ||
affiliation: "Reiner Lemoine Institut" | ||
orcid: "https://orcid.org/0000-0003-4655-2321" | ||
title: "Super Repo" | ||
orcid: "" | ||
- family-names: "Duc" | ||
given-names: "Pierre-François" | ||
alias: "@Bachibouzouk" | ||
affiliation: "Reiner Lemoine Institut" | ||
orcid: "" | ||
title: "oemof-tabular plugins" | ||
type: software | ||
license: MIT | ||
version: 0.2.0 | ||
version: 0.0.1 | ||
doi: | ||
date-released: 2023-08-11 | ||
url: "https://github.com/rl-institut/super-repo/" | ||
date-released: 2024-02-28 | ||
url: "https://github.com/rl-institut/oemof-tabular-plugins" |
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 |
---|---|---|
|
@@ -178,3 +178,41 @@ Check that all steps have been documented: | |
- Entry in CHANGELOG.md? | ||
- PR is closed? | ||
- Issue is closed? | ||
|
||
### 6. Release | ||
|
||
As on pypi.org, one is allowed to upload a given version only once, one need a way to test a release before making it official. This is the purpose of a release candidate. | ||
Technically, a release candidate is similar to a normal release in the sense that someone can `pip install` them. However users will know that the release candidate is only there for test purposes. | ||
|
||
1. Open a working python3 virtual environment and make sure you have the latest versions of setuptools and wheel installed: | ||
```bash | ||
pip install --upgrade setuptools wheel twine | ||
``` | ||
2. Make sure you pulled the latest version of `dev` branch from `origin`: `git checkout dev`, `git pull origin`. | ||
3. Change the version (without committing) with release candidates (add `rc1` to the `version_num`, for example `vX.Y.Zrc1`) before the actual release, as a release with a specific version number can only be uploaded once on pypi. | ||
4. Move to the root of your local copy of this repository and prepare the python package and remove previous version distribution files with | ||
```bash | ||
python prepare_release.py | ||
``` | ||
The last two lines should show the result of the twine check: | ||
``` | ||
Checking dist/oemof_tabular_plugins-0.0.1rc2-py3-none-any.whl: PASSED | ||
Checking dist/oemof-tabular-plugins-0.0.1rc2.tar.gz: PASSED | ||
``` | ||
If one of the two is not `PASSED`, find out why and fix it. | ||
|
||
5. If the twine check passed you can now upload the package release candidate to pypi.org | ||
1. Check the credentials of our [email protected] account on https://pypi.org. | ||
2. Type `twine upload dist/*` | ||
3. Enter `__token__` for username and your pypi token for password. | ||
|
||
6. Create a fresh virtual environment and install the release candidate version of the package | ||
```bash | ||
pip install oemof-tabular-plugins==X.Y.Zrci | ||
``` | ||
Then try to run an example file (for the moment you could try `python examples/scripts/compute.py` from the root of this repository) | ||
|
||
7. If you notice errors in the uploaded package, fix them and bump up `rc1` to `rc2` and repeat steps 3. to 6. until you don't see any more errors. | ||
It is encouraged to make sure step 6.is also performed on a different os than yours (ask a colleague for example) | ||
8. If your release candidate works well, you can now do the actual release on `master`, followed by the release on pypi.org. You can also remove the folder `empty_folder` and its content. |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please leave your name for reference. | ||
message: "If you use this software, please leave your name for reference." | ||
authors: | ||
- family-names: "Hülk" | ||
given-names: "Ludwig" | ||
alias: "@Ludee" | ||
affiliation: "Reiner Lemoine Institut" | ||
orcid: "https://orcid.org/0000-0003-4655-2321" | ||
- family-names: "" | ||
given-names: "" | ||
alias: "" | ||
affiliation: "" | ||
orcid: "" | ||
|
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,5 @@ | ||
# Dispatch example for oemof-tabular | ||
|
||
Run `scripts/infer.py` from the datapackage root directory to add the | ||
meta data file `datapackage.json` after updating the resources of the | ||
datapackage. |
3 changes: 3 additions & 0 deletions
3
examples/scenarios/test_additional_cost_inputs/data/elements/bus.csv
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,3 @@ | ||
name;type;balanced | ||
test-bus-1;bus;true | ||
test-bus-2;bus;true |
3 changes: 3 additions & 0 deletions
3
examples/scenarios/test_additional_cost_inputs/data/elements/conversion.csv
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,3 @@ | ||
name;type;carrier;tech;capacity;capacity_cost;marginal_cost;carrier_cost;efficiency;from_bus;to_bus;expandable;capex;opex_fix;lifetime | ||
test-conv;conversion;conv;conv;0;9.72;1;1;1;test-bus-1;test-bus-2;True;100;1;20 | ||
test-conv-2;conversion;conv;conv;0;14.08;1;1;1;test-bus-1;test-bus-2;True;150;1;20 |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/dispatchable.csv
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,2 @@ | ||
name;type;carrier;tech;capacity;capacity_cost;bus;marginal_cost;carrier_cost;profile;output_parameters;expandable | ||
test-disp;dispatchable;disp;disp;0;0;test-bus-1;0;0;1;"{""custom_attributes"": {""renewable_factor"": 0}}";True |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/excess.csv
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,2 @@ | ||
name;type;bus;marginal_cost | ||
test-excess;excess;test-bus-2;0 |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/load.csv
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,2 @@ | ||
name;amount;profile;type;bus | ||
test-demand;100;test-load-profile;load;test-bus-2 |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/shortage.csv
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,2 @@ | ||
name;type;carrier;tech;bus;marginal_cost;capacity;output_parameters | ||
test-shortage;shortage;shortage;shortage;test-bus-1;100000;0;{} |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/storage.csv
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,2 @@ | ||
name;carrier;tech;storage_capacity;storage_capacity_potential;capacity;efficiency;capacity_cost;storage_capacity_cost;marginal_cost;type;bus;invest_relation_output_capacity;invest_relation_input_output;expandable;capex;opex_fix;lifetime | ||
test-batt;electricity;batt;0;100;0;0.92;0;23.59;1.8;storage;re-elec-bus;0.1;1;True;100;10;10 |
2 changes: 2 additions & 0 deletions
2
examples/scenarios/test_additional_cost_inputs/data/elements/volatile.csv
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,2 @@ | ||
name;type;carrier;tech;capacity;capacity_cost;bus;marginal_cost;profile;output_parameters;expandable;capex;opex_fix;lifetime | ||
test-vol;volatile;vol;vol;0;16.53;test-bus-1;0;1;"{""custom_attributes"": {""renewable_factor"": 1}}";True;200;2;30 |
25 changes: 25 additions & 0 deletions
25
examples/scenarios/test_additional_cost_inputs/data/sequences/load_profile.csv
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,25 @@ | ||
timeindex,test-load-profile | ||
2019-01-01T00:00:00Z,1 | ||
2019-01-01T01:00:00Z,1 | ||
2019-01-01T02:00:00Z,1 | ||
2019-01-01T03:00:00Z,1 | ||
2019-01-01T04:00:00Z,1 | ||
2019-01-01T05:00:00Z,1 | ||
2019-01-01T06:00:00Z,1 | ||
2019-01-01T07:00:00Z,1 | ||
2019-01-01T08:00:00Z,1 | ||
2019-01-01T09:00:00Z,1 | ||
2019-01-01T10:00:00Z,1 | ||
2019-01-01T11:00:00Z,1 | ||
2019-01-01T12:00:00Z,1 | ||
2019-01-01T13:00:00Z,1 | ||
2019-01-01T14:00:00Z,1 | ||
2019-01-01T15:00:00Z,1 | ||
2019-01-01T16:00:00Z,1 | ||
2019-01-01T17:00:00Z,1 | ||
2019-01-01T18:00:00Z,1 | ||
2019-01-01T19:00:00Z,1 | ||
2019-01-01T20:00:00Z,1 | ||
2019-01-01T21:00:00Z,1 | ||
2019-01-01T22:00:00Z,1 | ||
2019-01-01T23:00:00Z,1 |
Oops, something went wrong.