Skip to content

Commit

Permalink
try console script via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed Aug 20, 2024
1 parent e13c858 commit 78ac700
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cnapy"
version = "1.2.2"
version = "1.2.1.1"
authors = [
{ name="Sven Thiele" },
{ name="Axel von Kamp" },
Expand All @@ -20,6 +20,8 @@ dependencies = ["appdirs>=1.4", "matplotlib>=3.6", "requests>=2.28",
"qtpy>=2.3", "pyqtwebengine>=5.15", "qtconsole==5.4",
"gurobipy>=11.0", "cplex>=22.1", "numpy==1.23", "scipy==1.12", "openpyxl"]

[project.scripts]
cnapy = "cnapy.__main__:main_cnapy"
[project.urls]
Homepage = "https://github.com/cnapy-org/CNApy"
Issues = "https://github.com/cnapy-org/CNApy/issues"
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
package_dir={'cnapy': 'cnapy'},
package_data={'cnapy': [
'data/*.svg', 'data/escher_cnapy.html', 'data/escher.min.js']},
entry_points={'console_scripts': [
'cnapy = cnapy.__main__:main_cnapy']},
# entry_points={'console_scripts': [
# 'cnapy = cnapy.__main__:main_cnapy']},
)

# console script on Windows is missing, but can call
# python -m cnapy

0 comments on commit 78ac700

Please sign in to comment.