Skip to content

Commit

Permalink
chore!: change dependence manager poetry -> rye
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbdsantos committed Feb 14, 2024
1 parent e5017bd commit 802d982
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 273 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,34 @@ A simple script for creating a consistent airfoil database.
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![black](https://github.com/gabrielbdsantos/airfoildb/actions/workflows/black.yml/badge.svg?branch=master)](https://github.com/gabrielbdsantos/airfoildb/actions/workflows/black.yml)

## Instalation
## Installation

### Poetry
### Rye

1. Clone the repository

git clone https://github.com/gabrielbdsantos/airfoildb
cd airfoildb

2. Create a dedicated virtual environment (optional)
2. Sync the requirements and install it.

poetry env use python3

3. Install it

poetry install
rye sync

### Pip

1. Clone the repository
1. Clone the repository.

git clone https://github.com/gabrielbdsantos/airfoildb
cd airfoildb

2. Create a dedicated virtual environment (optional)
2. Create a dedicated virtual environment (optional).

python3 -m venv .venv --clear
source .venv/bin/activate

3. Install it
3. Install it.

pip install -r requirements.txt -e .
pip install -r requirements.lock


## Quick start
Expand Down
240 changes: 0 additions & 240 deletions poetry.lock

This file was deleted.

51 changes: 32 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,40 @@
[tool.poetry]
[project]
name = "airfoildb"
version = "0.1.0"
description = "Consistent B-spline representation for the UIUC airfoil database."
authors = ["Gabriel B. Santos <[email protected]>"]
license = "MIT"
packages = [
{ include = "airfoildb" },
description = "Add your description here"
authors = [
{ name = "Gabriel B. Santos", email = "[email protected]" }
]
dependencies = [
"beautifulsoup4==4.11.1 ; python_version >= '3.8' and python_version < '3.11'",
"certifi==2022.12.7 ; python_version >= '3.8' and python_version < '3.11'",
"charset-normalizer==2.1.1 ; python_version >= '3.8' and python_version < '3.11'",
"click==8.1.3 ; python_version >= '3.8' and python_version < '3.11'",
"colorama==0.4.6 ; python_version >= '3.8' and python_version < '3.11' and platform_system == 'Windows'",
"idna==3.4 ; python_version >= '3.8' and python_version < '3.11'",
"numpy==1.24.0 ; python_version >= '3.8' and python_version < '3.11'",
"requests==2.28.1 ; python_version >= '3.8' and python_version < '3.11'",
"scipy==1.9.3 ; python_version >= '3.8' and python_version < '3.11'",
"soupsieve==2.3.2.post1 ; python_version >= '3.8' and python_version < '3.11'",
"typer==0.7.0 ; python_version >= '3.8' and python_version < '3.11'",
"urllib3==1.26.13 ; python_version >= '3.8' and python_version < '3.11'",
]
readme = "README.md"
requires-python = ">= 3.8"

[tool.poetry.scripts]
[project.scripts]
airfoildb = 'airfoildb.cli:app'

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
beautifulsoup4 = "^4.11"
requests = "^2.26"
scipy = "^1.7"
numpy = "^1.21"
typer = "^0.7.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
line-length = 79
[tool.hatch.build.targets.wheel]
packages = ["src/airfoildb"]
29 changes: 28 additions & 1 deletion requirements.txt → requirements.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false

-e file:.
beautifulsoup4==4.11.1 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
certifi==2022.12.7 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via requests
charset-normalizer==2.1.1 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via requests
click==8.1.3 ; python_version >= "3.8" and python_version < "3.11"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.11" and platform_system == "Windows"
# via airfoildb
# via typer
idna==3.4 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via requests
numpy==1.24.0 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via scipy
requests==2.28.1 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
scipy==1.9.3 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
soupsieve==2.3.2.post1 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via beautifulsoup4
typer==0.7.0 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
urllib3==1.26.13 ; python_version >= "3.8" and python_version < "3.11"
# via airfoildb
# via requests
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 802d982

Please sign in to comment.