Skip to content

Commit

Permalink
Merge pull request #34 from Sheshuk/feature/make_node_class
Browse files Browse the repository at this point in the history
Feature/make node class
  • Loading branch information
Sheshuk committed Sep 5, 2024
2 parents e7388a4 + 8a0966a commit f61ece8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python3 -m build --sdist --wheel .
twine upload dist/*
2 changes: 1 addition & 1 deletion docs/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ It is defined in the configuration file as a mapping of node name and it's chain
#chain2 configuration here
where ``<node name>`` is a name of this node, describing it's purpose.
This name will be used, when running the snap program with ``run_snap --node <node name>`` option)
This name will be used, when running the snap program with ``snap_run --node <node name>`` option)


:Note: Node names within one file must be different.
Expand Down
4 changes: 2 additions & 2 deletions docs/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ Running SNAP

SNAP uses a single command line tool to run the node, described in the configuration file.

``run_snap`` command
``snap_run`` command
--------------------

.. argparse::
:filename: ../src/snap/node.py
:func: get_parser
:prog: run_snap
:prog: snap_run

Status monitoring
-----------------
Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "snap-base"
description='SuperNova Async Pipeline: base package'
readme = "README.md"
authors=[
{name = 'Andrey Sheshukov', email = '[email protected]'}
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
requires-python=">=3.9"

dynamic=["version"]
dependencies = [
"pyyaml>=3.5", "tqdm>=4.53", "pyzmq>=20", "numpy"
]
[project.scripts]
snap_run="snap.node:run"

[project.urls]
Repository='https://github.com/Sheshuk/snap-base'

[project.optional-dependencies]
io = ["hop-client==0.5"]
doc =["sphinx", "sphinx-rtd-theme", "sphinx-argparse"]

[tool.setuptools.dynamic]
version = {attr = "snap.__version__"}

34 changes: 0 additions & 34 deletions setup.cfg

This file was deleted.

0 comments on commit f61ece8

Please sign in to comment.