chnages in build
This commit is contained in:
parent
24817dcc32
commit
327f87ca34
5 changed files with 37 additions and 2 deletions
16
build_deb.sh
16
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" <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
5
changelog
Normal 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
|
|
@ -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
7
docs/source/lib/Api.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
.. _lib_api:
|
||||
|
||||
Api
|
||||
=====
|
||||
|
||||
.. automodule:: compLib.Api
|
||||
:members:
|
4
setup.py
4
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",
|
||||
|
|
Reference in a new issue