Skip to content

Commit 066cd34

Browse files
committed
Update pyproject.toml and setup.py
1 parent 670f35c commit 066cd34

File tree

2 files changed

+51
-56
lines changed

2 files changed

+51
-56
lines changed

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
4+
[project]
5+
name = "iris_pex_embedded_python"
6+
version = "2.3.20"
7+
description = "Iris Interoperability based on Embedded Python"
8+
readme = "README.md"
9+
authors = [
10+
{ name = "grongier", email = "guillaume.rongier@intersystems.com" },
11+
]
12+
keywords = ["iris", "intersystems", "python", "embedded"]
13+
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Programming Language :: Python :: 3.6",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Topic :: Utilities"
26+
]
27+
28+
dependencies = [
29+
"dacite >=1.6.0",
30+
"xmltodict>=0.12.0"
31+
]
32+
33+
license = { file = "LICENSE" }
34+
35+
[project.urls]
36+
homepage = "https://github.com/grongierisc/interoperability-embedded-python"
37+
documentation = "https://github.com/grongierisc/interoperability-embedded-python/blob/master/README.md"
38+
repository = "https://github.com/grongierisc/interoperability-embedded-python"
39+
issues = "https://github.com/grongierisc/interoperability-embedded-python/issues"
40+
41+
[project.scripts]
42+
iop = "grongier.pex._cli:main"
43+
44+
[tool.setuptools.packages.find]
45+
where = ["src"]
46+
exclude = ["tests*"]
47+
48+
[tool.setuptools.package-data]
49+
"*" = ["*.cls"]

setup.py

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
# Licensed under the MIT License
2-
# https://github.com/grongierisc/iris_pex_embedded_python/blob/main/LICENSE
1+
from setuptools import setup
32

4-
import os
5-
6-
from setuptools import setup, find_packages
7-
8-
def main():
9-
# Read the readme for use as the long description
10-
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
11-
'README.md'), encoding='utf-8') as readme_file:
12-
long_description = readme_file.read()
13-
14-
# Do the setup
15-
setup(
16-
name='iris_pex_embedded_python',
17-
description='iris_pex_embedded_python',
18-
long_description=long_description,
19-
long_description_content_type='text/markdown',
20-
version='2.3.19',
21-
author='grongier',
22-
author_email='guillaume.rongier@intersystems.com',
23-
keywords='iris_pex_embedded_python',
24-
url='https://github.com/grongierisc/interoperability-embedded-python',
25-
license='MIT',
26-
classifiers=[
27-
'Development Status :: 5 - Production/Stable',
28-
'Intended Audience :: Developers',
29-
'License :: OSI Approved :: MIT License',
30-
'Operating System :: OS Independent',
31-
'Programming Language :: Python :: 3.6',
32-
'Programming Language :: Python :: 3.7',
33-
'Programming Language :: Python :: 3.8',
34-
'Programming Language :: Python :: 3.9',
35-
'Programming Language :: Python :: 3.10',
36-
'Programming Language :: Python :: 3.11',
37-
'Topic :: Utilities'
38-
],
39-
package_dir={'': 'src'},
40-
packages=find_packages(where='src'),
41-
package_data={'grongier.cls': ['**/*.cls']},
42-
python_requires='>=3.6',
43-
install_requires=[
44-
"dacite>=1.6.0",
45-
"xmltodict>=0.12.0",
46-
],
47-
entry_points={
48-
'console_scripts': [
49-
# create an iop command that point to the main of the grongier.pex package
50-
'iop = grongier.pex._cli:main',
51-
],
52-
}
53-
)
54-
55-
56-
if __name__ == '__main__':
57-
main()
3+
setup()

0 commit comments

Comments
 (0)