From ec8e6ab48914823154bce6d83feb6460004f16f7 Mon Sep 17 00:00:00 2001 From: Viktor Dick Date: Tue, 10 Oct 2023 20:39:35 +0200 Subject: [PATCH] Switch to using pyproject.toml --- .github/workflows/check.yml | 20 +----------------- pyproject.toml | 42 +++++++++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 27 ------------------------ tox.ini | 2 -- 5 files changed, 43 insertions(+), 50 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 73ca79e..1d19c6a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6894d7f --- /dev/null +++ b/pyproject.toml @@ -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] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2a9acf1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 1d16b78..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- - -import setuptools - -reqs = ['filelock', 'ZODB', 'Zope'] - -setuptools.setup( - name='perfact-zodbsync', - version='22.2.4', - description='Zope Recorder and Playback', - long_description=''' ''', - author='Ján Jockusch et.al.', - author_email='devel@perfact.de', - packages=setuptools.find_packages('.'), - package_data={ - }, - entry_points={ - 'console_scripts': [ - 'perfact-zoperecord=perfact.zodbsync.scripts:zoperecord', - 'perfact-zopeplayback=perfact.zodbsync.scripts:zopeplayback', - 'zodbsync=perfact.zodbsync.scripts:zodbsync', - ] - }, - license='GPLv2', - platforms=['Linux', ], - install_requires=reqs, -) diff --git a/tox.ini b/tox.ini index 8403c56..7dce76b 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,6 @@ envlist = py3 [gh-actions] python = - 3.6: py3 - 3.7: py3 3.8: py3 3.9: py3 3.10: py3