Skip to content

Commit 759d000

Browse files
committed
build: replace with poetry
1 parent 1fb2350 commit 759d000

6 files changed

Lines changed: 523 additions & 387 deletions

File tree

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
max_line_length = 65536
12+
13+
# The JSON files contain newlines inconsistently
14+
[*.{json,yaml,yml}]
15+
indent_size = 2
16+
insert_final_newline = ignore

.github/workflows/publish-pypi.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
name: Upload Python Distribution
2-
1+
name: Python package
32
on:
4-
release:
5-
types: [created]
6-
3+
push:
4+
tags:
5+
- "v*.*.*"
76
jobs:
8-
deploy:
9-
7+
build:
108
runs-on: ubuntu-latest
11-
129
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up Python
15-
uses: actions/setup-python@v2
16-
with:
17-
python-version: '3.x'
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
22-
- name: Build and publish
23-
env:
24-
TWINE_USERNAME: __token__
25-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
26-
run: |
27-
python setup.py sdist bdist_wheel
28-
twine upload dist/*
10+
- uses: actions/checkout@v3
11+
- name: Build and publish to pypi
12+
uses: JRubics/poetry-publish@v1.17
13+
with:
14+
pypi_token: ${{ secrets.PYPI_TOKEN }}

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)