Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from alexshpilkin/fix-requirements
Browse files Browse the repository at this point in the history
Add pluggy to install_requires and move pytest to tests_require
  • Loading branch information
neelgala authored Aug 22, 2023
2 parents f5854c3 + b79b9aa commit 1a61892
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions riscv_isac/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
click
colorlog
gitpython
ruamel.yaml>=0.16.0
pyyaml
pluggy
pyelftools==0.26
colorlog
pytest
pytablewriter
pyyaml
ruamel.yaml>=0.16.0
1 change: 1 addition & 0 deletions riscv_isac/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
return fp.read()
def read_requires():
with open(os.path.join(here, "riscv_isac/requirements.txt"),"r") as reqfile:
def read_requires(name):
with open(os.path.join(here, "riscv_isac", name),"r") as reqfile:
return reqfile.read().splitlines()

#Long Description
Expand All @@ -22,8 +22,6 @@ def read_requires():

setup_requirements = [ ]

test_requirements = [ ]

setup(
name='riscv_isac',
version='0.18.0',
Expand All @@ -45,7 +43,7 @@ def read_requires():
'requirements.txt'
]
},
install_requires=read_requires(),
install_requires=read_requires("requirements.txt"),
python_requires='>=3.6.0',
entry_points={
'console_scripts': [
Expand All @@ -55,6 +53,6 @@ def read_requires():
include_package_data=True,
keywords='riscv_isac',
test_suite='tests',
tests_require=test_requirements,
tests_require=read_requires("test_requirements.txt"),
zip_safe=False,
)

0 comments on commit 1a61892

Please sign in to comment.