Skip to content

Commit

Permalink
[WP] Edit setup.py to :
Browse files Browse the repository at this point in the history
- Use requirements.txt as install_require
- Edit MoSQITo version number
- Edit test_require
- Add possibility on install packages for testing using python -m pip install "mosqito[testing]"
  • Loading branch information
CedMrnl committed Apr 12, 2021
1 parent 2bc0e73 commit 6630151
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
import setuptools
import platform

# /!\ update before a release
MoSQITo_VERSION = "0.2.0"

# MoSQITo description
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

python_requires = ">= 3.5"

# Pyleecan dependancies
install_requires = [
"setuptools",
"numpy>=1.18.1",
"scipy>=1.4.1",
"matplotlib>=3.1.3",
"pandas",
]
# MoSQITo dependancies
with open("requirements.txt", "r") as file:
requirements = file.readlines()
install_requires = "".join(
requirements
).splitlines() # remove endline in each element

tests_require = ["pytest>=5.4.1"]
tests_require = ["pytest>=5.4.1","pandas", "openpyxl"]

setuptools.setup(
name="mosqito",
version="0.1.0",
version=MoSQITo_VERSION,
author="MoSQITo Developers",
author_email="martin.glesser@eomys.com",
description="Modular Sound Quality Integrated Toolbox",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Eomys/MoSQITo",
download_url="https://github.com/Eomys/MoSQITo/archive/v0.1.0.tar.gz",
download_url="https://github.com/Eomys/MoSQITo/archive/v{}.tar.gz".format(
MoSQITo_VERSION
),
packages=setuptools.find_packages(exclude=["documentation", "tutorials"]),
include_package_data=True,
classifiers=[
Expand All @@ -37,4 +40,7 @@
python_requires=python_requires,
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'testing': tests_require
},
)

0 comments on commit 6630151

Please sign in to comment.