Skip to content

Commit

Permalink
Add "console_scripts" to "setup.py" and enhance requirements resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Mar 5, 2024
1 parent 7537e2b commit 71a82b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ classifiers =
Topic :: System :: Clustering
Topic :: System :: Systems Administration
Topic :: Utilities

[options]
install_requires=file:requirements.txt
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
"""

from os import makedirs, path
import os

try:
from setuptools import find_packages, setup
Expand All @@ -32,16 +32,16 @@ def get_version():
:since: v0.0.1
"""

return "v0.0.1"
return os.environ.get("ROOKIFY_VERSION", "0.0.0-dev")
#

_setup = { "version": get_version()[1:],
"data_files": [ ( "docs", [ "LICENSE", "README.md" ]) ],
_setup = { "version": get_version(),
"data_files": [ ( "docs", [ "LICENSE", "README.md" ] ) ],
"entry_points": { "console_scripts": [ "rookify = rookify.__main__:main" ] },
"test_suite": "tests"
}

_setup['package_dir'] = { "": "src" }
_setup['packages'] = find_packages("src")

print(_setup)
setup(**_setup)

0 comments on commit 71a82b5

Please sign in to comment.