diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28a..7a6ef0e5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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: diff --git a/setup.py b/setup.py index 0c2f9834..8d86bd25 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ -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" @@ -10,7 +10,7 @@ def find_packages(prefix: str) -> list[str]: LONG_DESCRIPTION = f.read() AUTHOR_EMAIL = "central@projectneura.org" -setuptools.setup( +setup( name="leads", version="0.0.1", author="ProjectNeura", @@ -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", @@ -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", @@ -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", @@ -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"] )