Skip to content

Commit

Permalink
docs: improving setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jagalindo committed Jul 15, 2024
1 parent b6dffc8 commit ffca82d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
6 changes: 6 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pytest
pytest-mock
prospector
mypy
coverage
antlr4-tools
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flamapy-fw~=2.0.0.dev2
uvlparser~=2.0.1
afmparser~=1.0.3
29 changes: 12 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
with open("README.md", "r") as fh:
long_description = fh.read()

def read_requirements(file):
with open(file, "r") as fh:
return fh.read().splitlines()

# Read requirements from the requirements.txt file
requirements = read_requirements("requirements.txt")

# Read development requirements from the dev-requirements.txt file
dev_requirements = read_requirements("requirements-dev.txt")

setuptools.setup(
name="flamapy-fm",
version="2.0.0.dev1",
version="2.0.0.dev2",
author="Flamapy",
author_email="[email protected]",
description="flamapy-fm is a plugin to Flamapy module",
Expand All @@ -21,22 +30,8 @@
"Operating System :: OS Independent",
],
python_requires='>=3.9',
install_requires=[
'flamapy-fw~=2.0.0.dev1',
'uvlparser~=2.0.1',
'afmparser~=1.0.3',
],
install_requires=requirements,
extras_require={
'dev': [
'pytest',
'pytest-mock',
'prospector',
'mypy',
'coverage',
'antlr4-tools',
]
'dev': dev_requirements
},
dependency_links=[
'flamapy~=2.0.0.dev1',
],
)

0 comments on commit ffca82d

Please sign in to comment.