risk-network 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {risk_network-0.0.1 → risk_network-0.0.2}/PKG-INFO +2 -2
  2. {risk_network-0.0.1 → risk_network-0.0.2}/pyproject.toml +1 -1
  3. {risk_network-0.0.1 → risk_network-0.0.2}/risk/__init__.py +1 -1
  4. {risk_network-0.0.1 → risk_network-0.0.2}/risk_network.egg-info/PKG-INFO +2 -2
  5. {risk_network-0.0.1 → risk_network-0.0.2}/setup.py +16 -4
  6. {risk_network-0.0.1 → risk_network-0.0.2}/LICENSE +0 -0
  7. {risk_network-0.0.1 → risk_network-0.0.2}/MANIFEST.in +0 -0
  8. {risk_network-0.0.1 → risk_network-0.0.2}/README.md +0 -0
  9. {risk_network-0.0.1 → risk_network-0.0.2}/risk/annotations/__init__.py +0 -0
  10. {risk_network-0.0.1 → risk_network-0.0.2}/risk/annotations/annotations.py +0 -0
  11. {risk_network-0.0.1 → risk_network-0.0.2}/risk/annotations/io.py +0 -0
  12. {risk_network-0.0.1 → risk_network-0.0.2}/risk/constants.py +0 -0
  13. {risk_network-0.0.1 → risk_network-0.0.2}/risk/log/__init__.py +0 -0
  14. {risk_network-0.0.1 → risk_network-0.0.2}/risk/log/console.py +0 -0
  15. {risk_network-0.0.1 → risk_network-0.0.2}/risk/log/params.py +0 -0
  16. {risk_network-0.0.1 → risk_network-0.0.2}/risk/neighborhoods/__init__.py +0 -0
  17. {risk_network-0.0.1 → risk_network-0.0.2}/risk/neighborhoods/domains.py +0 -0
  18. {risk_network-0.0.1 → risk_network-0.0.2}/risk/neighborhoods/graph.py +0 -0
  19. {risk_network-0.0.1 → risk_network-0.0.2}/risk/neighborhoods/neighborhoods.py +0 -0
  20. {risk_network-0.0.1 → risk_network-0.0.2}/risk/network/__init__.py +0 -0
  21. {risk_network-0.0.1 → risk_network-0.0.2}/risk/network/geometry.py +0 -0
  22. {risk_network-0.0.1 → risk_network-0.0.2}/risk/network/graph.py +0 -0
  23. {risk_network-0.0.1 → risk_network-0.0.2}/risk/network/io.py +0 -0
  24. {risk_network-0.0.1 → risk_network-0.0.2}/risk/network/plot.py +0 -0
  25. {risk_network-0.0.1 → risk_network-0.0.2}/risk/risk.py +0 -0
  26. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/__init__.py +0 -0
  27. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/permutation/__init__.py +0 -0
  28. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/permutation/_cython/permutation.pyx +0 -0
  29. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/permutation/_cython/setup.py +0 -0
  30. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/permutation/_python/permutation.py +0 -0
  31. {risk_network-0.0.1 → risk_network-0.0.2}/risk/stats/stats.py +0 -0
  32. {risk_network-0.0.1 → risk_network-0.0.2}/risk_network.egg-info/SOURCES.txt +0 -0
  33. {risk_network-0.0.1 → risk_network-0.0.2}/risk_network.egg-info/dependency_links.txt +0 -0
  34. {risk_network-0.0.1 → risk_network-0.0.2}/risk_network.egg-info/requires.txt +0 -0
  35. {risk_network-0.0.1 → risk_network-0.0.2}/risk_network.egg-info/top_level.txt +0 -0
  36. {risk_network-0.0.1 → risk_network-0.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -691,7 +691,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
691
691
  Classifier: Topic :: Scientific/Engineering :: Visualization
692
692
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
693
693
  Classifier: Development Status :: 4 - Beta
694
- Requires-Python: >=3.8
694
+ Requires-Python: >=3.7
695
695
  Description-Content-Type: text/markdown
696
696
  License-File: LICENSE
697
697
  Requires-Dist: cython
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "risk-network"
7
- version = "0.0.1"
7
+ dynamic = ["version"] # Indicates that version is determined dynamically
8
8
  description = "A Python package for biological network analysis"
9
9
  authors = [
10
10
  { name = "Ira Horecka", email = "ira89@icloud.com" },
@@ -10,4 +10,4 @@ RISK: RISK Infers Spatial Kinship
10
10
 
11
11
  from risk.risk import RISK
12
12
 
13
- __version__ = "0.0.1-beta.1"
13
+ __version__ = "0.0.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: risk-network
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -691,7 +691,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
691
691
  Classifier: Topic :: Scientific/Engineering :: Visualization
692
692
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
693
693
  Classifier: Development Status :: 4 - Beta
694
- Requires-Python: >=3.8
694
+ Requires-Python: >=3.7
695
695
  Description-Content-Type: text/markdown
696
696
  License-File: LICENSE
697
697
  Requires-Dist: cython
@@ -1,9 +1,20 @@
1
+ import re
1
2
  from setuptools import setup, Extension, find_packages
2
3
  from Cython.Build import cythonize
3
4
 
4
5
  import numpy
5
6
 
6
7
 
8
+ # Function to extract version from __init__.py
9
+ def find_version():
10
+ with open("risk/__init__.py", "r") as f:
11
+ version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
12
+ if version_match:
13
+ return version_match.group(1)
14
+ raise RuntimeError("Unable to find version string.")
15
+
16
+
17
+ # Cython extension modules
7
18
  extensions = [
8
19
  Extension(
9
20
  name="risk.stats.permutation._cython.permutation",
@@ -12,9 +23,10 @@ extensions = [
12
23
  ),
13
24
  ]
14
25
 
26
+ # Setup function
15
27
  setup(
16
28
  name="risk-network",
17
- version="0.0.1-beta.1", # Updated version
29
+ version=find_version(), # Dynamically fetches the version
18
30
  author="Ira Horecka",
19
31
  author_email="ira89@icloud.com",
20
32
  description="A Python package for biological network analysis", # Updated description
@@ -22,7 +34,7 @@ setup(
22
34
  long_description_content_type="text/markdown",
23
35
  license="GPL-3.0-or-later",
24
36
  packages=find_packages(),
25
- ext_modules=cythonize(extensions),
37
+ ext_modules=cythonize(extensions), # Compile Cython extensions
26
38
  include_package_data=True,
27
39
  install_requires=[
28
40
  "cython",
@@ -46,7 +58,7 @@ setup(
46
58
  "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
47
59
  "Operating System :: OS Independent",
48
60
  "Programming Language :: Python :: 3",
49
- "Programming Language :: Python :: 3.8",
61
+ "Programming Language :: Python :: 3.7",
50
62
  "Programming Language :: Python :: 3 :: Only",
51
63
  "Topic :: Scientific/Engineering :: Bio-Informatics",
52
64
  "Topic :: Scientific/Engineering :: Information Analysis",
@@ -54,5 +66,5 @@ setup(
54
66
  "Topic :: Software Development :: Libraries :: Python Modules",
55
67
  "Development Status :: 4 - Beta",
56
68
  ],
57
- python_requires=">=3.8",
69
+ python_requires=">=3.7",
58
70
  )
File without changes
File without changes
File without changes
File without changes
File without changes