Skip to content

Commit ec83e52

Browse files
author
João Silva
committed
!46 feat(Version): [#83] mover version to version.py Closes #83
1 parent fd06245 commit ec83e52

5 files changed

Lines changed: 28 additions & 17 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,7 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
.idea/
161+
162+
# macOS
163+
.DS_Store

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
### Usage
2222

2323
* Use `-h/--help` for available options
24-
* General usage
25-
`Probely <context> <action> [positional_params ...] [--optinal params ...] -- [positional_params ...]`
24+
* General usage:
25+
* `probely <context> <action> [positional_params ...] [--optinal params ...] -- [positional_params ...]`
2626
* `--` allows you to add positional args after optional
2727
* add `--api-key` for command specific api key
2828

@@ -41,7 +41,7 @@
4141
```
4242
import probely_cli
4343
44-
target = probely_cli.add_target("http://target_url.com")
44+
target = probely_cli.add_target("https://target_url.com")
4545
```
4646

4747
### Development guidelines:

probely/sdk/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def _build_session(cls) -> requests.Session:
145145
session.headers.update({"Authorization": "JWT " + api_key})
146146
session.headers.update({"User-Agent": cls._build_user_agent()})
147147

148-
logger.debug(session.headers)
149148
cls._session_cache = session
150149
return session
151150

probely/version.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
from pathlib import Path
2-
3-
import toml
4-
5-
pyproject_content = toml.load(Path(__file__).parents[1] / "pyproject.toml")
6-
7-
__version__ = pyproject_content["project"]["version"]
1+
__version__ = "0.0.1a2"

pyproject.toml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
[project]
22
name = "probely"
3-
version = "0.0.1"
3+
dynamic = ["version"]
44
description = "CLI and SDK wrappers for Probely's API"
55
authors = [
6+
{ name = "Probely", email = "hello@probely.com" },
7+
]
8+
maintainers = [
69
{ name = "João Silva", email = "joao.silva@probely.com" },
710
{ name = "Vladimir Kontic", email = "vladimir@probely.com" },
811
{ name = "Temidire Adams", email = "temidire@probely.com" }
@@ -74,14 +77,26 @@ Repository = "https://github.com/probely/probely_cli.git"
7477
#Changelog = "https://github.com/probely/probely_cli/blob/master/CHANGELOG.md"
7578

7679

77-
78-
7980
[build-system]
8081
requires = ["hatchling"]
8182
build-backend = "hatchling.build"
8283

8384
[tool.hatch.metadata]
8485
allow-direct-references = true
8586

86-
#[tool.hatch.build.targets.wheel]
87-
#packages = ["src/probely"]
87+
[tool.hatch.build.targets.sdist]
88+
exclude = [
89+
"/.github",
90+
"/.gitlab",
91+
"/.tox",
92+
"/builds",
93+
"/docs",
94+
"/examples",
95+
"/tests",
96+
"/tox.ini",
97+
]
98+
[tool.hatch.build.targets.wheel]
99+
packages = ["probely"]
100+
101+
[tool.hatch.version]
102+
path = "probely/version.py"

0 commit comments

Comments
 (0)