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

Commit

Permalink
Merge pull request #37 from rockobonaparte/master
Browse files Browse the repository at this point in the history
setup.py loads version information from VERSION
  • Loading branch information
huan authored May 25, 2019
2 parents 2c7168a + 9a6e410 commit e63fc77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
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

0 comments on commit e63fc77

Please sign in to comment.