-
Notifications
You must be signed in to change notification settings - Fork 1
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 #71 from ChalkLab/split-release-yamls
Split release yamls
- Loading branch information
Showing
6 changed files
with
87 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release to PyPi | ||
|
||
env: | ||
POETRY_VERSION: 1.1.4 | ||
|
||
on: | ||
push: | ||
branches: 'master' | ||
tags: 'v[0-9]+.[0-9]+.[0-9]+-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.7"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry==${{ env.POETRY_VERSION }} | ||
poetry install | ||
- name: Build Python package and Upload to PyPi | ||
shell: bash -l {0} | ||
if: startsWith( github.ref, 'refs/tags/v') | ||
env: | ||
PYPI_TOKEN_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
poetry update | ||
poetry build | ||
poetry publish --username "__token__" --password $PYPI_TOKEN_PASSWORD |
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,41 @@ | ||
name: Release to TestPyPi | ||
|
||
env: | ||
POETRY_VERSION: 1.1.4 | ||
|
||
on: | ||
push: | ||
branches: 'master' | ||
tags: 'test-v[0-9]+.[0-9]+.[0-9]+-*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.7"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry==${{ env.POETRY_VERSION }} | ||
poetry install | ||
- name: Build Python package and Upload to TestPyPi | ||
shell: bash -l {0} | ||
if: startsWith( github.ref, 'refs/tags/test-') | ||
env: | ||
TEST_PYPI_TOKEN_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} | ||
run: | | ||
poetry update | ||
poetry build | ||
poetry config repositories.testpypi https://test.pypi.org/legacy/ | ||
poetry publish -r testpypi --username "__token__" --password $TEST_PYPI_TOKEN_PASSWORD |
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 |
---|---|---|
|
@@ -233,3 +233,5 @@ cython_debug/ | |
#.idea/ | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/python | ||
|
||
*.swp |
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,21 +1,2 @@ | ||
[metadata] | ||
# replace with your username: | ||
name = SciDataLib | ||
version = 0.2.5 | ||
url = https://github.com/ChalkLab/SciDataLib | ||
author = 'Dylan Johnson, Marshall McDonnell, Stuart Chalk' | ||
author_email = 'n01448636@unf.edu, mcdonnellmt@ornl.gov, schalk@unf.edu' | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
description = Python library for creation of SciData JSON-LD files | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
|
||
[options] | ||
python_requires = >=3.6 | ||
|
||
[flake8] | ||
# add options | ||
|