diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 705a123..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -recursive-include djangoql/static *.css *.png *.gif *.js *.map -recursive-include djangoql/templates *.html -recursive-include test_project *.py *.html -include README.rst LICENSE - -global-exclude .DS_Store __pycache__ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..063154d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "djangoql" +dynamic = ["version"] +description = "DjangoQL: Advanced search language for Django" +readme = "README.rst" +license = "MIT" +authors = [ + { name = "Denis Stebunov", email = "support@ivelum.com" }, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "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", +] +dependencies = [ + "ply>=3.8", +] + +[project.urls] +Homepage = "https://github.com/ivelum/djangoql/" + +[tool.hatch.version] +path = "djangoql/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/djangoql", + "/test_project", +] + +[tool.hatch.build.targets.wheel] +include = [ + "/djangoql", +] diff --git a/setup.py b/setup.py deleted file mode 100644 index 493641e..0000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python - -from setuptools import setup - -import djangoql - - -packages = ['djangoql'] -requires = ['ply>=3.8'] - -setup( - name='djangoql', - version=djangoql.__version__, - description='DjangoQL: Advanced search language for Django', - long_description=open('README.rst').read(), - long_description_content_type='text/x-rst', - author='Denis Stebunov', - author_email='support@ivelum.com', - url='https://github.com/ivelum/djangoql/', - packages=packages, - include_package_data=True, - install_requires=requires, - license=open('LICENSE').readline().strip(), - zip_safe=False, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Natural Language :: English', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - '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', - ], -)