Skip to content

Commit 39ef53e

Browse files
committed
update Python packaging config
1 parent 2ebcd20 commit 39ef53e

File tree

2 files changed

+59
-7
lines changed

2 files changed

+59
-7
lines changed

pyproject.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "haproxy-cli"
7+
version = "0.7.0"
8+
description = "A tool to interact with HAProxy."
9+
readme = "README.md"
10+
license = "GPL-3.0-or-later"
11+
license-files = ["LICENSE"]
12+
requires-python = ">=3.7"
13+
authors = [
14+
{ name = "markt.de", email = "github-oss-noreply@markt.de" },
15+
]
16+
keywords = [
17+
"haproxy",
18+
"cli",
19+
]
20+
classifiers = [
21+
"Development Status :: 4 - Beta",
22+
"Environment :: Console",
23+
"Intended Audience :: System Administrators",
24+
"Operating System :: POSIX",
25+
"Operating System :: Unix",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
31+
"Programming Language :: Python :: 3.11",
32+
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
34+
"Topic :: Internet :: Proxy Servers",
35+
"Topic :: Software Development :: Libraries :: Python Modules",
36+
"Topic :: System :: Systems Administration",
37+
"Topic :: System :: Networking",
38+
]
39+
dependencies = [
40+
]
41+
42+
[project.optional-dependencies]
43+
test = [
44+
"flake8>=5.0.0",
45+
"pytest>=6.0.0",
46+
"pytest-cov>=3.0.0",
47+
"pyfakefs>=5.0.0",
48+
]
49+
50+
[project.urls]
51+
Documentation = "https://github.com/markt-de/haproxy-cli"
52+
Homepage = "https://github.com/markt-de/haproxy-cli"
53+
Issues = "https://github.com/markt-de/haproxy-cli/issues"
54+
Repository = "https://github.com/markt-de/haproxy-cli.git"
55+
56+
[tool.setuptools.packages.find]
57+
include = ["haproxy*"]
58+
exclude = ["haproxy/tests"]

setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import os
22
from distutils.core import setup
33

4-
from haproxy import __version__
5-
64
_directory = os.path.abspath(os.path.dirname(__file__))
75
with open(os.path.join(_directory, 'README.md'), encoding='utf-8') as f:
86
long_description = f.read()
97

108
setup(
119
name='haproxy-cli',
12-
version=__version__,
1310
description='A tool to interact with HAProxy',
1411
author='markt.de',
1512
author_email='github-oss-noreply@markt.de',
16-
license='GPL-3',
1713
project_urls={
1814
'Bug Tracker': 'https://github.com/markt-de/haproxy-cli/issues',
1915
'Documentation': 'https://github.com/markt-de/haproxy-cli',
@@ -28,7 +24,6 @@
2824
'Development Status :: 4 - Beta',
2925
'Environment :: Console',
3026
'Intended Audience :: System Administrators',
31-
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
3227
'Operating System :: POSIX',
3328
'Operating System :: Unix',
3429
'Programming Language :: Python :: 3 :: Only',
@@ -40,5 +35,4 @@
4035
'Topic :: Internet :: Proxy Servers',
4136
'Topic :: Software Development :: Libraries :: Python Modules',
4237
'Topic :: System :: Systems Administration',
43-
'Topic :: System :: Networking'],
44-
test_suite="tests")
38+
'Topic :: System :: Networking'])

0 commit comments

Comments
 (0)