Skip to content

Commit

Permalink
Merge pull request #13 from mspi92/dev
Browse files Browse the repository at this point in the history
Small Code Updates to support Python3.11
  • Loading branch information
it-iaew authored Oct 19, 2023
2 parents f388a46 + b085d74 commit 2e1d41d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 53 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.9, 3.10, 3.11]

steps:
- uses: actions/checkout@v2
Expand All @@ -51,10 +51,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.11
- name: Install requirements
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pytest:
junit: pytest.xml
parallel:
matrix:
- PY_VERSION: ["3.7", "3.8"]
- PY_VERSION: ["3.9", "3.10", "3.11"]
DUMMY: "0"

.integration:
Expand Down
43 changes: 3 additions & 40 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$

# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,dict-separator
single-line-if-stmt=n

# Maximum number of lines in a module
max-module-lines=1000
Expand Down Expand Up @@ -121,63 +115,32 @@ property-classes=abc.abstractproperty
# Regular expression matching correct argument names
argument-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for argument names
argument-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct variable names
variable-rgx=[a-z_][a-z0-9_]{2,30}$

# Naming hint for variable names
variable-name-hint=[a-z_][a-z0-9_]{2,30}$

# Regular expression matching correct method names
method-rgx=(([a-z_][a-z0-9_]{2,60})|(test_[a-z0-9_]{2,100}))$

# Naming hint for method names
method-name-hint=[a-z_][a-z0-9_]{2,60}$

# Regular expression matching correct inline iteration names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$

# Naming hint for inline iteration names
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$

# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]{2,60}$

# Naming hint for function names
function-name-hint=[a-z_][a-z0-9_]{2,60}$

# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,60}|(__.*__))$

# Naming hint for class attribute names
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,60}|(__.*__))$

# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$

# Naming hint for class names
class-name-hint=[A-Z_][a-zA-Z0-9]+$

# Regular expression matching correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Naming hint for module names
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))

# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$

# Naming hint for constant names
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$

# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{2,60}$

# Naming hint for attribute names
attr-name-hint=[a-z_][a-z0-9_]{2,60}$

# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
Expand Down Expand Up @@ -330,4 +293,4 @@ analyse-fallback-blocks=no

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8
FROM python:3.11

COPY requirements.txt dev-requirements.txt /
RUN pip install -r requirements.txt &&\
Expand Down
4 changes: 2 additions & 2 deletions cimpyorm/Model/Schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import json
from argparse import Namespace
import os
from collections import ChainMap, Iterable, defaultdict

from collections import ChainMap, defaultdict
from collections.abc import Iterable
from defusedxml.lxml import parse
import networkx as nx
from networkx import DiGraph, bfs_tree, dfs_tree
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
name='cimpyorm', # Required
# https://www.python.org/dev/peps/pep-0440/
# https://packaging.python.org/en/latest/single_source_version.html
version='0.9.4', # Required
version='0.10.0', # Required
# https://packaging.python.org/specifications/core-metadata/#summary
description="A database-backed ORM for CIM datasets.", # Required
# https://packaging.python.org/specifications/core-metadata/#description-optional
Expand All @@ -39,13 +39,15 @@
author_email="[email protected]", # Optional
# For a list of valid classifiers, see https://pypi.org/classifiers/
classifiers=[
'Development Status :: 3 - Alpha', 'Intended Audience :: Developers',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License', 'Natural Language :: English',
'Operating System :: OS Independent',
'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'
], # Optional
packages=find_packages(exclude=[
'cimpyorm/Test/Deployment/**',
Expand Down

0 comments on commit 2e1d41d

Please sign in to comment.