Feature #156: Replace setup.py with pyproject.toml

This commit is contained in:
Tomas Hagenau Andersen 2023-11-04 19:02:03 +01:00
parent 4413828597
commit 91feafc02a
2 changed files with 43 additions and 41 deletions

43
pyproject.toml Normal file
View file

@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "xxh-xxh"
authors = [
{ name="xxh", email="author@example.com" },
]
description = "Bring your favorite shell wherever you go through the ssh"
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.6"
license = {text = "BSD"}
dependencies = [
'pexpect >= 4.8.0',
'pyyaml',
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Unix Shell",
"Topic :: System :: Shells",
"Topic :: System :: System Shells",
"Topic :: Terminals",
"Topic :: System :: Networking",
"License :: OSI Approved :: BSD License",
]
[project.urls]
"Documentation" = "https://github.com/xxh/xxh/blob/master/README.md"
"Code" = "https://github.com/xxh/xxh"
"Issue tracker" = "https://github.com/xxh/xxh/issues"
[tool.setuptools]
packages = ['xxh_xxh']
package-dir = {'xxh_xxh' = 'xxh/xxh_xxh'}
script-files = ["xxh/xxh", "xxh/xxh_xxh/xxh.zsh", "xxh/xxh_xxh/xxh.xsh", "xxh/xxh_xxh/xxh.bash"]
[tool.setuptools.package-data]
xxh_xxh = ["*.py", "*.xxhc", "xxh.*"]
[tool.setuptools.dynamic]
version = {attr = "xxh.xxh_xxh.__version__"}

View file

@ -1,41 +0,0 @@
import setuptools
from xxh.xxh_xxh import __version__
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
setuptools.setup(
name="xxh-xxh",
version=__version__,
description="Bring your favorite shell wherever you go through the ssh",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/xxh/xxh",
project_urls={
"Documentation": "https://github.com/xxh/xxh/blob/master/README.md",
"Code": "https://github.com/xxh/xxh",
"Issue tracker": "https://github.com/xxh/xxh/issues",
},
python_requires='>=3.6',
install_requires=[
'pexpect >= 4.8.0',
'pyyaml'
],
platforms='Unix-like',
scripts=['xxh/xxh', 'xxh/xxh_xxh/xxh.zsh', 'xxh/xxh_xxh/xxh.xsh', 'xxh/xxh_xxh/xxh.bash'],
package_data={'xxh_xxh': ['*.py', '*.xxhc', 'xxh.*']},
packages=['xxh_xxh'],
package_dir={'xxh_xxh': 'xxh/xxh_xxh'},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Unix Shell",
"Topic :: System :: Shells",
"Topic :: System :: System Shells",
"Topic :: Terminals",
"Topic :: System :: Networking",
"License :: OSI Approved :: BSD License"
],
license="BSD",
author="xxh",
author_email="author@example.com"
)