Move to setup.cfg, add MANIFEST.in

This commit is contained in:
Alex Forencich
2020-12-02 19:05:50 -08:00
parent 53217b614c
commit 4c0882fa23
3 changed files with 49 additions and 36 deletions

3
MANIFEST.in Normal file
View File

@@ -0,0 +1,3 @@
include LICENSE
include README.md
recursive-include tests Makefile test_*.py test_*.v

View File

@@ -1,3 +1,47 @@
# package information
[metadata]
name = cocotbext-axi
version = attr: cocotbext.axi.version.__version__
description = AXI, AXI lite, and AXI stream modules for cocotb
keywords = axi, cocotb
author = Alex Forencich
author_email = alex@alexforencich.com
license = MIT
url = https://github.com/alexforencich/cocotbext-axi
project_urls =
Bug Tracker = https://github.com/alexforencich/cocotbext-axi/issues
Source Code = https://github.com/alexforencich/cocotbext-axi
download_url = https://github.com/alexforencich/cocotbext-axi/tarball/master
long_description = file: README.md
long-description-content-type = text/markdown
platforms = any
classifiers =
Development Status :: 3 - Alpha
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
[options]
packages = find_namespace:
python_requires = >=3.6
install_requires =
cocotb
[options.extras_require]
test =
pytest
cocotb-test
[options.packages.find]
include = cocotbext.*
# pytest configuration
[tool:pytest]
testpaths =
tests
# tox configuration
[tox:tox]
envlist = py36, py37, py38, py39
@@ -16,7 +60,3 @@ deps =
commands =
pytest -n auto
[tool:pytest]
testpaths =
tests

View File

@@ -1,32 +1,2 @@
from setuptools import setup, find_namespace_packages
import os.path
version_py = os.path.join(os.path.dirname(__file__), 'cocotbext', 'axi', 'version.py')
with open(version_py, 'r') as f:
d = dict()
exec(f.read(), d)
version = d['__version__']
with open("README.md", "r") as f:
long_description = f.read()
setup(
name="cocotbext-axi",
author="Alex Forencich",
author_email="alex@alexforencich.com",
description="AXI modules for Cocotb",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/alexforencich/cocotbext-axi",
download_url='http://github.com/alexforencich/cocotbext-axi/tarball/master',
version=version,
packages=find_namespace_packages(include=['cocotbext.*']),
install_requires=['cocotb'],
python_requires='>=3.6',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)"
]
)
from setuptools import setup
setup()