Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT - Drop Python 3.7 Support #342

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/local_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v3

Expand Down
4 changes: 2 additions & 2 deletions doc/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ To use the ``ansys.grantami.bomanalytics`` package, you must have access to a
Granta MI server that includes MI Restricted Substances Reports 2022 R1
or later.

The ``ansys.grantami.bomanalytics`` package currently supports Python 3.7
through 3.10 on Windows and Linux.
The ``ansys.grantami.bomanalytics`` package currently supports Python 3.8
through 3.11 on Windows and Linux.

Installation
~~~~~~~~~~~~
Expand Down
71 changes: 2 additions & 69 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ classifiers = [
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
packages = [
{ include = "**/*.py", from = "src" }
]

[tool.poetry.dependencies]
python = "^3.7.1"
python = "^3.8.0"

# Packages for core library
importlib_metadata = { version = ">=1.0", python = "<3.8" } # Granta MI STK requires 3.4.0
ansys-openapi-common = "< 2.0.0"
ansys-grantami-bomanalytics-openapi = "1.1.0"

Expand Down Expand Up @@ -87,14 +86,13 @@ examples = [
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310,py311
envlist = py38,py39,py310,py311
isolated_build = True
requires =
tox-gh-actions==2.9.1

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down
9 changes: 2 additions & 7 deletions src/ansys/grantami/bomanalytics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
from ._connection import Connection
from ._exceptions import GrantaMIException

try:
from importlib import metadata as metadata
from importlib import metadata as metadata

__version__ = metadata.version("ansys-grantami-bomanalytics")
except ImportError:
from importlib_metadata import metadata as metadata_backport

__version__ = metadata_backport("ansys-grantami-bomanalytics")["version"]
__version__ = metadata.version("ansys-grantami-bomanalytics")
2 changes: 1 addition & 1 deletion src/ansys/grantami/bomanalytics/_connection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Connection to the Granta MI Service Layer.

This module creates the connection object by subclassing the
abstract ``ApiClientFactory`` class in the ``auth_common`` package.
abstract ``ApiClientFactory`` class in the ``ansys-openapi-common`` package.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


The connection object itself is also subclassed to include global configuration
options that span all queries and the method to execute the query.
Expand Down