python: update for PEP 517
This commit is contained in:
parent
313481bd62
commit
caed0f4261
21
python/pyproject.toml
Normal file
21
python/pyproject.toml
Normal file
@ -0,0 +1,21 @@
|
||||
[build-system]
|
||||
requires=["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "file-scripts"
|
||||
authors = [{name="Eric Torres", email="eric.torres@its-et.me"}]
|
||||
version = "2.0.0"
|
||||
description = "File-related helper-scripts"
|
||||
readme = "README"
|
||||
license = {file = "LICENSE"}
|
||||
dependencies = ["termcolor"]
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: GNU GPLv3 License",
|
||||
"Operating System :: OS Independent",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/etorres4/file-scripts"
|
||||
Repository = "https://github.com/etorres4/file-scripts"
|
@ -4,31 +4,13 @@ from sphinx.setup_command import BuildDoc
|
||||
# ========== Constants ==========
|
||||
EXCLUDED_PACKAGES = ["test", "tests"]
|
||||
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
|
||||
DEPENDENCIES = ["termcolor"]
|
||||
SCRIPTS = ["bin/fedit", "bin/cptemplate", "bin/quickdel"]
|
||||
CMDCLASS = {"build_sphinx": BuildDoc}
|
||||
|
||||
# ========== Functions ==========
|
||||
with open("README", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
# ========== Package Setup ==========
|
||||
setuptools.setup(
|
||||
name="file_scripts",
|
||||
version="2.0.0",
|
||||
author="Eric Torres",
|
||||
author_email="eric.torres@its-et.me",
|
||||
description="File-related helper scripts",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/etorres4/file-scripts",
|
||||
packages=PACKAGES,
|
||||
scripts=SCRIPTS,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: GNU GPLv3 License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
command_options={
|
||||
"build_sphinx": {
|
||||
"project": ("setup.py", "name"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user