add manifest, uplift setup.py to pass twine checks

This commit is contained in:
Tim Paine 2023-04-07 18:59:14 -04:00
parent 6c8df7cc7b
commit d7886c5fc5
3 changed files with 47 additions and 6 deletions

View File

@ -16,13 +16,20 @@ jobs:
# Install Tools # Install Tools
- name: Install Tools - name: Install Tools
run: | run: |
sudo apt-get install wget build-essential python3 ninja-build sudo apt-get install wget build-essential ninja-build
sudo apt-get install libevent-dev libjson-c-dev flex bison sudo apt-get install libevent-dev libjson-c-dev flex bison
sudo apt-get install libfl-dev libfl2 zlib1g-dev sudo apt-get install libfl-dev libfl2 zlib1g-dev
pip3 install setuptools
pip3 install requests - name: Set up Python ${{ matrix.python-version }}
pip3 install pexpect uses: actions/setup-python@v4
pip3 install meson 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 # Install (n)Migen / LiteX / Cores
- name: Install LiteX - name: Install LiteX

9
MANIFEST.in Normal file
View File

@ -0,0 +1,9 @@
graft litedram
include CONTRIBUTORS
include LICENSE
graft doc
prune examples
prune test

View File

@ -4,19 +4,44 @@ from setuptools import setup
from setuptools import find_packages from setuptools import find_packages
with open("README.md", "r") as fp:
long_description = fp.read()
setup( setup(
name="litedram", name="litedram",
description="Small footprint and configurable DRAM core", description="Small footprint and configurable DRAM core",
long_description=long_description,
long_description_content_type="text/markdown",
author="Florent Kermarrec", author="Florent Kermarrec",
version="2022.12",
author_email="florent@enjoy-digital.fr", author_email="florent@enjoy-digital.fr",
url="http://enjoy-digital.fr", url="http://enjoy-digital.fr",
download_url="https://github.com/enjoy-digital/litedram", download_url="https://github.com/enjoy-digital/litedram",
test_suite="test", test_suite="test",
license="BSD", license="BSD",
python_requires="~=3.6", python_requires="~=3.6",
install_requires=["pyyaml"], install_requires=["pyyaml", "litex"],
extras_require={
"develop": [
"meson"
"pexpect"
"setuptools"
"requests"
]
},
packages=find_packages(exclude=("test*", "sim*", "doc*", "examples*")), packages=find_packages(exclude=("test*", "sim*", "doc*", "examples*")),
include_package_data=True, 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={ entry_points={
"console_scripts": [ "console_scripts": [
"litedram_gen=litedram.gen:main", "litedram_gen=litedram.gen:main",