From 54e086c93ab925152faeb9571080dd18ac3eba46 Mon Sep 17 00:00:00 2001 From: Boyan <36108495+confestim@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:37:07 +0200 Subject: [PATCH] Slight update in docs. Released version 1.0.21. --- .gitignore | 1 + docs/api.md | 2 +- setup.py | 29 ----------------------------- temmies/__init__.py | 1 + temmies/course.py | 1 + temmies/exceptions/__init__.py | 0 6 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 setup.py create mode 100644 temmies/exceptions/__init__.py diff --git a/.gitignore b/.gitignore index 1d4ceea..06dcc4d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ config.py tests/ pathfinding/ test.py +setup.py #Doc env .docs_env diff --git a/docs/api.md b/docs/api.md index 67bfe0b..cb1c126 100644 --- a/docs/api.md +++ b/docs/api.md @@ -5,7 +5,7 @@ Creates the initial connection to Themis. ### Usage ```python -from temmies.Themis import Themis +from temmies.themis import Themis themis = Themis("s-number", "password") ``` diff --git a/setup.py b/setup.py deleted file mode 100644 index e8c74a8..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -from setuptools import find_packages, setup - -with open("README.md", "r") as f: - l_description = f.read() - -setup( - name="temmies", - version="1.0.1", - package_dir = {"": "temmies"}, - packages=find_packages(where="temmies"), - description="A wrapper for the Themis website", - long_description=l_description, - long_description_content_type="text/markdown", - url="https://github.com/Code-For-Groningen/temmies", - author="Boyan K.", - author_email="boyan@confest.im", - license="GPLv3", - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Programming Language :: Python :: 3.9", - ], - install_requires=[ - "requests", - "bs4", - ], - python_requires=">=3.9", -) \ No newline at end of file diff --git a/temmies/__init__.py b/temmies/__init__.py index e69de29..22f2cd7 100644 --- a/temmies/__init__.py +++ b/temmies/__init__.py @@ -0,0 +1 @@ +from .themis import Themis \ No newline at end of file diff --git a/temmies/course.py b/temmies/course.py index d3771f4..131b789 100644 --- a/temmies/course.py +++ b/temmies/course.py @@ -4,6 +4,7 @@ Houses the Course class which is used to represent a course in a year. from bs4 import BeautifulSoup from requests import Session + from .exercise_group import ExerciseGroup from .exceptions.course_unavailable import CourseUnavailable from .exceptions.illegal_action import IllegalAction diff --git a/temmies/exceptions/__init__.py b/temmies/exceptions/__init__.py new file mode 100644 index 0000000..e69de29