2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-27 22:39:03 +00:00

build: Retire setup.py + reqs.txt to use pyproject.toml

This commit is contained in:
Gavin D'souza 2022-07-27 18:40:17 +05:30
parent 1badfa8da4
commit 86c3c90fd9
3 changed files with 57 additions and 51 deletions

57
pyproject.toml Normal file
View File

@ -0,0 +1,57 @@
[project]
name = "frappe-bench"
description = "CLI to manage Multi-tenant deployments for Frappe apps"
readme = "README.md"
license = "GPL-3.0-only"
requires-python = ">=3.7"
authors = [
{ name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: OS Independent",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: User Interfaces",
"Topic :: System :: Installation/Setup",
]
dependencies = [
"Click>=7.0",
"GitPython~=2.1.15",
"honcho",
"Jinja2~=3.0.3",
"python-crontab~=2.4.0",
"requests",
"semantic-version~=2.8.2",
"setuptools>40.9.0",
"tomli;python_version<'3.11'",
]
dynamic = [
"version",
]
[project.scripts]
bench = "bench.cli:cli"
[project.urls]
Changelog = "https://github.com/frappe/bench/releases"
Documentation = "https://frappeframework.com/docs/user/en/bench"
Homepage = "https://frappe.io/bench"
Source = "https://github.com/frappe/bench"
[build-system]
requires = [
"hatchling>=1.6.0",
]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "bench/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/bench",
]

View File

@ -1,9 +0,0 @@
Click>=7.0
GitPython~=2.1.15
honcho
Jinja2~=3.0.3
python-crontab~=2.4.0
requests
semantic-version~=2.8.2
setuptools>60.0.0
tomli;python_version<"3.11"

View File

@ -1,42 +0,0 @@
import pathlib
from setuptools import find_packages, setup
from bench import PROJECT_NAME, VERSION
install_requires = pathlib.Path("requirements.txt").read_text().strip().split("\n")
long_description = pathlib.Path("README.md").read_text()
setup(
name=PROJECT_NAME,
description="CLI to manage Multi-tenant deployments for Frappe apps",
long_description=long_description,
long_description_content_type="text/markdown",
version=VERSION,
license="GPLv3",
author="Frappe Technologies Pvt Ltd",
author_email="developers@frappe.io",
url="https://frappe.io/bench",
project_urls={
"Documentation": "https://frappeframework.com/docs/user/en/bench",
"Source": "https://github.com/frappe/bench",
"Changelog": "https://github.com/frappe/bench/releases",
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: OS Independent",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: User Interfaces",
"Topic :: System :: Installation/Setup",
],
packages=find_packages(),
python_requires=">=3.7",
zip_safe=False,
include_package_data=True,
install_requires=install_requires,
entry_points={"console_scripts": ["bench=bench.cli:cli"]},
)