Skip to content

Commit a747859

Browse files
committed
new setup.py and build package via pip
1 parent d436dd1 commit a747859

File tree

10 files changed

+775
-61
lines changed

10 files changed

+775
-61
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md LICENSE
2+
recursive-include src/IHSetBernabeu *.py

README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
# IHSetBernabeu
2+
Python package to run and calibrate the Bernabeu et al. (2003) equilibrium beach profile model.
23

3-
Bernabeu et al. (2003) proposed a two-section equilibrium beach profile model (2S-EBP) based on the concept of the previous studies. This model is useful for predicting the equilibrium beach profile under various conditions.
44

5+
## :house: Local Installation
6+
* Using pip:
57

6-
## Installation and use
8+
```bash
79

8-
To install this module use:
9-
10-
```sh
11-
pip install https://github.com/IHCantabria/IHSetBernabeu/archive/refs/tags/latest.zip
10+
pip install ...
1211
```
1312

14-
Run tests to validate:
15-
16-
```sh
17-
ihsetbernabeu-tests
18-
```
13+
## Run test
14+
fron IHSetBernabeu/test folder, type:
15+
python test.py
1916

2017
## Documentation
21-
2218
Documentation is available at https://ihcantabria.github.io/IHSetBernabeu
2319

24-
## Credits
25-
26-
Developed and maintained by Lim, Changbin @ IHCantabria.
20+
## Package structure
21+
IHSetBernabeu
22+
|
23+
├── LICENSE
24+
├── README.md
25+
├── src
26+
├── IHSetBernabeu
27+
├── bernabeu.py
28+
└── cal_bernabeu.py
29+
├── test
30+
├── test.py
31+
└── XY_PuertoChiquito_clean.csv
32+
├── setup.py
33+
└── .gitignore
34+
35+
## :incoming_envelope: Contact us
36+
:snake: For code-development issues contact :man_technologist: [Lucas de Freitas](https://github.com/defreitasL) @ :office: [IHCantabria](https://github.com/IHCantabria)
37+
38+
## :copyright: Credits
39+
Developed by :man_technologist: [Lucas de Freitas](https://github.com/defreitasL) @ :office: [IHCantabria](https://github.com/IHCantabria).

setup.py

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='IHSetBernabeu',
5-
version='0.1.0',
6-
packages=find_packages(),
4+
name="IHSetBernabeu",
5+
version="0.1.0",
6+
description="Equilibrium beach profile, Bernabeu et al. (2003)",
7+
author="Lucas de Freitas Pereira",
8+
author_email="lucas.defreitas@unican.es",
9+
url="https://github.com/IHCantabria/IHSetBernabeu",
10+
license="MIT",
11+
12+
# ### critical step for src layout ###
13+
package_dir={"": "src"},
14+
packages=find_packages(where="src"),
15+
716
include_package_data=True,
817
install_requires=[
9-
'numpy',
10-
'pandas',
11-
'matplotlib',
12-
'scipy',
13-
'xarray',
14-
'numba'
18+
"numpy>=1.20",
19+
"pandas>=1.1",
20+
"matplotlib>=3.0",
21+
"scipy>=1.5",
22+
"xarray>=0.15",
23+
"numba>=0.50"
1524
],
16-
author='Lucas de Freitas Pereira',
17-
author_email='lucas.defreitas@unican.es',
18-
description='IH-SET Bernabeu et al. (2003)',
19-
url='https://github.com/IHCantabria/IHSetBernabeu',
25+
2026
classifiers=[
21-
'Development Status :: 3 - Alpha',
22-
'Intended Audience :: Science/Research',
23-
'License :: OSI Approved :: MIT License',
24-
'Programming Language :: Python :: 3'
27+
"Development Status :: 3 - Alpha",
28+
"Intended Audience :: Science/Research",
29+
"License :: OSI Approved :: MIT License",
30+
"Programming Language :: Python :: 3",
2531
],
32+
33+
python_requires=">=3.7",
2634
)

src/IHSetBernabeu.egg-info/PKG-INFO.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
LICENSE
2-
README.md
3-
setup.py
4-
src/IHSetBernabeu/__init__.py
5-
src/IHSetBernabeu/bernabeu_r2.py
6-
src/IHSetBernabeu/cal_bernabeu_r2.py
7-
src/IHSetBernabeu.egg-info/PKG-INFO
8-
src/IHSetBernabeu.egg-info/SOURCES.txt
9-
src/IHSetBernabeu.egg-info/dependency_links.txt
10-
src/IHSetBernabeu.egg-info/requirement.txt
11-
src/IHSetBernabeu.egg-info/top_level.txt
1+
MANIFEST.in
2+
README.md
3+
setup.py
4+
src/IHSetBernabeu/__init__.py
5+
src/IHSetBernabeu/bernabeu.py
6+
src/IHSetBernabeu/cal_bernabeu.py
7+
src/IHSetBernabeu.egg-info/PKG-INFO
8+
src/IHSetBernabeu.egg-info/SOURCES.txt
9+
src/IHSetBernabeu.egg-info/dependency_links.txt
10+
src/IHSetBernabeu.egg-info/requires.txt
11+
src/IHSetBernabeu.egg-info/top_level.txt
12+
test/test.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/IHSetBernabeu.egg-info/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IHSetBernabeu
1+
IHSetBernabeu

0 commit comments

Comments
 (0)