diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f1ef86e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,56 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.package-dir] +"testgres.operations" = "src" + +[tool.flake8] +extend-ignore = ["E501"] +exclude = [".git", "__pycache__", "env", "venv"] + +[project] +name = "testgres.os_ops" +version = "1.0.0" + +description = "Testgres subsystem to work with OS" +readme = "README.md" + +# [2026-01-05] +# This old format is used to ensure compatibility with Python 3.7. +license = {text = "PostgreSQL"} + +authors = [ + {name = "Postgres Professional", email = "testgres@postgrespro.ru"}, +] + +keywords = [ + 'testgres', +] + +requires-python = ">=3.7.17" + +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: Unix", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Testing", +] + +dependencies = [ + "psutil", + "six>=1.9.0", + "testgres.common>=0.0.3,<1.0.0", +] + +[project.urls] +"HomePage" = "https://github.com/postgrespro/testgres.os_ops" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index dbf5638..0000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[metadata] -description_file = README.md - -[flake8] -ignore = E501 -exclude = .git,__pycache__,env,venv diff --git a/setup.py b/setup.py deleted file mode 100644 index ff18f40..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -# Get contents of README file -with open("README.md", "r") as f: - readme = f.read() - -# Basic dependencies -install_requires = [ - "psutil", - "six>=1.9.0", - "testgres.common>=0.0.2,<1.0.0", -] - -setup( - version="1.0.0", - name="testgres.os_ops", - packages=[ - "testgres.operations", - ], - package_dir={"testgres.operations": "src"}, - description='Testgres subsystem to work with OS', - url='https://github.com/postgrespro/testgres.os_ops', - long_description=readme, - long_description_content_type='text/markdown', - license='PostgreSQL', - author='Postgres Professional', - author_email='testgres@postgrespro.ru', - keywords=['testgres'], - install_requires=install_requires, -) diff --git a/tests/requirements.txt b/tests/requirements.txt index 83532f5..5219a1f 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,3 +5,4 @@ six testgres.common>=0.0.2,<1.0.0 black flake8 +flake8-pyproject