Skip to content

Commit

Permalink
Merge pull request #59 from autonomio/fix_imports
Browse files Browse the repository at this point in the history
Fix imports
  • Loading branch information
mikkokotila authored Apr 20, 2024
2 parents c88dddc + 72a826f commit 11fb4ab
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install hatch
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
hatch build
hatch publish --user __token__ --auth $PYPI_API_TOKEN
2 changes: 2 additions & 0 deletions astetik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@
del utils
except:
pass

__VERSION__ = '1.16'
2 changes: 1 addition & 1 deletion astetik/plots/kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def kde(data,
params()['fig_height']))

p = sns.kdeplot(data=data[x],
data2=data2,
y=data2,
shade=True,
cut=5,
shade_lowest=False,
Expand Down
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "astetik"
dynamic = ["version"]
description = "Astetik data visualization and reporting library"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Mikko Kotila", email = "mailme@mikkokotila.com" },
]
maintainers = [
{ name = "Mikko Kotila", email = "mailme@mikkokotila.com" },
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"geonamescache",
"IPython",
"numpy",
"pandas",
"patsy",
"scikit-learn",
"seaborn",
"statsmodels",
"wrangle",
]

[project.urls]
Download = "https://github.com/mikkokotila/pretty"
Homepage = "http://mikkokotila.com"

[tool.hatch.version]
path = "astetik/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/astetik",
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pandas
IPython
patsy
statsmodels
sklearn
scikit-learn
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
URL = 'http://mikkokotila.com'
LICENSE = 'MIT'
DOWNLOAD_URL = 'https://github.com/mikkokotila/pretty'
VERSION = '1.13'
VERSION = '1.14'

try:
from setuptools import setup
Expand Down Expand Up @@ -70,7 +70,7 @@ def check_dependencies():
try:
import sklearn
except ImportError:
install_requires.append('sklearn')
install_requires.append('scikit-learn')

return install_requires

Expand Down
16 changes: 8 additions & 8 deletions test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,20 @@ def multicount_full(df):
# test_simple_minimal(df)

# test plots with parameters
corr_full(df)
kde_full(df)
#corr_full(df)
#kde_full(df)
hist_full(df)
pie_full(df)
swarm_full(df)
scat_full(df)
line_full(df)
grid_full(df)
#grid_full(df)
box_full(df)
violin_full(df)
strip_full(df)
count_full(df)
bars_full(df)
#count_full(df)
#bars_full(df)
overlap_full(df)
multikde_full(df)
compare_full(df)
multicount_full(df)
#multikde_full(df)
#compare_full(df)
#multicount_full(df)

0 comments on commit 11fb4ab

Please sign in to comment.