From 327f87ca34e84857faf5a8e5d0bfda5530963244 Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 17 Jan 2021 03:04:38 +0100 Subject: [PATCH] chnages in build --- build_deb.sh | 16 +++++++++++++++- changelog | 5 +++++ compLib/Api.py | 7 +++++++ docs/source/lib/Api.rst | 7 +++++++ setup.py | 4 +++- 5 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 changelog create mode 100644 docs/source/lib/Api.rst diff --git a/build_deb.sh b/build_deb.sh index 1aab7da..f6c58ea 100644 --- a/build_deb.sh +++ b/build_deb.sh @@ -1,8 +1,22 @@ #!/usr/bin/zsh +export PYTHONDONTWRITEBYTECODE=1 + # be sure to change version if needed! fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefix python3 \ -m '"Joel Klimont" ' \ --license 'proprietary' \ --description 'Library for robot used in the competition' \ --after-install postinstall.sh \ - -v 0.0.2-3 -t deb setup.py + --deb-generate-changes \ + --deb-dist "buster" \ + --deb-priority "optional" \ + --deb-changelog changelog \ + --deb-upstream-changelog changelog \ + -v 0.0.2-4 -t deb setup.py + +# --deb-field "Distribution: stable" \ + +sudo apt purge python3-complib -y +sudo apt install ./python3-* +sudo apt search complib +#ar vx ./python3* \ No newline at end of file diff --git a/changelog b/changelog new file mode 100644 index 0000000..a6c361a --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +python3-complib (0.0.2-4) stable; urgency=low + + * Initial release. + + -- Joel Klimont Fri, 15 Jan 2021 23:14:01 +0100 \ No newline at end of file diff --git a/compLib/Api.py b/compLib/Api.py index 060bd1a..a96332a 100644 --- a/compLib/Api.py +++ b/compLib/Api.py @@ -13,6 +13,9 @@ API_URL_SIMON_SAYS = API_URL + "simonSays" class Seeding: + """Class used for communicating with seeding api + """ + @staticmethod def get_park() -> int: """Get a parkingsapce from the api. @@ -36,6 +39,8 @@ class Seeding: class Position: + """Datastructure for holding a position + """ def __init__(self, x, y, degrees): self.x = x self.y = y @@ -43,6 +48,8 @@ class Position: class DoubleElim: + """Class used for communicating with double elimination api + """ @staticmethod def get_position() -> Position: """Get position of the robot diff --git a/docs/source/lib/Api.rst b/docs/source/lib/Api.rst new file mode 100644 index 0000000..717baff --- /dev/null +++ b/docs/source/lib/Api.rst @@ -0,0 +1,7 @@ +.. _lib_api: + +Api +===== + +.. automodule:: compLib.Api + :members: \ No newline at end of file diff --git a/setup.py b/setup.py index db795ac..2c53186 100644 --- a/setup.py +++ b/setup.py @@ -12,10 +12,12 @@ else: setuptools.setup( name="complib", - version="0.0.1", + version="0.0.2", author="F-WuTs", author_email="--", description="", + summary="Library for the competition", + platforms=["any"], long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/F-WuTS/compLIB",