-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gfrn
committed
Jul 26, 2022
1 parent
ee03358
commit 627489d
Showing
11 changed files
with
61 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[tool.black] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.git | ||
)/ | ||
''' | ||
|
||
[build-system] | ||
requires = ["setuptools>=40.8.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name="pydrs" | ||
classifiers=[ | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering", | ||
"Operating System :: OS Independent" | ||
] | ||
description="" | ||
dependencies = [ | ||
"matplotlib", | ||
"numpy", | ||
"pyserial==3.5" | ||
] | ||
license = {text = "MIT License"} | ||
requires-python=">=3.6" | ||
dynamic=["version", "readme"] | ||
|
||
[tool.setuptools] | ||
zip-safe=false | ||
include-package-data=true | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pydrs.__version__"} | ||
readme = {file = ["README.md"]} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"bandit==1.7.0", | ||
"black==21.10b0", | ||
"flake8==4.0.1", | ||
"flake8-bandit==2.1.2", | ||
"flake8-bugbear==21.9.2", | ||
"flake8-implicit-str-concat==0.2.0", | ||
"mypy==0.812", | ||
"mypy-extensions==0.4.3", | ||
"pyflakes==2.3.1", | ||
"types-setuptools" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
import pkg_resources | ||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
from src.pydrs import __author__, __version__ | ||
|
||
|
||
def get_abs_path(relative): | ||
return pkg_resources.resource_filename(__name__, relative) | ||
|
||
|
||
def get_long_description() -> str: | ||
desc = "" | ||
with open(get_abs_path("README.md"), "r") as _f: | ||
desc += _f.read().strip() | ||
|
||
desc += "\n\n" | ||
|
||
with open(get_abs_path("CHANGES.md"), "r") as _f: | ||
desc += _f.read().strip() | ||
|
||
return desc | ||
|
||
|
||
long_description = get_long_description() | ||
|
||
|
||
with open(get_abs_path("requirements.txt"), "r") as _f: | ||
_requirements = _f.read().strip().split("\n") | ||
|
||
setup( | ||
author=__author__, | ||
classifiers=[ | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering", | ||
"Operating System :: OS Independent", | ||
], | ||
description="", | ||
download_url="https://github.com/lnls-sirius/pydrs", | ||
include_package_data=True, | ||
install_requires=_requirements, | ||
license="MIT License", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
name="pydrs", | ||
url="https://github.com/lnls-sirius/pydrs", | ||
version=__version__, | ||
packages=find_packages( | ||
where="src", | ||
include=["pydrs*"], | ||
), | ||
package_dir={"": "src"}, | ||
python_requires=">=3.6", | ||
test_suite="tests", | ||
zip_safe=False, | ||
) | ||
setup() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
from .info import __author__, __date__, __version__ | ||
from .pydrs import SerialDRS | ||
|
||
__all__ = ["__author__", "__version__", "__date__", "SerialDRS"] | ||
__version__ = "1.2.1" | ||
__date__ = "25/07/2022" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters