Skip to content

Commit

Permalink
Package now installable
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed May 19, 2021
1 parent 5da5328 commit 957ff55
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
10 changes: 2 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ package_dir =
# For more information, check out https://semver.org/.
install_requires =
importlib-metadata; python_version<"3.8"

jinja2

[options.packages.find]
where = src
Expand All @@ -62,14 +62,8 @@ testing =

[options.entry_points]
# Add here console scripts like:
# console_scripts =
console_scripts =
scorm = scorm_package.scorm:main
# For example:
# console_scripts =
# fibonacci = scorm_package.skeleton:run
# And any other entry points, for example:
# pyscaffold.cli =
# awesome = pyscaffoldext.awesome.extension:AwesomeExtension

[tool:pytest]
# Specify command line options as you would do when invoking pytest directly.
Expand Down
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
Setup file for scorm_package.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 4.0.1.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
from setuptools import setup

if __name__ == "__main__":
try:
setup(use_scm_version={"version_scheme": "no-guess-dev"})
except: # noqa
print(
"\n\nAn error occurred while building the project, "
"please ensure you have the most updated version of setuptools, "
"setuptools_scm and wheel with:\n"
" pip install -U setuptools setuptools_scm wheel\n\n"
)
raise
2 changes: 1 addition & 1 deletion src/scorm_package/scorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ def main():

# Call the main function
if __name__ == "__main__":
main()
main()
2 changes: 1 addition & 1 deletion tests/test_scorm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scorm.scorm import jinja_template
from scorm_package.scorm import jinja_template
def test_template():

expected = """
Expand Down

0 comments on commit 957ff55

Please sign in to comment.