Skip to content

Commit

Permalink
Merge pull request #10 from aboucaud:add-entry-point
Browse files Browse the repository at this point in the history
Add console script
  • Loading branch information
aboucaud authored Aug 2, 2021
2 parents 0e600eb + 2da903a commit 9505563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ jobs:
- name: Test the code demo
run: |
python -m galcheat
- name: Test the console script
run: |
galcheat
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@

setup(
name="galcheat",
version="0.0.2",
version="0.0.3",
url="https://github.com/aboucaud/galcheat/",
description="Tiny library of galaxy surveys most useful parameters (with units)",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="BlendingToolKit developers",
author="Alexandre Boucaud",
author_email="[email protected]",
maintainer="Alexandre Boucaud",
packages=["galcheat"],
package_dir={"galcheat": "galcheat"},
package_data={"galcheat": ["data/*.yaml"]},
include_package_data=True,
entry_points={"console_scripts": ["galcheat = galcheat.__main__:main"]},
install_requires=["astropy", "pyyaml"],
python_requires=">=3.7",
license="MIT",
Expand Down

0 comments on commit 9505563

Please sign in to comment.