Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
aoirint committed May 27, 2022
1 parent cbdc0a4 commit 3d3b741
Show file tree
Hide file tree
Showing 14 changed files with 672 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish a package to PyPI

on:
release:
types:
- created

env:
VERSION: ${{ github.event.release.tag_name != '' && github.event.release.tag_name || '0.0.0' }}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Dependencies
run: |
pip3 install -r requirements.txt
pip3 install wheel
- name: Replace version
run: |
sed -i "s/__VERSION__ = '0.0.0'/__VERSION__ = '${{ env.VERSION }}'/" aoirint_jmapy/__init__.py
- name: Build Package
run: python3 setup.py sdist bdist_wheel

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
__pycache__/
.pytest_cache/
.mypy_cache/

/build
/dist
/*.egg-info

/venv
/testdata
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.md
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# aoirint_jmapy
3 changes: 3 additions & 0 deletions aoirint_jmapy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__VERSION__ = '0.0.0'

from .api import JmaApi
Loading

0 comments on commit 3d3b741

Please sign in to comment.