-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use name FEniCS-preCICE adapter in setup.py description and README.md. * Modify documentation of installation and recommend to use PyPI. * Add Github Actions workflow .github/workflow/pythonpublish.yml for publishing on new tags. Co-authored-by: Benjamin Uekermann <[email protected]> Co-authored-by: ishaandesai <[email protected]>
- Loading branch information
1 parent
af3dd65
commit 81525a1
Showing
3 changed files
with
54 additions
and
10 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,27 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist | ||
twine upload dist/* |
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,3 +1,4 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
# from https://stackoverflow.com/a/9079062 | ||
|
@@ -9,10 +10,16 @@ | |
version = {} | ||
with open("fenicsprecice/version.py") as fp: | ||
exec(fp.read(), version) | ||
|
||
this_directory = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup(name='fenicsprecice', | ||
version=version['__version__'], | ||
description='FEniCS-preCICE adapter is a preCICE adapter for the open source computing platform FEniCS.', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/precice/fenics-adapter', | ||
author="Benjamin Rueth", | ||
author_email='[email protected]', | ||
|