Skip to content

Commit 2a8f00c

Browse files
authored
Merge pull request #416 from RocketPy-Team/rel/v1.0.0
REL: The v1.0.0 is finally out
2 parents 171e61f + 1c57c28 commit 2a8f00c

File tree

280 files changed

+280224
-155282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+280224
-155282
lines changed

.github/auto-assign.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@ addReviewers: true
44
# Set to 'author' to add PR's author as a assignee
55
addAssignees: author
66

7-
# A list of reviewers to be added to PRs (GitHub user name)
7+
# A list of reviewers to be added to PRs (GitHub user name)
88
reviewers:
99
- Gui-FernandesBR
1010
- giovaniceotto
1111
- MateusStano
12-
12+
- phmbressan
13+
1314
# A number of reviewers added to the PR
1415
# Set 0 to add all the reviewers (default: 0)
1516
numberOfReviewers: 0
1617

1718
# A list of keywords to be skipped the process if PR's title include it
1819
skipKeywords:
1920
- wip
21+
- work in progress
22+
- draft

.github/pull_request_template.md

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,35 @@
44

55
## Pull request type
66

7-
Please check the type of change your PR introduces:
8-
9-
- [ ] Code base additions (bugfix, features)
10-
- [ ] Code maintenance (refactoring, formatting, renaming, tests)
11-
- [ ] ReadMe, Docs and GitHub maintenance
7+
- [ ] Code changes (bugfix, features)
8+
- [ ] Code maintenance (refactoring, formatting, tests)
9+
- [ ] ReadMe, Docs and GitHub updates
1210
- [ ] Other (please describe):
1311

14-
## Pull request checklist
15-
16-
Please check if your PR fulfills the following requirements, depending on the type of PR:
17-
18-
- ReadMe, Docs and GitHub maintenance:
19-
20-
- [ ] Spelling has been verified
21-
- [ ] Code docs are working correctly
12+
## Checklist
2213

23-
- Code base maintenance (refactoring, formatting, renaming):
14+
- [ ] Tests for the changes have been added (if needed)
15+
- [ ] Docs have been reviewed and added / updated
16+
- [ ] Lint (`black rocketpy/ tests/`) has passed locally
17+
- [ ] All tests (`pytest --runslow`) have passed locally
2418

25-
- [ ] Docs have been reviewed and added / updated if needed
26-
- [ ] Lint (`black rocketpy`) has passed locally and any fixes were made
27-
- [ ] All tests (`pytest --runslow`) have passed locally
28-
29-
- Code base additions (for bug fixes / features):
30-
31-
- [ ] Tests for the changes have been added
32-
- [ ] Docs have been reviewed and added / updated if needed
33-
- [ ] Lint (`black rocketpy`) has passed locally and any fixes were made
34-
- [ ] All tests (`pytest --runslow`) have passed locally
35-
36-
## What is the current behavior?
37-
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
19+
## Current behavior
20+
<!-- Describe current behavior or link to an issue. -->
3821

3922
Enter text here...
4023

41-
## What is the new behavior?
42-
<!-- Please describe the behavior or changes that are being added by this PR. -->
24+
## New behavior
25+
<!-- Describe changes introduced by this PR. -->
4326

4427
Enter text here...
4528

46-
## Does this introduce a breaking change?
29+
## Breaking change
4730
<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->
4831

4932
- [ ] Yes
5033
- [ ] No
5134

52-
## Other information
53-
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
35+
## Additional information
36+
<!-- Include any relevant details or screenshots. -->
5437

55-
Enter text here...
38+
Enter text here...

.github/workflows/auto-assign-projects

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/auto-assign.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
name: Auto Assign Issues and PRs once opened
1+
name: Auto Assign PRs once opened
22
on:
3-
issues:
4-
types: [opened]
53
pull_request:
64
types: [opened]
75
jobs:

.github/workflows/publish-to-pypi.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ permissions:
1212

1313
jobs:
1414
deploy:
15-
1615
runs-on: ubuntu-latest
1716

1817
steps:
19-
- uses: actions/checkout@v3
20-
- name: Set up Python
21-
uses: actions/setup-python@v3
22-
with:
23-
python-version: '3.7'
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install build
28-
- name: Build package
29-
run: python -m build
30-
- name: Publish package
31-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
32-
with:
33-
user: __token__
34-
password: ${{ secrets.PYPI_API_TOKEN }}
18+
- uses: actions/checkout@v3
19+
- name: Set up Python
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.8"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install build
27+
- name: Build package
28+
run: python -m build
29+
- name: Publish package
30+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
31+
with:
32+
user: __token__
33+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test_pytest.yaml

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: PyTest
22

3-
on:
3+
on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
66
paths:
7-
- '**.py'
7+
- "**.py"
88

