Skip to content

Commit

Permalink
Switch to using pyproject.toml (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktordick committed Oct 11, 2023
1 parent 8e410e8 commit 6d798a1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 50 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
legacy:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.6']
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
Expand Down
42 changes: 42 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[build-system]
requires = ["setuptools>=61.2", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
name = "perfact-zodbsync"
authors = [
{name="Ján Jockusch", email="jan.jockusch@perfact.de"},
{name="Viktor Dick", email="viktor.dick@perfact.de"},
]
description = "Synchronize ZODB objects with a file system structure"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Framework :: Zope",
"Topic :: Software Development :: Version Control :: Git",
]
dependencies = [
"filelock",
"ZODB",
"Zope",
]
dynamic = ["version"]
requires-python = ">=3.8"

[project.urls]
"Homepage" = "https://github.com/perfact/zodbsync"

[project.scripts]
perfact-zoperecord = "perfact.zodbsync.scripts:zoperecord"
perfact-zopeplayback = "perfact.zodbsync.scripts:zopeplayback"
zodbsync = "perfact.zodbsync.scripts:zodbsync"

[tool.distutils.bdist_wheel]
universal = 1

[tool.setuptools]
include-package-data = false

[tool.setuptools_scm]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

27 changes: 0 additions & 27 deletions setup.py

This file was deleted.

2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ envlist = py3

[gh-actions]
python =
3.6: py3
3.7: py3
3.8: py3
3.9: py3
3.10: py3
Expand Down

0 comments on commit 6d798a1

Please sign in to comment.