You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and verify that your package was uploaded successfully. Keep the terminal open, we'll need it later.
162
+
Create an account on PyPI.
163
163
164
-
In a new terminal, without an activated virtual environment or an env directory:
164
+
In the Account settings, find the API tokens section and click on "Add API token". Copy your token.
165
165
166
-
```shell
167
-
cd$(mktemp -d rcx_tk-test.XXXXXX)
166
+
Add your API token to Poetry:
168
167
169
-
# prepare a clean virtual environment and activate it
170
-
python -m venv env
171
-
source env/bin/activate
168
+
```console
169
+
poetry config pypi-token.pypi your-api-token
170
+
```
172
171
173
-
# make sure to have a recent version of pip and setuptools
174
-
python -m pip install --upgrade pip
172
+
Build your project:
175
173
176
-
# install from test pypi instance:
177
-
python -m pip -v install --no-cache-dir \
178
-
--index-url https://test.pypi.org/simple/ \
179
-
--extra-index-url https://pypi.org/simple rcx_tk
174
+
```console
175
+
poetry build
180
176
```
181
177
182
-
Check that the package works as it should when installed from pypitest.
183
-
184
-
Then upload to pypi.org with:
178
+
Publish your package to PyPI:
185
179
186
-
```shell
187
-
# Back to the first terminal,
188
-
# FINAL STEP: upload to PyPI (requires credentials)
189
-
python -m twine upload dist/*
180
+
```console
181
+
poetry publish
190
182
```
191
183
192
184
### (3/3) GitHub
193
185
194
-
Don't forget to also make a [release on GitHub](https://github.com/RECETOX/rcx-tk/releases/new). If your repository uses the GitHub-Zenodo integration this will also trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.
186
+
Don't forget to also make a [release on GitHub](https://github.com/RECETOX/rcx-tk/releases/new). If your repository uses the GitHub-Zenodo integration this will also trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.
`rcx-tk` package provides tools to process the metadata or alkane files.
23
+
24
+
On the input, the user is expected to supply a path to the metadata/alkane file in tsv/csv/xls/xlsx file. The file is then converted to a dataframe which is further processed. The main steps are:
25
+
26
+
- columns rearrangement
27
+
- validation of the file names
28
+
- validation that the `injectionNumber` column is of integer type
29
+
- derivation of new metadata: `sampleName`, `sequenceIdentifier`, `sampleIdentifier` and `localOrder`
25
30
26
-
The project setup is documented in [project_setup.md](project_setup.md). Feel free to remove this document (and/or the link to this document) if you don't need it.
31
+
Finally, the processed dataframe is saved into user-defined location.
27
32
28
33
## Installation
29
34
@@ -32,12 +37,23 @@ To install rcx_tk from GitHub repository, do:
For installing the dependencies and package management, [micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html) and [poetry](https://python-poetry.org/) have been used.
30
24
31
-
- Runtime dependencies should be added to `pyproject.toml` in the `dependencies` list under `[project]`.
32
-
- Development dependencies should be added to `pyproject.toml` in one of the lists under `[project.optional-dependencies]`.
25
+
The dependencies are listed in the `pyproject.toml` file under the section `[tool.poetry.dependencies]` and `[tool.poetry.group.dev.dependencies]`.
33
26
34
27
## Packaging/One command install
35
28
36
-
You can distribute your code using PyPI.
37
-
[The guide](https://guide.esciencecenter.nl/#/best_practices/language_guides/python?id=building-and-packaging-code) can
38
-
help you decide which tool to use for packaging.
29
+
To create a new environment, use the micromamba:
30
+
31
+
```console
32
+
micromamba create -n rcx-tk poetry
33
+
micromamba activate rcx-tk
34
+
```
35
+
To install all dependencies specified in the `pyproject.toml` file, use poetry:
36
+
37
+
```console
38
+
poetry install
39
+
```
39
40
40
41
## Testing and code coverage
41
42
@@ -114,4 +115,4 @@ help you decide which tool to use for packaging.
114
115
## NOTICE
115
116
116
117
- List of attributions of this project and Apache-license dependencies
117
-
-[Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/licensing?id=notice)
118
+
-[Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/licensing?id=notice)
0 commit comments