Skip to content

Commit 6cf1292

Browse files
committed
ASA-150: init package repo
1 parent 723a546 commit 6cf1292

File tree

11 files changed

+39
-0
lines changed

11 files changed

+39
-0
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.x"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Build and publish
25+
env:
26+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28+
run: |
29+
python setup.py sdist bdist_wheel
30+
twine upload dist/*

.github/workflows/python-tests.yml

Whitespace-only changes.

.github/workflows/r-tests.yml

Whitespace-only changes.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# asa-package
2+
23
R and Python packages that wrap the ASA API

python-package/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Python package

python-package/asa-package/__init__.py

Whitespace-only changes.

python-package/asa-package/core.py

Whitespace-only changes.

python-package/setup.py

Whitespace-only changes.

r-package/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# R package

src/placeholder.txt

Whitespace-only changes.

tests/python/simple_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from unittest import TestCase
2+
3+
4+
class PythonTest(TestCase):
5+
def simple_test(self):
6+
self.assertTrue(True)

0 commit comments

Comments
 (0)