Skip to content
Snippets Groups Projects
Commit 2602197e authored by Petrus Hyvönen's avatar Petrus Hyvönen
Browse files

Merge branch '12.0.2-packaging' into 'master'

12.0.2 minor edits

See merge request Petrush/orekit_jpype!2
parents a4af4680 c609c4d1
No related branches found
No related tags found
1 merge request!212.0.2 minor edits
Pipeline #5019 failed
name: Python Package using Conda # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
on: [push] name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs: jobs:
build-linux: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
max-parallel: 5 fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python 3.10 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: '3.10' python-version: ${{ matrix.python-version }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies - name: Install dependencies
run: | run: |
conda env update --file environment.yml --name base python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest - name: Test with pytest
run: | run: |
conda install pytest cd test; pytest
pytest
...@@ -72,5 +72,13 @@ Each model has advantages and disadvantages. ...@@ -72,5 +72,13 @@ Each model has advantages and disadvantages.
python -m build python -m build
To upload to pypi:
python3 -m twine upload --repository testpypi dist/*
To install:
pip install -i https://test.pypi.org/simple/ orekit-jpype==12.0.2.dev1
# usage # usage
See the example notebooks and the package test folder for examples. See the example notebooks and the package test folder for examples.
...@@ -30,7 +30,9 @@ dependencies = [ ...@@ -30,7 +30,9 @@ dependencies = [
] ]
[project.urls] [project.urls]
homepage = "https://gitlab.orekit.org/Petrush/orekit_jpype/-/tree/master" source = "https://gitlab.orekit.org/Petrush/orekit_jpype/-/tree/master"
homepage = "https://www.orekit.org/"
forum = "https://forum.orekit.org/"
[project.optional-dependencies] [project.optional-dependencies]
tests = [ tests = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment