Skip to content

Commit

Permalink
build: use pyproject.toml and Hatch
Browse files Browse the repository at this point in the history
Use the `pyproject.toml` standard to specify project metadata,
dependencies and tool configuration. Use Hatch to build the project.
  • Loading branch information
jpvanhal committed Aug 7, 2023
1 parent 3c3f4dd commit 65306e5
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 71 deletions.
5 changes: 0 additions & 5 deletions .isort.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "SQLAlchemy-Searchable"
dynamic = ["version"]
description = "Provides fulltext search capabilities for declarative SQLAlchemy models."
readme = "README.rst"
license = "bsd-2-clause"
requires-python = ">=3.8"
authors = [
{ name = "Konsta Vesterinen", email = "konsta@fastmonkeys.com" },
]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"SQLAlchemy-Utils>=0.37.5",
"SQLAlchemy>=1.4,<1.5",
]

[project.urls]
Code = "https://github.com/kvesteri/sqlalchemy-searchable"
Documentation = "https://sqlalchemy-searchable.readthedocs.io/"
"Issue Tracker" = "http://github.com/kvesteri/sqlalchemy-searchable/issues"

[tool.hatch.version]
path = "sqlalchemy_searchable/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/CHANGES.rst",
"/docs",
"/sqlalchemy_searchable",
"/tests",
]
exclude = [
"/docs/_build",
]

[tool.isort]
known_first_party = ["sqlalchemy_searchable", "tests"]
line_length = 79
multi_line_output = 3
order_by_type = false
59 changes: 0 additions & 59 deletions setup.py

This file was deleted.

0 comments on commit 65306e5

Please sign in to comment.