switched to pyproject.toml

This commit is contained in:
2023-12-12 14:51:56 +01:00
parent ba1e01b169
commit 83b52b3439
3 changed files with 47 additions and 38 deletions

36
pyproject.toml Normal file
View File

@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "awsdyndns"
version = "0.2.0"
authors = [
{ name="Walter Oggioni", email="oggioni.walter@gmail.com" },
]
description = "Simple utility to dynamically update Route 53 DNS on AWS"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = []
[project.urls]
"Homepage" = "https://woggioni.net/cgit/awsdyndns.git/"
"Bug Tracker" = "https://woggioni.net/cgit/awsdyndns.git/"
[project.scripts]
awsdyndns = "awsdyndns.wrapper:run"
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
show_error_codes = true
no_implicit_optional = true
warn_return_any = true
warn_unused_ignores = true
exclude = ["scripts", "docs", "test"]
strict = true

11
requirements.txt Normal file
View File

@@ -0,0 +1,11 @@
argcomplete==3.2.1
build==1.0.3
click==8.1.7
mypy==1.7.1
mypy-extensions==1.0.0
packaging==23.2
pipx==1.3.3
platformdirs==4.1.0
pyproject_hooks==1.0.0
typing_extensions==4.9.0
userpath==1.9.1

View File

@@ -1,38 +0,0 @@
from os.path import join, dirname
from setuptools import setup, find_packages
def read(fname):
return open(join(dirname(__file__), fname)).read()
config = {
'name': "awsdyndns",
'version': "0.1",
'author': "Walter Oggioni",
'author_email': "oggioni.walter@gmail.com",
'description': ("Simple utility to dynamically update Route 53 DNS on AWS"),
'long_description': '',
'license': "MIT",
'keywords': "build",
'url': "https://github.com/oggio88/awsdyndns",
'packages': ['awsdyndns'],
'include_package_data': True,
'classifiers': [
'Development Status :: 3 - Alpha',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Utilities'
],
"entry_points": {
'console_scripts': [
'awsdyndns=awsdyndns.wrapper:run',
],
}
}
setup(**config)