Skip to content

Commit

Permalink
started with pyporject.toml, versioning via setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
florianjoerg committed Feb 6, 2023
1 parent 46c6428 commit 69faf51
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 524 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
protex/_version.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
16 changes: 11 additions & 5 deletions protex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@
"""

# Handle versioneer
from ._version import get_versions
#from ._version import get_versions

# Add imports here
from .protex import *

versions = get_versions()
__version__ = versions["version"]
__git_revision__ = versions["full-revisionid"]
del get_versions, versions
#versions = get_versions()
#__version__ = versions["version"]
#__git_revision__ = versions["full-revisionid"]
#del get_versions, versions
try:
from ._version import version as __version__
from ._version import version_tuple
except ImportError:
__version__ = "unknown version"
version_tuple = (0, 0, "unknown version")

import logging

Expand Down
Loading

0 comments on commit 69faf51

Please sign in to comment.