Skip to content
Open
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
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'

steps:
- uses: actions/checkout@v2
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[build-system]
requires = [
"setuptools >= 35.0.2",
"wheel >= 0.29.0"
]
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 120

[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py3

[testenv]
deps =
pytest
requests
filetype
commands = pytest {posargs}
"""
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def read(fname):
description="SymbiFlow Tools Data Manager",
python_requires=">=3.6",
url="https://github.com/SymbiFlow/symbiflow-tools-data-manager.git",
entry_points={
"console_scripts": ["symbiflow_get_latest_artifact_url=stdm.__init__:main"]
},
entry_points={"console_scripts": ["symbiflow_get_latest_artifact_url=stdm.__init__:main"]},
install_requires=[
"requests",
],
Expand Down
12 changes: 3 additions & 9 deletions stdm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@


# For now we use only `symbiflow-arch-defs` and download tarballs
def get_latest_artifact_url(
project="symbiflow-arch-defs", build_name="install", jobset="continuous"
):
def get_latest_artifact_url(project="symbiflow-arch-defs", build_name="install", jobset="continuous"):
# Handle case in which there is build_name is absent
if build_name:
build_name = f"/{build_name}"
Expand Down Expand Up @@ -78,9 +76,7 @@ def get_latest_artifact_url(


def main():
parser = argparse.ArgumentParser(
description="Retrieves the latest artifacts of SymbiFlow-related CIs."
)
parser = argparse.ArgumentParser(description="Retrieves the latest artifacts of SymbiFlow-related CIs.")

parser.add_argument(
"--project",
Expand Down Expand Up @@ -121,9 +117,7 @@ def main():

if args.get_build_number:
assert not (args.get_all_urls or args.get_single_url)
_, build_number = get_latest_artifact_url(
args.project, args.build_name, args.jobset
)
_, build_number = get_latest_artifact_url(args.project, args.build_name, args.jobset)
print(build_number)

elif args.get_all_urls:
Expand Down
4 changes: 1 addition & 3 deletions tests/test_stdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
import pytest
import argparse

parser = argparse.ArgumentParser(
description="Retrieves the latest artifacts of SymbiFlow-related CIs."
)
parser = argparse.ArgumentParser(description="Retrieves the latest artifacts of SymbiFlow-related CIs.")


def test_get_symbiflow_arch_defs_tarball():
Expand Down
9 changes: 0 additions & 9 deletions tox.ini

This file was deleted.