Skip to content

Commit 4eeb924

Browse files
authored
Merge pull request #6 from MarcinKonowalczyk/master
0.1.6
2 parents e3b4a7d + c43c4d4 commit 4eeb924

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2199
-1300
lines changed

.coveragerc

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

.flake8

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

.github/workflows/publish.yml

100644100755
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,17 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v3
17-
17+
1818
- name: Set up Python 3.9
1919
uses: actions/setup-python@v4
2020
with:
2121
python-version: 3.9
22-
23-
- name: Install uv
24-
run: curl -LsSf https://astral.sh/uv/install.sh | sh && uv --version
25-
26-
- name: Build
27-
run: |
28-
uv pip install --system --upgrade wheel setuptools build twine
29-
python -m build
30-
twine check dist/*
31-
32-
# --repository testpypi
33-
- name: Publish
34-
run: twine upload --verbose --username __token__ --password "$PYPI_TOKEN" dist/*
22+
23+
- name: install flit
24+
run: pip install flit
25+
26+
- name: build and publish
27+
run: flit publish --pypirc .pypirc
28+
env:
29+
FLIT_USERNAME: __token__
30+
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test-commit.yml

100644100755
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: test-commit
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
67

78
jobs:
89
build:
@@ -28,22 +29,19 @@ jobs:
2829
with:
2930
python-version: 3.9
3031

31-
- name: Install uv
32-
run: curl -LsSf https://astral.sh/uv/install.sh | sh && uv --version
33-
34-
- name: Install test dependencies
32+
- name: Install flit and uv
3533
run: |
36-
uv pip install --system --upgrade wheel setuptools
37-
uv pip install --system --upgrade coverage pytest black mypy
34+
pip install flit uv
35+
uv sync
3836
39-
- name: Install psll
40-
run: uv pip install --system "psll @ ."
37+
- name: Flit install
38+
run: flit install
4139

42-
- name: Check with black
43-
run: black --preview --check --verbose .
40+
- name: Check with ruff
41+
run: uv run ruff format --check .
4442

4543
- name: Check with mypy
46-
run: mypy --config-file ./mypy.ini psll
44+
run: uv run mypy
4745

4846
- name: Run tests and coverage
4947
run: bash test.sh -e -c
@@ -76,4 +74,4 @@ jobs:
7674
git config user.name github-actions
7775
git config user.email github-actions@github.com
7876
git commit -a -m "Automated report"
79-
git push
77+
git push

.github/workflows/test-pr.yml

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

.github/workflows/test-tox.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: test-tox
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
timeout-minutes: 10 # windows is slow
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 2.6
30+
31+
- name: Set up Python 3.9
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: 3.9
35+
36+
- name: Install uv and tox
37+
run: |
38+
pip install uv
39+
uv tool install tox --with tox-uv
40+
41+
- name: Run tox
42+
run: uv tool run tox

.gitignore

100644100755
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ Gemfile.lock
3737
*.egg-info
3838
.cspellcache
3939
dist
40-
psll/pyra.rb
40+
psll/pyra.rb
41+
*.*~
42+
.tox
43+
.python-version
44+
.ruff_cache
45+
.venv

.gitmodules

100644100755
File mode changed.

.pre-commit-config.yaml

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ repos:
1919
- id: mypy
2020
additional_dependencies:
2121
- more-itertools>=8.5.0
22-
- types-setuptools
2322
# Using bash makes this less portable, but also makes it use the correct
2423
# config file. Is there a better way to do this?
2524
entry: bash -c 'mypy --config-file ./mypy.ini .'

.pypirc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[distutils]
2+
index-servers =
3+
pypi
4+
testpypi
5+
6+
[pypi]
7+
repository = https://upload.pypi.org/legacy/
8+
username = __token__
9+
10+
[testpypi]
11+
repository = https://test.pypi.org/legacy/
12+
username = __token__

0 commit comments

Comments
 (0)