cosmopharm 0.0.27__tar.gz → 0.0.28__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 (23) hide show
  1. {cosmopharm-0.0.27/src/cosmopharm.egg-info → cosmopharm-0.0.28}/PKG-INFO +1 -1
  2. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/setup.cfg +0 -1
  3. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/setup.py +10 -1
  4. {cosmopharm-0.0.27 → cosmopharm-0.0.28/src/cosmopharm.egg-info}/PKG-INFO +1 -1
  5. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/LICENSE +0 -0
  6. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/README.md +0 -0
  7. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/__init__.py +0 -0
  8. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/__init__.py +0 -0
  9. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/actmodel.py +0 -0
  10. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/cosmo.py +0 -0
  11. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/components.py +0 -0
  12. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/__init__.py +0 -0
  13. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/lle.py +0 -0
  14. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/sle.py +0 -0
  15. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/__init__.py +0 -0
  16. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/convert.py +0 -0
  17. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/helpers.py +0 -0
  18. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/lle_scanner.py +0 -0
  19. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/spacing.py +0 -0
  20. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/SOURCES.txt +0 -0
  21. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/dependency_links.txt +0 -0
  22. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/requires.txt +0 -0
  23. {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cosmopharm
3
- Version: 0.0.27
3
+ Version: 0.0.28
4
4
  Summary: Predictive modeling for drug-polymer compatibility in pharmaceutical formulations using COSMO-SAC.
5
5
  Home-page: https://github.com/ivanantolo/cosmopharm,
6
6
  Author: Ivan Antolovic
@@ -1,6 +1,5 @@
1
1
  [metadata]
2
2
  name = cosmopharm
3
- version = 0.0.27
4
3
  author = Ivan Antolovic
5
4
  author_email = Ivan.Antolovic@tu-berlin.de
6
5
  maintainer = Martin Klajmon
@@ -1,15 +1,24 @@
1
1
  from setuptools import setup, find_packages
2
+ import subprocess
3
+
4
+ def get_version_from_git():
5
+ try:
6
+ version = subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"]).strip().decode('utf-8')
7
+ return version
8
+ except Exception as e:
9
+ print(f"Error getting version from git: {e}")
10
+ return "0.0.0" # Default or fallback version
2
11
 
3
12
  # Dynamically set the long_description from readme_pypi.md, if available
4
13
  try:
5
14
  with open('./docs/README_pypi.md', encoding='utf-8') as f:
6
15
  long_description = f.read()
7
16
  except FileNotFoundError:
8
- # Fallback to a default description or leave as is if setup.cfg has enough info
9
17
  long_description = None
10
18
 
11
19
  if __name__ == "__main__":
12
20
  setup(
21
+ version=get_version_from_git(),
13
22
  long_description=long_description,
14
23
  long_description_content_type='text/markdown',
15
24
  packages=find_packages(where="src"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cosmopharm
3
- Version: 0.0.27
3
+ Version: 0.0.28
4
4
  Summary: Predictive modeling for drug-polymer compatibility in pharmaceutical formulations using COSMO-SAC.
5
5
  Home-page: https://github.com/ivanantolo/cosmopharm,
6
6
  Author: Ivan Antolovic
File without changes
File without changes