Skip to content

Commit

Permalink
Use requirements.txt in setup.py and update dev-setup.bash to pip ins…
Browse files Browse the repository at this point in the history
…tall once
  • Loading branch information
kenjyco committed Mar 10, 2022
1 parent 8eb7cfa commit 390f5a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
10 changes: 3 additions & 7 deletions dev-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ fi
[[ ! -d venv ]] && $PYTHON -m venv venv
PYTHON=$(dirname $PIP)/python
$PYTHON -m pip install --upgrade pip wheel
$PIP install -r requirements.txt ${pip_args[@]}
if [[ ! $(uname) =~ "MINGW" ]]; then
$PIP install ipython pdbpp ${pip_args[@]}
else
$PIP install ipython ${pip_args[@]}
fi
$PYTHON setup.py develop
extra_packages=(ipython)
[[ ! $(uname) =~ "MINGW" ]] && extra_packages+=(pdbpp)
$PIP install ${extra_packages[@]} ${pip_args[@]} --editable .
14 changes: 5 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
with open('README.rst', 'r') as fp:
long_description = fp.read()

with open('requirements.txt', 'r') as fp:
requirements = fp.read().splitlines()

setup(
name='mocp-cli',
version='0.1.18',
Expand All @@ -15,18 +18,11 @@
url='https://github.com/kenjyco/mocp-cli',
download_url='https://github.com/kenjyco/mocp-cli/tarball/v0.1.18',
packages=find_packages(),
install_requires=[
'bg-helper',
'chloop',
'click>=6.0',
'fs-helper',
'input-helper',
'mocp',
],
install_requires=requirements,
include_package_data=True,
package_dir={'': '.'},
package_data={
'' : ['*.ini'],
'': ['*.ini'],
},
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 390f5a5

Please sign in to comment.