Skip to content

Commit

Permalink
Update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
oriyalperin committed Nov 2, 2023
1 parent 8977f8e commit 251e28f
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Test NetworkZ
run: |
pytest --durations=10
pytest --durations=10 --pyargs networkz
default:
runs-on: ${{ matrix.os }}-latest
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
os: [ubuntu, macos]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
5 changes: 3 additions & 2 deletions networkz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from networkx import *
import os

__version__ = "1.0.6"

# Get the current directory of the __init__.py file
current_directory = os.path.dirname(__file__)

# Append the 'algorithms' directory to the __path__ attribute
__path__.append(os.path.join(current_directory, 'algorithms'))

from networkz import algorithms
from networkz.algorithms import *

from networkz.algorithms import *
104 changes: 101 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,104 @@
requires = ["setuptools>=46.4.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules "
[project]
name = 'networkz'
description = 'Extended Graph-Algorithms Library on Top of NetworkX'
readme = 'README.MD'
requires-python = '>=3.8'
dynamic = ['version']
keywords = [
'Networks',
'Graph Theory',
'Mathematics',
'network',
'graph',
'discrete mathematics',
'math',
]

dependencies = [
"networkx",
]

[[project.authors]]
name = 'Ariel University'
email = '[email protected]'

[[project.maintainers]]
name = 'NetworkZ Developers'
email = '[email protected]'

[project.urls]
"Source Code" = 'https://github.com/ariel-research/networkz'

[project.optional-dependencies]
default = [
'networkx',
'numpy>=1.22',
'scipy>=1.9,!=1.11.0,!=1.11.1',
]
developer = [
'changelist==0.4',
'pre-commit>=3.2',
'mypy>=1.1',
'rtoml',
]
extra = [
'lxml>=4.6',
'pygraphviz>=1.11',
'pydot>=1.4.2',
'sympy>=1.10',
]
test = [
'pytest>=7.2',
'pytest-cov>=4.0',
]

[tool.setuptools]
zip-safe = false
include-package-data = false
packages = [
'networkz',
'networkz.algorithms',
'networkz.algorithms.bipartite',
'networkz.algorithms.approximation',
'networkz.classes',
'networkz.generators',
'networkz.drawing',
'networkz.linalg',
'networkz.readwrite',
'networkz.tests',
'networkz.utils',
]
platforms = [
'Linux',
'Mac OSX',
'Windows',
'Unix',
]

[tool.setuptools.dynamic.version]
attr = 'networkz.__version__'


[tool.setuptools.package-data]
networkz = ['tests/*.py']
"networkz.algorithms" = ['tests/*.py']
"networkz.algorithms.bipartite" = ['tests/*.py']
"networkz.algorithms.approximation" = ['tests/*.py']

[tool.ruff]
line-length = 88
target-version = 'py39'
select = [
'I',
]

[tool.ruff.per-file-ignores]
"__init__.py" = ['I']


[tool.mypy]
ignore_missing_imports = true
exclude = 'subgraphviews|reportviews'
3 changes: 2 additions & 1 deletion requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
networkx

numpy>=1.22
scipy>=1.9,!=1.11.0,!=1.11.1

0 comments on commit 251e28f

Please sign in to comment.