-
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
Showing
3 changed files
with
27 additions
and
15 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 @@ | ||
__version__ = "0.1.0" |
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,8 +1,8 @@ | ||
# flake8: noqa: F401 | ||
|
||
# from . import analysis, styles | ||
# s = styles | ||
from .__config__ import __version__ | ||
from .core import ax, figure_class, subplot, subplots | ||
|
||
# from .plots import * | ||
|
||
# s = styles |
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,28 +1,39 @@ | ||
"""Import APlot.""" | ||
"""Install module.""" | ||
|
||
import setuptools | ||
|
||
NAME = "aplot" | ||
AUTHOR = "kyrylo.gr" | ||
AUTHOR_EMAIL = "[email protected]" | ||
DESCRIPTION = "Classical plots in one place." | ||
|
||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
def get_version() -> str: | ||
with open(f"{NAME}/__config__.py", "r", encoding="utf-8") as file: | ||
for line in file.readlines(): | ||
if line.startswith("__version__"): | ||
return line.split("=")[1].strip().strip('"').strip("'") | ||
raise ValueError("Version not found") | ||
|
||
|
||
setuptools.setup( | ||
name="aplot", | ||
version="0.0.1", | ||
author="LKB-OMQ", | ||
author_email="[email protected]", | ||
description="Classical plots in one place.", | ||
name=NAME, | ||
version=get_version(), | ||
author=AUTHOR, | ||
author_email=AUTHOR_EMAIL, | ||
description=DESCRIPTION, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/kyrylo-gr/aplot", | ||
packages=setuptools.find_packages(exclude=["tests", "tests.*"]), | ||
url=f"https://github.com/kyrylo-gr/{NAME}", | ||
packages=setuptools.find_packages(exclude=["tests", "tests.*", "docs", "docs.*"]), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires=">=3.8", | ||
install_requires=[ | ||
"numpy", | ||
"scipy", | ||
"matplotlib", | ||
], | ||
install_requires=["numpy", "scipy", "matplotlib"], | ||
) |