Skip to content

Modernize installation a bit #73

Merged
odinuv merged 1 commit into
masterfrom
odin-AIS-35-d
May 22, 2023
Merged

Modernize installation a bit #73
odinuv merged 1 commit into
masterfrom
odin-AIS-35-d

Conversation

@odinuv

@odinuv odinuv commented May 21, 2023

Copy link
Copy Markdown
Member

Use pyproject.toml instead of setup.py and related stuff.

Part of https://keboola.atlassian.net/browse/AIS-35
Depends on #72

@odinuv odinuv changed the title Odin ais 35 d Modernize installation a bit May 21, 2023
@odinuv odinuv changed the base branch from master to odin-AIS-35-c May 21, 2023 18:13
@odinuv odinuv requested a review from pivnicek May 21, 2023 18:47
@odinuv odinuv marked this pull request as ready for review May 21, 2023 18:47

@pivnicek pivnicek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good Odin!

Comment thread Dockerfile
RUN python setup.py install
RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir flake8
RUN pip install --no-cache-dir .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

Comment thread README.md
```bash
$ git clone https://github.com/keboola/sapi-python-client.git && cd sapi-python-client
$ python setup.py install
pip install git+https://github.com/keboola/sapi-python-client.git

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just btw, it can now be installed with pip install kbcstorage https://pypi.org/project/kbcstorage/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

Comment thread README.md

## Client Class Usage
```
```python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, what does this do?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses the python highligher, for simple code it does not matter, as the generic one does well, but sometimes it does some weirdness

Comment thread README.md
Comment on lines +75 to +85
Note that if you submit a PR from your own forked repository, the automated functional tests will fail.
This is expected for security reasons, please do send the PR anyway.
Either run the tests locally (set `KBC_TEST_TOKEN` (your token to test project) and
`KBC_TEST_API_URL` (https://connection.keboola.com) variables) or ask for access. In case, you need a
project for local testing, feel free to [ask for one](https://developers.keboola.com/#development-project).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

Base automatically changed from odin-AIS-35-c to master May 22, 2023 11:22
remove setup.py
update & polish readme and running instructions
@odinuv odinuv merged commit c6e3512 into master May 22, 2023
@odinuv odinuv deleted the odin-AIS-35-d branch May 22, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants