Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[build-system]
requires = [
"setuptools",
"wheel",
"cffi ; platform_python_implementation == 'CPython'",
"cffi @ git+https://github.com/python-cffi/cffi.git ; platform_python_implementation == 'CPython' and python_version >= '3.13a0'",
]
build-backend = "setuptools.build_meta"


[project]
name = "persistent"
version = "5.3.dev0"
dynamic = ["readme"]
authors = [
{name = "Zope Foundation and Contributors", email = "[email protected]"},
]
description = "Translucent persistent objects"
requires-python = ">=3.7"
license = {text = "ZPL 2.1"}
classifiers = [
"Development Status :: 6 - Mature",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: ZODB",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
]
dependencies = [
"zope.deferredimport",
"zope.interface",
"cffi ; platform_python_implementation == 'CPython'",
"cffi @ git+https://github.com/python-cffi/cffi.git ; platform_python_implementation == 'CPython' and python_version >= '3.13a0'",
]

[project.urls]
documentation = "https://persistent.readthedocs.io"
repository = "https://github.com/zopefoundation/persistent/"
issue_tracker = "https://github.com/zopefoundation/persistent/issues"
changelog = "https://github.com/zopefoundation/persistent/blob/master/CHANGES.rst"

[project.optional-dependencies]
test = [
"zope.testrunner",
"manuel",
]
testing = [] # backward-compatibility
docs = [
"Sphinx",
"repoze.sphinx.autointerface",
"sphinx_rtd_theme",
]


[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.rst"]}

[tool.setuptools.packages.find]
where = ["src"]
include = ["persistent"]
75 changes: 2 additions & 73 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,12 @@
#
##############################################################################

import os
import platform

from setuptools import Extension
from setuptools import find_packages
from setuptools import setup


version = '5.3.dev0'

here = os.path.abspath(os.path.dirname(__file__))


def _read_file(filename):
with open(os.path.join(here, filename)) as f:
return f.read()


README = (_read_file('README.rst') + '\n\n' + _read_file('CHANGES.rst'))


define_macros = (
# We currently use macros like PyBytes_AS_STRING
# and internal functions like _PyObject_GetDictPtr
Expand Down Expand Up @@ -86,64 +71,8 @@ def _read_file(filename):
'src/persistent/ring.h',
]

setup(name='persistent',
version=version,
description='Translucent persistent objects',
long_description=README,
classifiers=[
"Development Status :: 6 - Mature",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: ZODB",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
],
author="Zope Foundation and Contributors",
author_email="[email protected]",
url="https://github.com/zopefoundation/persistent/",
project_urls={
'Documentation': 'https://persistent.readthedocs.io',
'Issue Tracker': 'https://github.com/zopefoundation/persistent/issues',
'Sources': 'https://github.com/zopefoundation/persistent',
},
license="ZPL 2.1",
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
setup(
ext_modules=ext_modules,
cffi_modules=['src/persistent/_ring_build.py:ffi'],
headers=headers,
extras_require={
'test': [
'zope.testrunner',
'manuel',
],
'testing': (),
'docs': [
'Sphinx',
'repoze.sphinx.autointerface',
'sphinx_rtd_theme',
],
},
python_requires='>=3.7',
install_requires=[
'zope.deferredimport',
'zope.interface',
"cffi ; platform_python_implementation == 'CPython'",
],
setup_requires=[
"cffi ; platform_python_implementation == 'CPython'",
],
entry_points={})
)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ envlist =
py310,py310-pure
py311,py311-pure
py312,py312-pure
py313,py313-pure
pypy3
docs
coverage
Expand Down