Skip to content

Commit

Permalink
💃 Migrated to PDM.
Browse files Browse the repository at this point in the history
I heard that PDM > poetry.
  • Loading branch information
rentruewang committed Jan 10, 2024
1 parent 4c32354 commit 9c4420d
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 214 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
with:
python-version: "3.10"

- name: ⬇️ Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7"
- name: ⬇️ Python PDM
uses: pdm-project/setup-pdm@v3

- name: ⬇️ Python Dependencies
run: poetry install
run: pdm install

- name: 🚂 Activate environment
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- name: 🏃 autoflake, isort, black
run: |
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: ⬇️ Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.5.1"

- name: ⬇️ Python PDM
uses: pdm-project/setup-pdm@v3

- name: ⬇️ Python Dependencies
run: poetry install
run: pdm install

- name: 🚂 Activate environment
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- name: 📰 Publish docs
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: ⬆️ MkDocs deploy
run: poetry run python -m mkdocs gh-deploy --force
run: python -m mkdocs gh-deploy --force
10 changes: 4 additions & 6 deletions .github/workflows/typecheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
with:
python-version: "3.10"

- name: ⬇️ Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7"
- name: ⬇️ Python PDM
uses: pdm-project/setup-pdm@v3

- name: ⬇️ Python Dependencies
run: poetry install
run: pdm install

- name: 🚂 Activate environment
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- name: 🏃 mypy
run: mypy . --disable-error-code=import-untyped --disable-error-code=import-not-found
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
with:
python-version: "3.10"

- name: ⬇️ Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7"
- name: ⬇️ Python PDM
uses: pdm-project/setup-pdm@v3

- name: ⬇️ Python Dependencies
run: poetry install
run: pdm install

- name: 🚂 Activate environment
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- name: 🏃 pytest
run: pytest -xv
Expand Down
136 changes: 4 additions & 132 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ ipython_config.py
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
.pdm-python

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
Expand Down Expand Up @@ -164,134 +165,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Node JS gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
_build/
24 changes: 0 additions & 24 deletions LICENCE.md

This file was deleted.

Loading

0 comments on commit 9c4420d

Please sign in to comment.