-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Migrate from Poetry to PDM for handling the internal dependencies a…
…nd build (#148)
- Loading branch information
Showing
9 changed files
with
135 additions
and
80 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
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,50 @@ | ||
name: Test Redistribute | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
test-redistribute: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
package: | ||
- asyncer | ||
steps: | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install build dependencies | ||
run: pip install build | ||
- name: Build source distribution | ||
env: | ||
TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }} | ||
run: python -m build --sdist | ||
- name: Decompress source distribution | ||
run: | | ||
cd dist | ||
tar xvf asyncer*.tar.gz | ||
- name: Install test dependencies | ||
run: | | ||
cd dist/asyncer*/ | ||
pip install -r requirements-tests.txt | ||
- name: Run source distribution tests | ||
run: | | ||
cd dist/asyncer*/ | ||
bash scripts/test.sh | ||
- name: Build wheel distribution | ||
run: | | ||
cd dist | ||
pip wheel --no-deps asyncer*.tar.gz |
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
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,17 @@ | ||
-e . | ||
|
||
mkdocs-material==9.4.7 | ||
mdx-include >=1.4.1,<2.0.0 | ||
mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0 | ||
mkdocs-redirects>=1.2.1,<1.3.0 | ||
pyyaml >=5.3.1,<7.0.0 | ||
# For Material for MkDocs, Chinese search | ||
jieba==0.42.1 | ||
# For image processing by Material for MkDocs | ||
pillow==10.1.0 | ||
# For image processing by Material for MkDocs | ||
cairosvg==2.7.0 | ||
mkdocstrings[python]==0.23.0 | ||
griffe-typingdoc==0.2.2 | ||
# For griffe, it formats with black | ||
black==23.3.0 |
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,6 @@ | ||
-e . | ||
|
||
pytest >=7.0.1,<8.0.0 | ||
coverage[toml] >=6.2,<8.0 | ||
mypy ==1.4.1 | ||
ruff ==0.2.0 |
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,6 @@ | ||
-e . | ||
|
||
-r requirements-tests.txt | ||
-r requirements-docs.txt | ||
|
||
pre-commit >=2.17.0,<4.0.0 |