99
jobs:
1010
fail_if_pull_request_is_draft:
11-
if: github.event.pull_request.draft == true
12-
runs-on: ubuntu-18.04
13-
steps:
11+
if: github.event.pull_request.draft == true
12+
runs-on: ubuntu-18.04
13+
steps:
1414
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
1515
run: exit 1
1616
run_pytest_and_doctest:
@@ -22,23 +22,28 @@ jobs:
2222
- macos-latest
2323
- windows-latest
2424
python-version:
25-
- 3.7
25+
- 3.8
2626
- 3.11
2727
steps:
28-
- uses: actions/checkout@v2
29-
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v2
31-
with:
32-
python-version: ${{ matrix.python-version }}
33-
- name: Install dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install -r requirements_test.txt
37-
- name: Build RocketPy
38-
run: |
39-
pip install -e .
40-
- name: Test with pytest
41-
run: |
42-
pytest
43-
cd rocketpy
44-
pytest --doctest-modules
28+
- uses: actions/checkout@v2
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
- name: Build RocketPy (without optional dependencies)
37+
run: |
38+
pip install .
39+
- name: Import rocketpy in python and test if it works
40+
run: |
41+
python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')"
42+
- name: Install optional dependencies
43+
run: |
44+
pip install -r requirements-tests.txt
45+
- name: Test with pytest
46+
run: |
47+
pytest
48+
cd rocketpy
49+
pytest --doctest-modules

.gitignore

Lines changed: 61 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
Byte-compiled / optimized / DLL files
1+
# Byte-compiled / optimized / DLL files
22
__pycache__/
3-
*.py[co]
3+
*.py[cod]
44
*$py.class
55

6+
# C extensions
7+
*.so
8+
69
# Distribution / packaging
710
.Python
811
build/
@@ -17,6 +20,7 @@ parts/
1720
sdist/
1821
var/
1922
wheels/
23+
share/python-wheels/
2024
*.egg-info/
2125
.installed.cfg
2226
*.egg
@@ -42,8 +46,10 @@ htmlcov/
4246
nosetests.xml
4347
coverage.xml
4448
*.cover
49+
*.py,cover
4550
.hypothesis/
4651
.pytest_cache/
52+
cover/
4753

4854
# Translations
4955
*.mo
@@ -53,6 +59,7 @@ coverage.xml
5359
*.log
5460
local_settings.py
5561
db.sqlite3
62+
db.sqlite3-journal
5663

5764
# Flask stuff:
5865
instance/
@@ -65,6 +72,7 @@ instance/
6572
docs/_build/
6673

6774
# PyBuilder
75+
.pybuilder/
6876
target/
6977

7078
# Jupyter Notebook
@@ -75,10 +83,38 @@ profile_default/
7583
ipython_config.py
7684

7785
# pyenv
78-
.python-version
79-
80-
# celery beat schedule file
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
81116
celerybeat-schedule
117+
celerybeat.pid
82118

83119
# SageMath parsed files
84120
*.sage.py
@@ -91,6 +127,8 @@ venv/
91127
ENV/
92128
env.bak/
93129
venv.bak/
130+
.venv*
131+
venv*
94132

95133
# Spyder project settings
96134
.spyderproject
@@ -107,22 +145,28 @@ venv.bak/
107145
.dmypy.json
108146
dmypy.json
109147

110-
# big weather
111-
CuritibaRioSaoPauloEnsemble_2018_ERA-5.nc
112-
CuritibaRioSaoPaulo_2018_ERA-5.nc
113-
CuritibaRioSaoPaulo_2017_ERA-5.nc
114-
CuritibaRioSaoPaulo_2016_ERA-5.nc
115-
CuritibaRioSaoPaulo_2015_ERA-5.nc
116-
fetchCuritibaRioSaoPaulo.py
117-
fetchCuritibaRioSaoPauloEnsemble.py
148+
# Pyre type checker
149+
.pyre/
150+
151+
# pytype static type analyzer
152+
.pytype/
153+
154+
# Cython debug symbols
155+
cython_debug/
118156

119-
# docs
157+
# Docs
120158
*.docx
121159
*.pdf
122160

123-
# VS Code
161+
# VSCode project settings
124162
.vscode/
125163

126-
# Tests
127-
naboI/
164+
# PyCharm
165+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
166+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
167+
# and can be added to the global gitignore or merged into this file. For a more nuclear
168+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
169+
.idea/
128170

171+
# Mac
172+
.DS_Store

.readthedocs.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ build:
1313

1414
# Build documentation in the docs/ directory with Sphinx
1515
sphinx:
16-
configuration: docs/conf.py
16+
configuration: docs/conf.py
1717

1818
# Optionally declare the Python requirements required to build your docs
1919
python:
20-
install:
21-
- requirements: docs/requirements.txt
22-
- requirements: requirements.txt
20+
install:
21+
- requirements: docs/requirements.txt
22+
- requirements: requirements.txt
23+
- method: pip
24+
path: .
25+
extra_requirements:
26+
- all

0 commit comments

Comments
 (0)