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.
- {cosmopharm-0.0.27/src/cosmopharm.egg-info → cosmopharm-0.0.28}/PKG-INFO +1 -1
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/setup.cfg +0 -1
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/setup.py +10 -1
- {cosmopharm-0.0.27 → cosmopharm-0.0.28/src/cosmopharm.egg-info}/PKG-INFO +1 -1
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/LICENSE +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/README.md +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/actmodel.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/actmodels/cosmo.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/components.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/lle.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/equilibrium/sle.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/convert.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/helpers.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/lle_scanner.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm/utils/spacing.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/SOURCES.txt +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/dependency_links.txt +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/requires.txt +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.28}/src/cosmopharm.egg-info/top_level.txt +0 -0
@@ -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"),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|