Skip to content

Commit 546edf2

Browse files
Merge pull request 'making the package installable' (#2) from impl/pymcs/make-installable into main
Reviewed-on: https://git.myzel.io/PyMC/PyMC-Server/pulls/2
2 parents 0241625 + ae4619a commit 546edf2

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
Install this library from PiPy `pip3 install pymc-server`
66

7+
If you want to install this library from source:
8+
```bash
9+
git clone https://github.com/pymc-dev/PyMC-Server
10+
cd PyMC-Server
11+
12+
pip3 install .
13+
# run 'pip3 install -e .' if you want to be able to edit the code
14+
```
15+
716
### Setting up a cloud: Google Cloud
817

918
1. Run `pymcs check` to see if you already have credentials setup. If you see a green checkmark for GCP (Google Cloud Platform), skip to the next section

pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
[project]
2-
name = "PyMC-Server"
2+
name = "pymc-server"
33
version = "0.0.1"
44
authors = [
55
{ name="Chris Krempel", email="chris.krempel@pymc-labs.com" },
66
{ name="Stephan Mai", email="stephan.mai@pymc-labs.com" },
77
]
8-
description = "Run PyMC everywhere."
8+
description = "Run PyMC anywhere."
99
readme = "README.md"
1010
requires-python = ">=3.8"
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"License :: OSI Approved :: MIT License",
1414
"Operating System :: OS Independent",
1515
]
16+
dependencies = ["Click"]
17+
18+
[project.scripts]
19+
pymcs = "pymc_server.cli:cli"
20+
1621

1722
[project.urls]
1823
Homepage = "https://github.com/pymc-dev/PyMC-Server"
1924
Issues = "https://github.com/pymc-devs/PyMC-Server/issues"
2025

26+
27+
[build-system]
28+
requires = ["setuptools", "wheel"]
29+
build-backend = "setuptools.build_meta"
30+
File renamed without changes.

src/pymc_server/cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import click
2+
3+
@click.group()
4+
def cli():
5+
pass
6+
7+
@cli.command()
8+
def foo():
9+
click.echo('bar')

0 commit comments

Comments
 (0)