Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to pyproject.toml #85

Merged
merged 3 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[project]
name = "porkbun_ddns"
dynamic = ["version"]
requires-python = ">=3.11"
description = "A unofficial DDNS-Client for Porkbun domains"
readme = "README.md"
authors = [{ name = "Nils Stein", email = "[email protected]" }]
license = { file = "LICENSE" }
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
"Operating System :: OS Independent",
]
keywords = ["porkbun", "ddns"]
dependencies = ["xdg-base-dirs~=6.0.2"]

[project.urls]
repository = "https://github.com/mietzen/porkbun-ddns"

[project.scripts]
porkbun-ddns = "porkbun_ddns.cli:main"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["porkbun_ddns"]
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

33 changes: 1 addition & 32 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
import sys
from setuptools import setup
from os import path, environ

setup_file_dir = path.abspath(path.dirname(__file__))

try:
with open(path.join(setup_file_dir, "README.md"), encoding="utf-8") as f:
long_description = f.read()
except FileNotFoundError:
print("README.md not found")
sys.exit(1)
from os import environ

setup(
name="porkbun-ddns",
version=environ.get('VERSION'),
python_requires='>3.10',
description="A unofficial DDNS-Client for Porkbun domains",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/mietzen/porkbun-ddns",
author="Nils Stein",
author_email="[email protected]",
license="MIT",
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
"Operating System :: OS Independent",
],
keywords="porkbun ddns",
packages=["porkbun_ddns"],
install_requires=["xdg-base-dirs~=6.0.1"],
entry_points={
'console_scripts': ['porkbun-ddns=porkbun_ddns.cli:main']
},
)
Loading