Skip to content

Commit

Permalink
move to peetry
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Feb 8, 2025
1 parent 97d900b commit e0c00f7
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 47 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install flake8 pytest
pip install poetry
poetry build
pip install dist/*.whl
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install flake8 pytest
pip install poetry
poetry build
pip install dist/*.whl
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install flake8 pytest
pip install poetry
poetry build
pip install dist/*.whl
- name: Build package
run: python -m build
- name: Publish package
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Install with setup.py:
```bash
$ git clone https://github.com/PRIDE-Archive/pridepy
$ cd pridepy
$ python setup.py sdist bdist_wheel
$ python project.toml sdist bdist_wheel
$ pip install dist/pridepy-{version}.tar.gz
```

Expand Down
41 changes: 41 additions & 0 deletions project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pridepy"
version = "0.0.7"
description = "Python Client library for PRIDE Rest API"
authors = [
{name = "PRIDE Team", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.7"
keywords = ["PRIDE", "python", "client", "REST", "API"]
license = {text = "Apache-2.0", file = "LICENSE"}
dependencies = [
"requests",
"ratelimit",
"click",
"pytest",
"setuptools",
"plotly",
"tqdm",
"boto3",
"botocore",
"httpx",
]

[project.urls]
Homepage = "https://github.com/PRIDE-Archive/pridepy"

[project.scripts]
pridepy = "pridepy:main"

[tool.setuptools]
packages = ["pridepy"]
py-modules = ["pridepy"]

[tool.setuptools.package-data]
"*" = ["*.txt", "*.md"]
"aspera" = ["**/*"]
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ requirements:
host:
- python >=3.9
- pip
- setuptools
- poetry-core >=1.2.0
run:
- requests~=2.31.0
- ratelimit~=2.2.1
Expand Down
40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

0 comments on commit e0c00f7

Please sign in to comment.