chnages in build

This commit is contained in:
Joel 2021-01-17 03:04:38 +01:00
parent 24817dcc32
commit 327f87ca34
No known key found for this signature in database
GPG key ID: BDDDBECD0808290E
5 changed files with 37 additions and 2 deletions

View file

@ -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" <joel.klimont@gmail.com>' \
--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*

5
changelog Normal file
View file

@ -0,0 +1,5 @@
python3-complib (0.0.2-4) stable; urgency=low
* Initial release.
-- Joel Klimont <joel.klimont@gmail.com> Fri, 15 Jan 2021 23:14:01 +0100

View file

@ -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

7
docs/source/lib/Api.rst Normal file
View file

@ -0,0 +1,7 @@
.. _lib_api:
Api
=====
.. automodule:: compLib.Api
:members:

View file

@ -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",