Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

setup.py loads version information from VERSION #37

Merged
merged 1 commit into from
May 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include LICENSE README.rst
include LICENSE README.rst VERSION
recursive-include pinject *.py
recursive-exclude pinject *_test.py
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import os
from setuptools import setup
from pinject import (
__version__,
)

# Extra __version__ from VERSION instead of pinject.version so pip doen't
# import __init__.py and bump into dependencies that haven't been installed
# yet.
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as VERSION:
__version__ = VERSION.read().strip()

setup(name='pinject',
version=__version__,
Expand Down