Skip to content

Commit

Permalink
Fix building of Python package (#121)
Browse files Browse the repository at this point in the history
* Try to fix building Python package

* Rename github Action

* Test to add an init

* More specific include

* Disable include

* Remove __init__

* Clean up
  • Loading branch information
hagenw committed Oct 12, 2023
1 parent 676c41f commit 1a9cd9b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build virtualenv
# PyPI package
- name: Build
run: |
python -m build
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ convention = 'google'
# ----- setuptools --------------------------------------------------------
#
# Find all (sub-)modules of the Python package
[tool.setuptools.packages]
find = {namespaces = false} # Disable implicit namespaces
[tool.setuptools.packages.find]

[tool.setuptools.dynamic]
version = {attr = 'sphinxcontrib.katex.__version__'}

0 comments on commit 1a9cd9b

Please sign in to comment.