Skip to content

Commit 16cc573

Browse files
committed
[774] Migrate to pyproject.toml
1 parent 94b8594 commit 16cc573

File tree

3 files changed

+49
-43
lines changed

3 files changed

+49
-43
lines changed

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
[project]
2+
name = "python-irodsclient"
3+
authors = [
4+
{name = "iRODS Consortium", email = "support@irods.org"},
5+
]
6+
description = "A Python API for iRODS"
7+
readme = {file = "README.md", content-type = "text/markdown"}
8+
requires-python = ">= 3.9"
9+
keywords = ["irods"]
10+
license = "BSD-3-Clause"
11+
license-files = ["LICENSE.txt"]
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
19+
"Operating System :: POSIX :: Linux",
20+
]
21+
dependencies = [
22+
"PrettyTable>=0.7.2",
23+
"defusedxml",
24+
"jsonpointer",
25+
"jsonpatch",
26+
]
27+
dynamic = ["version"]
28+
29+
[project.urls]
30+
Repository = "https://github.com/irods/python-irodsclient"
31+
Issues = "https://github.com/irods/python-irodsclient/issues"
32+
33+
[project.optional-dependencies]
34+
tests = [
35+
"unittest-xml-reporting", # for xmlrunner
36+
"types-defusedxml", # for type checking
37+
"progressbar", # for type checking
38+
"types-tqdm", # for type checking
39+
]
40+
141
[build-system]
242
requires = ["setuptools"]
343
build-backend = "setuptools.build_meta"
44+
45+
[tool.setuptools]
46+
py-modules = ["irods"]
47+
script-files = ["irods/prc_write_irodsA.py"]
48+
include-package-data = true
49+
50+
[tool.setuptools.packages.find]
51+
exclude = ["test_harness*", "dist*"]

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from setuptools import setup, find_packages
2-
import codecs
1+
from setuptools import setup
32
import os
43

54

@@ -9,45 +8,6 @@
98
with open(os.path.join(here, "irods/version.py")) as file:
109
exec(file.read(), version)
1110

12-
13-
# Get description
14-
with codecs.open("README.md", "r", "utf-8") as file:
15-
long_description = file.read()
16-
17-
1811
setup(
19-
name="python-irodsclient",
2012
version=version["__version__"],
21-
author="iRODS Consortium",
22-
author_email="support@irods.org",
23-
description="A python API for iRODS",
24-
long_description=long_description,
25-
long_description_content_type="text/markdown",
26-
license="BSD",
27-
url="https://github.com/irods/python-irodsclient",
28-
keywords="irods",
29-
classifiers=[
30-
"License :: OSI Approved :: BSD License",
31-
"Development Status :: 5 - Production/Stable",
32-
"Programming Language :: Python :: 3.9",
33-
"Programming Language :: Python :: 3.10",
34-
"Programming Language :: Python :: 3.11",
35-
"Programming Language :: Python :: 3.12",
36-
"Programming Language :: Python :: 3.13",
37-
"Operating System :: POSIX :: Linux",
38-
],
39-
packages=find_packages(),
40-
include_package_data=True,
41-
install_requires=[
42-
"PrettyTable>=0.7.2",
43-
"defusedxml",
44-
"jsonpointer",
45-
"jsonpatch",
46-
],
47-
extras_require={"tests": ["unittest-xml-reporting", # for xmlrunner
48-
"types-defusedxml", # for type checking
49-
"progressbar", # for type checking
50-
"types-tqdm"] # for type checking
51-
},
52-
scripts=["irods/prc_write_irodsA.py"],
5313
)

0 commit comments

Comments
 (0)