Skip to content

Commit

Permalink
Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Nov 23, 2023
1 parent 2c5985d commit ad359ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install build
- name: Build package
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
54 changes: 3 additions & 51 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,67 +1,19 @@
from setuptools import find_packages, setup


def find_certain_packages(prefix: str) -> list[str]:
return list(map(lambda p: prefix + "." + p, find_packages(prefix)))


SHORT_DESCRIPTION = "Lightweight Embedded Assisted Driving System"
with open("./README.md", "r") as f:
LONG_DESCRIPTION = f.read()
AUTHOR_EMAIL = "[email protected]"

setup(
name="leads",
version="0.0.1",
author="ProjectNeura",
author_email=AUTHOR_EMAIL,
description=SHORT_DESCRIPTION,
author_email="[email protected]",
description="Lightweight Embedded Assisted Driving System",
license='Apache License 2.0',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_certain_packages("leads"),
packages=find_packages(),
install_requires=[]
)

setup(
name="leads-dashboard",
version="0.0.1",
author="ProjectNeura",
author_email=AUTHOR_EMAIL,
description=SHORT_DESCRIPTION,
license='Apache License 2.0',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_certain_packages("leads_dashboard"),
install_requires=["dearpygui", "leads"]
)

setup(
name="leads-emulation",
version="0.0.1",
author="ProjectNeura",
author_email=AUTHOR_EMAIL,
description=SHORT_DESCRIPTION,
license='Apache License 2.0',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_certain_packages("leads_emulation"),
install_requires=["leads"]
)

setup(
name="leads-vec",
version="0.0.1",
author="ProjectNeura",
author_email=AUTHOR_EMAIL,
description=SHORT_DESCRIPTION,
license='Apache License 2.0',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_certain_packages("leads_vec"),
install_requires=["keyboard", "leads", "leads-dashboard", "leads-emulation"]
)

0 comments on commit ad359ba

Please sign in to comment.