-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from asmfstatoil/poetry
chore: use poetry for dependency management
- Loading branch information
Showing
3 changed files
with
27 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ ENV/ | |
|
||
# SNYK | ||
.dccache | ||
poetry.lock |
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,62 +1,30 @@ | ||
# --------------------( LICENSE )-------------------- | ||
# Copyright 2014-2019 by Alexis Pietak & Cecil Curry. | ||
# See "LICENSE" for further details. | ||
# | ||
# --------------------( SYNOPSIS )-------------------- | ||
# Project-wide packager-agnostic configuration. Unlike all other top-level | ||
# configuration files (e.g., "setup.py", "MANIFEST.in") specific to some | ||
# utility in Python's package management ecosystem (e.g., "pip", "setuptools"), | ||
# this file strictly conforms to a standards-compliant PEP and hence | ||
# generically applies to *ALL* such utilities. | ||
# | ||
# Welcome to project distribution hell, where only twenty distinct files in | ||
# twenty distinct formats suffice to distribute a single project. | ||
# | ||
# --------------------( SEE ALSO )-------------------- | ||
# https://snarky.ca/clarifying-pep-518 | ||
# "Clarifying PEP 518 (a.k.a. pyproject.toml)", a human-readable article | ||
# from one of the principal authors of the "pyproject.toml" standard. | ||
[tool.poetry] | ||
name = "neqsim" | ||
version = "2.5.14" | ||
description = "NeqSim is a tool for thermodynamic and process calculations" | ||
authors = ["Even Solbraa <[email protected]>"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/Equinor/neqsimpython" | ||
classifiers = [ | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
# ....................{ BUILDING }.................... | ||
[build-system] | ||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
JPype1 = "^1.4.1" | ||
pandas = "^2.1.4" | ||
matplotlib = { version = "^3.8.2", optional = true } | ||
jupyter = { version = "^1.0.0", optional = true } | ||
tabulate = { version = "^0.9.0", optional = true } | ||
|
||
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
# WARNING: To avoid dependency conflicts between "pip", "setuptools", BETSE, | ||
# and BETSEE, the value of this global variable *MUST* be synchronized (i.e., | ||
# copied) across numerous files in both codebases. Specifically, the following | ||
# strings *MUST* be identical: | ||
# * "betse.metadeps.SETUPTOOLS_VERSION_MIN". | ||
# * "betsee.guimetadeps.SETUPTOOLS_VERSION_MIN". | ||
# * The "build-backend" setting in: | ||
# * "betse/pyproject.toml". | ||
# * "betsee/pyproject.toml". | ||
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
[tool.poetry.group.dev.dependencies] | ||
black = "^23.12.0" | ||
pytest = "^7.4.3" | ||
|
||
# List of all Python packages required to build (i.e., install) this project | ||
# from both codebase tarballs and binary wheels. | ||
requires = [ | ||
'setuptools>=38.2.0', | ||
'wheel', | ||
] | ||
[tool.poetry.extras] | ||
interactive = ["matplotlib", "jupyter", "tabulate"] | ||
|
||
# Explicitly notify "pip" that we leverage the top-level "setuptools"-backed | ||
# "setup.py" script as our installation infrastructure. | ||
# | ||
# Note that this is explicitly required for temporary backward compatibility | ||
# with "pip" 19.1.0, which erroneously violated PEP 51{7,8} by failing to | ||
# fallback to a sane default value in the absence of this setting. If this | ||
# setting is left unspecified here, "pip" 19.1.0 fails on attempting to perform | ||
# an editable (i.e., developer-specific) install with the following error: | ||
# | ||
# $ pip install --user --editable . | ||
# Obtaining file:///home/leycec/py/betse | ||
# ERROR: Error installing 'file:///home/leycec/py/betse': editable mode is | ||
# not supported for pyproject.toml-style projects. pip is processing this | ||
# project as pyproject.toml-style because it has a pyproject.toml file. | ||
# Since the project has a setup.py and the pyproject.toml has no | ||
# "build-backend" key for the "build_system" value, you may pass | ||
# --no-use-pep517 to opt out of pyproject.toml-style processing. See PEP | ||
# 517 for details on pyproject.toml-style projects. | ||
# | ||
# See also: https://github.com/pypa/pip/issues/6434 | ||
build-backend = 'setuptools.build_meta' | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |