From d66457d2b0c2dfdc461658978b909e92a0260a66 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Tue, 11 Apr 2023 14:05:08 -0400 Subject: [PATCH] add manifest, uplift setup.py to pass twine checks --- .github/workflows/ci.yml | 14 ++++++++++++-- MANIFEST.in | 10 ++++++++++ setup.py | 23 +++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29d1b6f..5991692 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,18 @@ jobs: # Install Tools - name: Install Tools run: | - sudo apt-get install wget build-essential python3 - pip3 install setuptools + 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 # Install (n)Migen / LiteX / Cores - name: Install LiteX diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..034e0d7 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,10 @@ +graft liteeth + +include CONTRIBUTORS +include LICENSE + +graft doc + +prune bench +prune examples +prune test diff --git a/setup.py b/setup.py index 57f9f8a..920a0ab 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="liteeth", + version="2022.12", description="Small footprint and configurable Ethernet core", + 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,8 +21,24 @@ setup( test_suite="test", license="BSD", python_requires="~=3.6", + install_requires=["pyyaml", "litex", "liteiclink"], + extras_require={ + "develop": [ + "setuptools" + ] + }, packages=find_packages(exclude=("test*", "sim*", "doc*", "examples*")), include_package_data=True, + keywords="HDL ASIC FPGA hardware design", + classifiers=[ + "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", + "Environment :: Console", + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + ], entry_points={ "console_scripts": [ "liteeth_gen=liteeth.gen:main",