Skip to content

Commit

Permalink
update setup and version
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo-gr committed Apr 25, 2024
1 parent 31d5e12 commit 68f1c66
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
1 change: 1 addition & 0 deletions aplot/__config__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.0"
4 changes: 2 additions & 2 deletions aplot/__init__.py
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
37 changes: 24 additions & 13 deletions setup.py
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"],
)

0 comments on commit 68f1c66

Please sign in to comment.