Skip to content

Commit

Permalink
chore: rename python package as xsk_pytools (#27)
Browse files Browse the repository at this point in the history
* chore: rename python package as `xsk_pytools`

* chore: modify corresponding package calling

* fix: modify package name in pyproject.toml
  • Loading branch information
xshaokun authored Mar 13, 2023
1 parent 08c3068 commit 4e7a3d0
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

## pytools

Note that `pytools` can be installed by `pip` so that it is added to your python's import path:
Note that the modules under `pytools` are wrapped as a standard python package `xsk_pytools` (refer to `pytools/pyproject.toml`), which can be installed by `pip`:

$ cd pytools && python -m pip install --user -e .

Then, it can be imported in your python script:

import pytools
import xsk_pytools

## Contact Me
If you have any questions, please feel free to ask me. My name is Shaokun Xie. The contact details are not listed here. Please go to find the right approach in somewhere and contact me : p
5 changes: 3 additions & 2 deletions pytools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ Some python tools useful in other python code.
* `pluto_tools.py`: some tools used specificaly for PLUTO simulations
* `tools.py`: some general used tools

Note that `pytools` can be installed by `pip` under this directory so that it is added to your python's import path:
Note that the modules here are wrapped as a standard python package `xsk_pytools` (refer to
`pyproject.toml`), which can be installed by `pip`:

$ python -m pip install --user -e .

Then, it can be imported in your python script:

import pytools
import xsk_pytools
2 changes: 1 addition & 1 deletion pytools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "pytools_xsk"
name = "xsk_pytools"
version = "0.1.1"
description = "A Python toolbox for personal daily research"
readme = "README.md"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pandas as pd

from pytools.tools import nearest, str_to_number
from xsk_pytools.tools import nearest, str_to_number


def output_index(logfile, ns):
Expand Down
File renamed without changes.

0 comments on commit 4e7a3d0

Please sign in to comment.