Skip to content

Commit

Permalink
edit setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshito-takahashi committed Jan 10, 2022
1 parent d072a2e commit 8f1cccb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.pypirc
dist/
build/
jos3.egg-info/
jos3.egg-info/
.eggs/
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ or
pip install git+https://github.com/TanabeLab/JOS-3.git
```

If you have not installed numpy in your environment, do the following

```bash
pip install numpy
```

# Usage

```python
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
numpy
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
line = line.split('=')[1].strip().replace('"', "").replace("'", "")
version = line

def _requires_from_file(filename):
return open(filename).read().splitlines()

setup(
name="jos3",
version=version,
Expand All @@ -31,8 +34,9 @@
long_description_content_type='text/markdown',
packages=find_packages("src"),
package_dir={'': "src"},
install_requires=["numpy"],
setup_requires=["numpy"],
# install_requires=_requires_from_file('requirements.txt'),
# setup_requires=["numpy"],
# tests_requires=["numpy", "pandas", "matplotlib"],
license="MIT",
classifiers=[
'Operating System :: OS Independent',
Expand Down
2 changes: 1 addition & 1 deletion src/jos3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
from jos3.jos3 import *
__version__ = '0.2.0'
__version__ = '0.2.4'

0 comments on commit 8f1cccb

Please sign in to comment.