Repository: GliderGeek/opensoar (language: python)

Issue:
re-instate auto-deploys
in the old travis-ci setup, deployment were automatically handled on tag

travis didn't work anymore, so i switched to github actions, but the deployment part is not yet implemented


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 6a99631..fb0d0c9 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,19 +7,29 @@ Added
 ~~~~~~
 Changed
 ~~~~~~~~
-* Introduce github actions for tests instead of TravisCI
-* Replace pygeodesy with pyproj for speed-up (`calculate_distance` and `calculate_bearing` are replaced with `calculate_distance_bearing`, which is based on pyproj)
 Deprecated
 ~~~~~~~~~~~~
 Removed
 ~~~~~~~~~
-* StreplaDaily support: site no longer online
 Fixed
 ~~~~~~~~
-* is -> == on literals
 Security
 ~~~~~~~~~
 
+v1.0.0
+------------------------
+Changed
+~~~~~~~~
+* Replace TravisCI with github actions for automated tests and publish
+* Replace pygeodesy with pyproj for speed-up
+Removed
+~~~~~~~~~
+* StreplaDaily support: site no longer online
+* `calculate_distance` and `calculate_bearing` (replaced by `calculate_distance_bearing`)
+Fixed
+~~~~~~~~
+* is -> == on literals
+
 v0.1.7
 ------------------------
 Fixed
diff --git a/README.rst b/README.rst
index 5751ee1..dbae11c 100644
--- a/README.rst
+++ b/README.rst
@@ -46,3 +46,11 @@ Example race task
     trip = Trip(task, trace)
     task_distance_covered = sum(trip.distances)
     
+
+Releasing
+==========
+
+- add version number in changelog
+- change `__version__` in opensoar/version.py
+- merge to master
+- push tag, ci publishes to pypi
diff --git a/opensoar/version.py b/opensoar/version.py
index 124e462..2e44eee 100644
--- a/opensoar/version.py
+++ b/opensoar/version.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.7'
+__version__ = '1.0.0rc2'
diff --git a/setup.py b/setup.py
index e778e78..674ae50 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
     long_description=long_description,
     install_requires=[
         'aerofiles>=0.4.1',
-        'beautifulsoup4>=4.6.0'
-        'pyproj>=3.4.1'
+        'beautifulsoup4>=4.6.0',
+        'pyproj>=3.4.1',
     ]
 )


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e3e0ed4..5e3efd5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,3 +20,10 @@ jobs:
         pip install -r requirements.txt
     - name: Run tests
       run: python -m unittest discover -b --start-directory ./tests
+    - name: build dist
+      run: python3 -m pip install --upgrade build && python3 -m build
+    - name: Publish package
+      if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
+      uses: pypa/gh-action-pypi-publish@release/v1
+      with:
+        password: ${{ secrets.PYPI_API_TOKEN }}