Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'packaging' as dependency #5

Merged
merged 3 commits into from Sep 29, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -7,6 +7,7 @@ python:

install:
- pip install sphinx_rtd_theme codecov packaging
- "python -c $'import os, packaging.version as version\\nv = version.parse(os.environ.get(\"TRAVIS_TAG\", \"1.0\")).public\\nwith open(\"VERSION\", \"w\") as f: f.write(v)'"
- python setup.py install
- cd docs
- make clean html
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include VERSION
9 changes: 5 additions & 4 deletions setup.py
Expand Up @@ -3,8 +3,6 @@
# Licensed under the terms of the Apache License, Version 2.0. See the LICENSE file associated with the project for terms.

import os
import packaging.version as version

from setuptools import setup

LONG_DESCRIPTION = """
Expand All @@ -16,11 +14,14 @@
"""

# Grab the version as the tag name from the Travis build, or else use a default.
VERSION = os.environ.get('TRAVIS_TAG', '1.0')
if os.path.isfile('VERSION'):
VERSION = open('VERSION').read()
else:
VERSION = os.environ.get('TRAVIS_TAG', '1.0')

setup(
name='graphkit',
version=version.parse(VERSION).public,
version=VERSION,
description='Lightweight computation graphs for Python',
long_description=LONG_DESCRIPTION,
author='Huy Nguyen, Arel Cordero, Pierre Garrigues, Rob Hess, Tobi Baumgartner, Clayton Mellina',
Expand Down