Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize SDB packaging #201

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: python3 setup.py install
#
# The statement below is used for debugging the Github job.
# The statements below are used for debugging the Github job:
# - Ensure that we are using the right python version from
# the Github action matrix.
# - Ensure that drgn (the main dependency of sdb) is installed
# as part of `setup.py install`.
#
- run: python3 --version
- run: drgn -h
#
# Verify "pylint" runs successfully.
#
Expand Down Expand Up @@ -80,8 +85,7 @@ jobs:
with:
python-version: '3.6'
- run: python3 -m pip install yapf
- run: yapf --diff --style google --recursive sdb
- run: yapf --diff --style google --recursive tests
- run: yapf --diff --style google --recursive sdb tests setup.py
#
# Verify "mypy" runs successfully.
#
Expand Down Expand Up @@ -120,3 +124,16 @@ jobs:
- uses: actions/checkout@v2
- run: ./.github/scripts/install-shfmt.sh
- run: /usr/local/bin/shfmt -d .
#
# Verify that we can generate a new distribution archive.
#
distribution-archives:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- run: python3 -m pip install --user --upgrade setuptools wheel
- run: python3 setup.py sdist bdist_wheel
- run: ls dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sdb
The Slick/Simple Debugger
The Slick Debugger

![](https://github.com/delphix/sdb/workflows/.github/workflows/main.yml/badge.svg)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
35 changes: 19 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,33 @@

from setuptools import setup, find_packages

with open("README.md", "r") as f:
long_description = f.read()

setup(
name='sdb',
version="0.1.0",

packages=[
"sdb",
"sdb.commands",
"sdb.commands.internal",
"sdb.commands.linux",
"sdb.commands.linux.internal",
"sdb.commands.spl",
"sdb.commands.spl.internal",
"sdb.commands.zfs",
"sdb.commands.zfs.internal",
"sdb.internal",
python_requires='>=3.6',
packages=find_packages(),
install_requires=[
'drgn>=0.0.3',
],

entry_points={
'console_scripts': ['sdb=sdb.internal.cli:main'],
},

author='Delphix Platform Team',
author_email='[email protected]',
description='The Slick/Simple Debugger',
description='The Slick Debugger',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/delphix/sdb',
license='Apache-2.0',
url='https://github.com/sdimitro/sdb',
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Debuggers",
"Topic :: System :: Operating System Kernels :: Linux",
],
)