Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldv_datamanagement_tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LDV
ldv_datamanagement_tasks
Commits
be074d84
Commit
be074d84
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
Make __version__ global available for all supported python versions
parent
de2b7250
No related branches found
No related tags found
1 merge request
!1
Make __version__ global available for all supported python versions
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
map/__init__.py
+7
-0
7 additions, 0 deletions
map/__init__.py
setup.cfg
+1
-0
1 addition, 0 deletions
setup.cfg
with
8 additions
and
0 deletions
map/__init__.py
+
7
−
0
View file @
be074d84
"""
My Awesome Package
"""
"""
My Awesome Package
"""
try
:
from
importlib
import
metadata
except
ImportError
:
# for Python<3.8
import
importlib_metadata
as
metadata
__version__
=
metadata
.
version
(
"
my-awseome-app
"
)
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
0
View file @
be074d84
...
@@ -30,6 +30,7 @@ include_package_data = true
...
@@ -30,6 +30,7 @@ include_package_data = true
packages
=
find:
packages
=
find:
python_requires
=
>=3.7
python_requires
=
>=3.7
install_requires
=
install_requires
=
importlib-metadata>=0.12
;python_version<"3.8"
numpy
numpy
[flake8]
[flake8]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment