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

Move entry points from setup.py to setup.cfg #13

Merged
merged 1 commit into from
Nov 1, 2021
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
19 changes: 16 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2019 The Salish Sea MEOPAR Contributors
# Copyright 2013-2021 The Salish Sea MEOPAR Contributors
# and The University of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -46,12 +46,25 @@ include_package_data = True
packages = find:
python_requires = >=3.5
install_requires =
; see envs/environment-dev.yaml for conda environment dev installation
; see requirements.txt for versions most recently used in development
# see envs/environment-dev.yaml for conda environment dev installation
# see requirements.txt for versions most recently used in development
arrow
attrs
cliff!=2.9.0
f90nml
gitpython
python-hglib
pyyaml
# 'NEMO-Cmd', ; use python3 -m pip install --editable NEMO-Cmd/

[options.entry_points]
console_scripts =
salishsea = salishsea_cmd.main:main

salishsea.app =
combine = nemo_cmd.combine:Combine
deflate = nemo_cmd.deflate:Deflate
gather = nemo_cmd.gather:Gather
prepare = salishsea_cmd.prepare:Prepare
run = salishsea_cmd.run:Run
split-results = salishsea_cmd.split_results:SplitResults
16 changes: 1 addition & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,4 @@
import setuptools


setuptools.setup(
entry_points={
# The salishsea command:
"console_scripts": ["salishsea = salishsea_cmd.main:main"],
# Sub-command plug-ins:
"salishsea.app": [
"combine = nemo_cmd.combine:Combine",
"deflate = nemo_cmd.deflate:Deflate",
"gather = nemo_cmd.gather:Gather",
"prepare = salishsea_cmd.prepare:Prepare",
"run = salishsea_cmd.run:Run",
"split-results = salishsea_cmd.split_results:SplitResults",
],
}
)
setuptools.setup()