diff --git a/++version.py b/++version.py index e2599c3d..413ef86d 100644 --- a/++version.py +++ b/++version.py @@ -47,7 +47,7 @@ new_setup = "" with open("pyproject.toml") as f: for line in f: - if 'version ="' in line: + if 'version = "' in line: new_setup += f'version = "{new_version_str}"\n' else: new_setup += line diff --git a/.github/workflows/push-packages.yml b/.github/workflows/push-packages.yml index 4a540f97..37c8059f 100644 --- a/.github/workflows/push-packages.yml +++ b/.github/workflows/push-packages.yml @@ -12,15 +12,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v1 with: python-version: "3.12" - - name: Build a binary wheel and a source tarball + - name: Build a wheel run: | - pip install wheel - python setup.py bdist_wheel - python setup.py sdist --formats=gztar + python3 -m pip install build + python3 -m build . - name: Publish to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master diff --git a/pyproject.toml b/pyproject.toml index 63d978c0..1b711cb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"] [project] name = "symfem" -version = "2023.8.2" +version = "2023.11.0" description = "a symbolic finite element definition library" readme = "README.md" requires-python = ">=3.8.0"