Skip to content

Commit

Permalink
Rid poetry (#17)
Browse files Browse the repository at this point in the history
* Remove Potry tool

* Update action
  • Loading branch information
haimkastner authored Feb 21, 2024
1 parent 1b50795 commit 2faf2c3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 117 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Generate units
run: |
pip install poetry
poetry export -f requirements.txt > requirements.txt
pip install -r requirements.txt
pip install -r requirements-dev.txt
python units_generator/generate_package.py
- name: Test units
Expand All @@ -26,9 +24,10 @@ jobs:
if: github.ref == 'refs/heads/main'
id: update_version
run: |
old_version=$(poetry version | sed 's/\x1b\[[0-9;]*m//g' | awk '{print $NF}')
poetry version patch
version=$(poetry version | sed 's/\x1b\[[0-9;]*m//g' | awk '{print $NF}')
old_version=$(python setup.py --version)
IFS='.' read -ra parts <<< "$old_version"
version="${parts[0]}.${parts[1]}.$((parts[2]+1))"
sed -i 's|'$old_version'|'$version'|g' setup.py
echo "VERSION=$version" >> $GITHUB_OUTPUT
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# VS CODE
.vscode

# pip deps
requirements.txt
# setup.py
.pypirc

Expand Down
82 changes: 0 additions & 82 deletions poetry.lock

This file was deleted.

25 changes: 0 additions & 25 deletions pyproject.toml

This file was deleted.

Binary file added requirements-dev.txt
Binary file not shown.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
long_description = (this_directory / "README.md").read_text(encoding='utf-8')

packages = \
['unitsnet_py', 'unitsnet_py.units']
Expand All @@ -26,6 +26,7 @@
'packages': packages,
'package_data': package_data,
'python_requires': '>=3.8,<4.0',
'install_requires': []
}


Expand Down

0 comments on commit 2faf2c3

Please sign in to comment.