-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from setup.py to pyproject.toml
- Loading branch information
1 parent
0c61b35
commit df89e45
Showing
12 changed files
with
97 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = 'fetpapi' | ||
version = '${Fetpapi_PYTHON_VERSION}' | ||
authors = [ | ||
{name = "F2I-CONSULTING"}, | ||
] | ||
maintainers = [ | ||
{name = "F2I-CONSULTING"}, | ||
] | ||
description = "An API for the Energistics Transfer Protocol" | ||
readme = "README.md" | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Software Development', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Application Frameworks ', | ||
'Topic :: File Formats', | ||
] | ||
keywords = [ | ||
"energistics", | ||
"resqml", | ||
"eml", | ||
"witsml", | ||
"prodml", | ||
"osdu", | ||
"rddms", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
'fesapi==2.11.0', | ||
] | ||
|
||
[project.urls] | ||
source = "https://github.com/F2I-Consulting/fetpapi/issues" | ||
releasenotes = "https://github.com/F2I-Consulting/fetpapi/releases" | ||
documentation = "https://www.f2i-consulting.com/fetpapi/doxygen/" | ||
issues = "https://github.com/F2I-Consulting/fetpapi/issues" | ||
|
||
[tool.setuptools] | ||
packages=['fetpapi'] | ||
package-dir={"fetpapi" = "fetpapi"} | ||
ext-modules = [ | ||
{name='_fetpapi', sources=['swigGeneratedPythonWrapper.cpp'], include-dirs=['${Boost_INCLUDE_DIR}','${AVRO_INCLUDE_DIR}'${FESAPI_INCLUDE_DIR_FOR_SETUP_PY}], library-dirs=['${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}'${AVRO_LIBRARY_DIR_RELEASE}${Boost_LIBRARY_DIR_RELEASE}${FESAPI_LIBRARY_DIR_RELEASE}], libraries=['${ASSEMBLY_NAME}'${AVRO_LIBRARY_RELEASE_WLE}${Boost_LIBRARY_RELEASE_WLE}${FESAPI_LIBRARY_RELEASE_WLE}], ${EXTRA_COMPILE_ARGS}} | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
fetpapi = ["*.dll", "*.so", "*.so.*"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Enable CMake boolean variable SWIG_PYTHON_BUILTIN if you want more performance : read [SWIG documentation](http://swig.org/Doc4.0/SWIGDocumentation.html#Python_nn28) for more information about this "builtin" parameter. The main drawback of using such a parameter is that it will be harder/impossible for your Python IDE to enable autocompletion for your FETPAPI python extension. The recommendation is to use SWIG_PYTHON_BUILTIN only in production. | ||
|
||
Please disable the SWIG_LINKED_TO_RELEASE cmake variable if you build FETPAPI in Debug mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
Enable CMake boolean variable SWIG_PYTHON_BUILTIN if you want more performance : read [SWIG documentation](http://swig.org/Doc4.0/SWIGDocumentation.html#Python_nn28) for more information about this "builtin" parameter. The main drawback of using such a parameter is that it will be harder/impossible for your Python IDE to enable autocompletion for your FETPAPI python extension. The recommendation is to use SWIG_PYTHON_BUILTIN only in production. | ||
**FETPAPI** is an API for Energistics Transfer Protocol (aka ETP™) | ||
ETP is the default standard to interact with the OSDU RDDMS. | ||
|
||
Please disable the SWIG_LINKED_TO_RELEASE cmake variable if you build FETPAPI in Debug mode. | ||
### Examples | ||
|
||
A Python script and a Jupyter Notebook are available [here](https://github.com/F2I-Consulting/fetpapi/tree/main/python/example). | ||
|
||
### Credits | ||
FETPAPI Product incorporates ETP™ technology/standards provided by the Energistics Consortium, Inc. | ||
|
||
ETP is trademark or registered trademark of Energistics Consortium, Inc. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from setuptools import setup | ||
|
||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
# If compatibility with legacy builds or versions of tools that don’t support certain packaging standards (e.g. PEP 517 or PEP 660), | ||
# a simple setup.py script can be added to your project (while keeping the configuration in pyproject.toml): | ||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters