-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Tieqiong/ver
Replace source code: <package>/ __init__.py and version.py
- Loading branch information
Showing
2 changed files
with
49 additions
and
554 deletions.
There are no files selected for viewing
26 changes: 23 additions & 3 deletions
26
{{ cookiecutter.repo_name }}/src/{{ cookiecutter.package_dir_name }}/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
from ._version import get_versions | ||
#!/usr/bin/env python | ||
############################################################################## | ||
# | ||
# (c) {% now 'utc', '%Y' %} The Trustees of Columbia University in the City of New York. | ||
# All rights reserved. | ||
# | ||
# File coded by: Billinge Group members and community contributors. | ||
# | ||
# See GitHub contributions for a more detailed list of contributors. | ||
# https://github.com/{{ cookiecutter.github_org }}/{{ cookiecutter.repo_name }}/graphs/contributors | ||
# | ||
# See LICENSE.rst for license information. | ||
# | ||
############################################################################## | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
"""{{ cookiecutter.project_short_description }}""" | ||
|
||
# package version | ||
from {{cookiecutter.project_name}}.version import __version__ | ||
|
||
# silence the pyflakes syntax checker | ||
assert __version__ or True | ||
|
||
# End of file |
Oops, something went wrong.