From f047844f86c0ce00593de19fa42e00d45fb5e383 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 17 Sep 2023 17:50:04 -0400 Subject: [PATCH] Add version number, include readme as long description, add explicit litex dependency, use github action for python install, add dependabot action upgrader, update checkout action --- .github/dependabot.yml | 6 ++++++ .github/workflows/ci.yml | 16 ++++++++++++---- setup.py | 8 ++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eba55d5..ce62778 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,18 @@ jobs: # Install Tools - name: Install Tools run: | - sudo apt-get install wget build-essential python3 - pip3 install setuptools - pip3 install requests - pip3 install meson + sudo apt-get install wget build-essential + + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: "3.9" + cache: "pip" + cache-dependency-path: "setup.py" + + - name: Install Python dependencies + run: | + python3 -m pip install setuptools requests pexpect meson # Install (n)Migen / LiteX / Cores - name: Install LiteX diff --git a/setup.py b/setup.py index 349b92b..5966264 100755 --- a/setup.py +++ b/setup.py @@ -4,9 +4,16 @@ from setuptools import setup from setuptools import find_packages +with open("README.md", "r") as fp: + long_description = fp.read() + + setup( name="litex-boards", + version="2023.08", description="LiteX supported boards", + long_description=long_description, + long_description_content_type="text/markdown", author="Florent Kermarrec", author_email="florent@enjoy-digital.fr", url="http://enjoy-digital.fr", @@ -14,6 +21,7 @@ setup( test_suite="test", license="BSD", python_requires="~=3.6", + install_requires=["litex"], include_package_data=True, packages=find_packages(exclude=['test*']), )