Skip to content

Commit

Permalink
Update setup.py to include requirment3 file (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tao Feng authored Apr 16, 2019
1 parent a9fb7af commit 3d4b4a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion requirements3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ flask==1.0.2
# The wheel project provides a bdist_wheel command for setuptools >= 0.8.0
# License: MIT
# Upstream url: https://github.com/pypa/wheel
wheel==0.31.1
wheel==0.33.1

# HTTP for Humans
# License: Apache
Expand Down
25 changes: 7 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ def build_js() -> None:

try:
subprocess.check_call(['npm install --only=prod'], cwd=PACKAGE_DIR, shell=True)
subprocess.check_call(['npm run build'], cwd=PACKAGE_DIR, shell=True)
except Exception as e:
logging.warn('Installation of npm dependencies failed')
logging.warn(str(e))


build_js()

__version__ = '1.0.0'
requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements3.txt')
with open(requirements_path) as requirements_file:
requirements = requirements_file.readlines()

__version__ = '1.0.1'


setup(
Expand All @@ -42,23 +47,7 @@ def build_js() -> None:
packages=find_packages(exclude=['tests*']),
include_package_data=True,
dependency_links=[],
install_requires=[
# Packages in here should rarely be pinned. This is because these
# packages (at the specified version) are required for project
# consuming this library. By pinning to a specific version you are the
# number of projects that can consume this or forcing them to
# upgrade/downgrade any dependencies pinned here in their project.
#
# Generally packages listed here are pinned to a major version range.
#
# e.g.
# Python FooBar package for foobaring
# pyfoobar>=1.0, <2.0
#
# This will allow for any consuming projects to use this library as
# long as they have a version of pyfoobar equal to or greater than 1.x
# and less than 2.x installed.
],
install_requires=requirements,
python_requires=">=3.6",
entry_points="""
[action_log.post_exec.plugin]
Expand Down

0 comments on commit 3d4b4a0

Please sign in to comment.