diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index b5a845a20..158b13d2e 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -89,6 +89,7 @@ jobs: if: runner.os == 'Linux' && matrix.platform == 'x86_64' run: | echo "CIBW_BUILD=cp312*_x86_64" >> $GITHUB_ENV + echo "CIBW_BEFORE_BUILD='python -m pip install 'cython' Cython>=3.0.11,<4'" >> $GITHUB_ENV - name: Overwrite for Linux PyPy if: runner.os == 'Linux' && matrix.platform == 'PyPy' diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..79ce6646c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,73 @@ +[build-system] +requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2", "numpy", "wheel"] + +build-backend = "setuptools.build_meta" + + setup( + name='scylla-driver', + version=__version__, + description='Scylla Driver for Apache Cassandra', + long_description=long_description, + long_description_content_type='text/x-rst', + url='https://github.com/scylladb/python-driver', +# packages=[ +# 'cassandra', 'cassandra.io', 'cassandra.cqlengine', 'cassandra.graph', +# 'cassandra.datastax', 'cassandra.datastax.insights', 'cassandra.datastax.graph', +# 'cassandra.datastax.graph.fluent', 'cassandra.datastax.cloud', 'cassandra.scylla', +# 'cassandra.column_encryption' +# ], + include_package_data=True, + install_requires=dependencies, + extras_require=_EXTRAS_REQUIRE, + tests_require=['nose', 'mock>=2.0.0', 'PyYAML', 'pytz', 'sure'], + classifiers=, + **kw) + + +[project] +name = "scylla-driver" +authors = [ + {name="ScyllaDB"}, +] +description = "Scylla Driver for Apache Cassandra" +requires-python = ">=3.8" +keywords = ["cassandra","cql","orm","dse","graph"] +classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + '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 :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Software Development :: Libraries :: Python Modules' +] +dependencies = [ + "numpy", + "scipy", + "matplotlib", + "scikit-image", +] +dynamic = ["version"] + +[project.urls] +"Documentation" = 'https://scylladb.github.io/python-driver/", +"Source" = "https://github.com/scylladb/python-driver/", +"Issues" = "https://github.com/scylladb/python-driver/issues", + +[tool.setuptools] +include-package-data = true +zip-safe = false + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +pysolid = ["*.for"]