Skip to content

Commit

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


def find_packages(prefix: str) -> list[str]:
return list(map(lambda p: prefix + "." + p, setuptools.find_packages(prefix)))
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]"

setuptools.setup(
setup(
name="leads",
version="0.0.1",
author="ProjectNeura",
Expand All @@ -20,11 +20,11 @@ def find_packages(prefix: str) -> list[str]:
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_packages("leads"),
packages=find_certain_packages("leads"),
install_requires=[]
)

setuptools.setup(
setup(
name="leads-dashboard",
version="0.0.1",
author="ProjectNeura",
Expand All @@ -34,11 +34,11 @@ def find_packages(prefix: str) -> list[str]:
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_packages("leads_dashboard"),
packages=find_certain_packages("leads_dashboard"),
install_requires=["dearpygui", "leads"]
)

setuptools.setup(
setup(
name="leads-emulation",
version="0.0.1",
author="ProjectNeura",
Expand All @@ -48,11 +48,11 @@ def find_packages(prefix: str) -> list[str]:
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_packages("leads_emulation"),
packages=find_certain_packages("leads_emulation"),
install_requires=["leads"]
)

setuptools.setup(
setup(
name="leads-vec",
version="0.0.1",
author="ProjectNeura",
Expand All @@ -62,6 +62,6 @@ def find_packages(prefix: str) -> list[str]:
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/ProjectNeura/LEADS",
packages=find_packages("leads_vec"),
packages=find_certain_packages("leads_vec"),
install_requires=["keyboard", "leads", "leads-dashboard", "leads-emulation"]
)

0 comments on commit d8389ce

Please sign in to comment.