Commit cf31c449 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added entry point

parent e90295b3
Pipeline #17340 passed with stage
in 1 minute and 27 seconds
......@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
import sys
import numpy
......@@ -24,5 +25,10 @@ def get_an_array(nnumbers=1):
return numpy.arange(nnumbers)
if __name__ == "__main__":
def main():
get_an_array(1)
sys.exit()
if __name__ == "__main__":
main()
......@@ -16,5 +16,6 @@ setup(
"linters": linters_require,
},
packages=find_packages(),
entry_points={"console_scripts": ["betty = betty.betty:main"]},
python_requires=">=3.6",
)
......@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
from betty.core import get_an_array
from betty.betty import get_an_array
def test_func():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment