Skip to content

Commit

Permalink
Add packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristy committed Nov 25, 2024
1 parent 75fcd53 commit bbad66a
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 3 deletions.
54 changes: 53 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,56 @@ indent-style = "space"
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
line-ending = "auto"

[build-system]
requires = ["hatchling>=1.24.2", "hatch-vcs>=0.3.0"]
build-backend = "hatchling.build"

[tool.hatch.build]
build-targets = ["sdist", "wheel"]

[tool.hatch.version]
source = "vcs"
tag-pattern = "^v(?P<version>.+)$"

[tool.hatch.build.hooks.vcs]
version-file = "src/pyopn/_version.py"

[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]

[project]
name = "pyopn"
authors = [
{ name="Alex Christy", email="[email protected]" },
]
description = " A simple Python wrapper for the OPNsense REST API."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Topic :: System :: Systems Administration"
]
dependencies = [
"pbr>=1.6",
"requests>=2.14.2",
"validators>=0.34",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/alexchristy/PyOPN"
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.

pbr>=1.6 # Apache-2.0
requests>=2.14.2 # Apache-2.0
pbr>=1.6
requests>=2.14.2
validators>=0.34
17 changes: 17 additions & 0 deletions src/pyopn/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = "0.1.1.dev1+g75fcd53.d20241125"
__version_tuple__ = version_tuple = (0, 1, 1, "dev1", "g75fcd53.d20241125")

0 comments on commit bbad66a

Please sign in to comment.